LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithasync_clientAsyncClientshare_run
Method●Since v0.2Deprecated

share_run

Copy
share_run(
  self,
  run_id: ls_client.ID_TYPE,
  *,
  share_id: Optional[ls_client.ID_TYPE
View source on GitHub
]
=
None
)
->
str

Parameters

NameTypeDescription
run_id*ID_TYPE
share_idOptional[ls_client.ID_TYPE]
Default:None

Get a share link for a run asynchronously.

.. admonition:: Deprecated

Use :meth:`langsmith.AsyncClient.runs.share.create` instead.
See https://docs.langchain.com/langsmith/smithdb-sdk-migration#share-and-read-public-runs for the migration guide.
Will be removed after Jan 31, 2027.

The ID of the run to share.

Custom share ID.

If not provided, a random UUID will be generated.