class documentation
class LangSmithPlugin(SimplePlugin): (source)
Constructor: LangSmithPlugin(client, project_name, add_temporal_runs, default_metadata, ...)
LangSmith tracing plugin for Temporal SDK.
Provides automatic LangSmith run creation for workflows, activities, and other Temporal operations with context propagation.
| Method | __init__ |
Initialize the LangSmith plugin. |
Inherited from SimplePlugin:
| Method | configure |
See base class. |
| Method | configure |
See base class. |
| Method | configure |
See base class. |
| Async Method | connect |
See base class. |
| Method | name |
See base class. |
| Async Method | run |
See base class. |
| Async Method | run |
See base class. |
| Instance Variable | activities |
Undocumented |
| Instance Variable | data |
Undocumented |
| Instance Variable | interceptors |
Undocumented |
| Instance Variable | nexus |
Undocumented |
| Instance Variable | run |
Undocumented |
| Instance Variable | workflow |
Undocumented |
| Instance Variable | workflow |
Undocumented |
| Instance Variable | workflows |
Undocumented |
| Instance Variable | _name |
Undocumented |
def __init__(self, *, client:
langsmith.Client | None = None, project_name: str | None = None, add_temporal_runs: bool = False, default_metadata: dict[ str, Any] | None = None, default_tags: list[ str] | None = None):
(source)
ΒΆ
overrides
temporalio.plugin.SimplePlugin.__init__Initialize the LangSmith plugin.
| Parameters | |
client:langsmith.Client | None | A langsmith.Client instance. If None, one will be created automatically (using LANGSMITH_API_KEY env var). |
projectstr | None | LangSmith project name for traces. |
addbool | Whether to create LangSmith runs for Temporal operations. Defaults to False. |
defaultdict[ | Default metadata to attach to all runs. |
defaultlist[ | Default tags to attach to all runs. |