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
PythonlangsmithclientClientshare_run
Method●Since v0.2Deprecated

share_run

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

Parameters

NameTypeDescription
run_id*Union[UUID, str]

The ID of the run to share.

share_idOptional[Union[UUID, str]]
Default:None

Get a share link for a run.

.. admonition:: Deprecated

Use :meth:`langsmith.Client.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.

Custom share ID. If not provided, a random UUID will be generated.