TracerSessionResult#

class langsmith.schemas.TracerSessionResult[source]#

Bases: TracerSession

A project, hydrated with additional information.

Sessions are also referred to as “Projects” in the UI.

Initialize a Run object.

param completion_cost: Decimal | None = None#

The estimated cost associated with the completion tokens.

param completion_tokens: int | None = None#

The total number of completion tokens consumed in the project.

param description: str | None = None#

The description of the project.

param end_time: datetime | None = None#

The time the project was ended.

param error_rate: float | None = None#

The error rate for the project.

param extra: Dict[str, Any] | None = None#

Extra metadata for the project.

param feedback_stats: Dict[str, Any] | None = None#

Feedback stats for the project.

param first_token_p50: timedelta | None = None#

The median (50th percentile) time to process the first token.

param first_token_p99: timedelta | None = None#

The 99th percentile time to process the first token.

param id: UUID [Required]#

The ID of the project.

param last_run_start_time: datetime | None = None#

The start time of the last run in the project.

param latency_p50: timedelta | None = None#

The median (50th percentile) latency for the project.

param latency_p99: timedelta | None = None#

The 99th percentile latency for the project.

param name: str | None = None#

The name of the session.

param prompt_cost: Decimal | None = None#

The estimated cost associated with the prompt (input) tokens.

param prompt_tokens: int | None = None#

The total number of prompt tokens consumed in the project.

param reference_dataset_id: UUID | None = None#

The reference dataset IDs this project’s runs were generated on.

param run_count: int | None = None#

The number of runs in the project.

param run_facets: List[Dict[str, Any]] | None = None#

Facets for the runs in the project.

param start_time: datetime [Optional]#

The time the project was created.

param tenant_id: UUID [Required]#

The tenant ID this project belongs to.

param total_cost: Decimal | None = None#

The total estimated LLM cost associated with the completion tokens.

param total_tokens: int | None = None#

The total number of tokens consumed in the project.

property metadata: dict[str, Any]#

Retrieve the metadata (if any).

property tags: List[str]#

Retrieve the tags (if any).

property url: str | None#

URL of this run within the app.