LangSmithExtra#

class langsmith.run_helpers.LangSmithExtra[source]#

Any additional info to be injected into the run dynamically.

name: str | None#

Optional name for the run.

reference_example_id: UUID | str | None#

Optional ID of a reference example.

run_extra: Dict | None#

Optional additional run information.

parent: RunTree | str | Mapping | None#

Optional parent run, can be a RunTree, string, or mapping.

run_tree: RunTree | None#

Optional run tree (deprecated).

project_name: str | None#

Optional name of the project.

metadata: Dict[str, Any] | None#

Optional metadata for the run.

tags: List[str] | None#

Optional list of tags for the run.

run_id: UUID | str | None#

Optional ID for the run.

client: Client | None#

Optional LangSmith client.

on_end: Callable[[RunTree], Any] | None#

Optional callback function to be called when the run ends.