| Name | Type | Description |
|---|---|---|
project_name | str | None | Default: NoneThe name of the project. Resolved together with |
example_id | str | UUID | None | Default: NoneThe ID of the example. |
tags | list[str] | None | Default: None |
client | LangSmithClient | None | Default: None |
address | AgentAddress | None | Default: None |
Instruct LangChain to log all runs in context to LangSmith.
Example:
with tracing_v2_enabled(): ... # LangChain code will automatically be traced
You can use this to fetch the LangSmith run URL:
with tracing_v2_enabled() as cb: ... chain.invoke("foo") ... run_url = cb.get_run_url()
The tags to add to the run.
The client of the langsmith.
The agent address to send traces to instead of a project.
Agent addressing must be enabled for the LangSmith workspace.