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
PythonlangsmithschemasTracerSessionResult
Class●Since v0.0

TracerSessionResult

Copy
TracerSessionResult(
  self,
  _host_url: Optional[str] = None,
  **kwargs: Any = 

Bases

TracerSession

Attributes

Inherited fromTracerSession

Attributes

Aid: UUID
—

The ID of the project.

Astart_time: datetime
—

The time the project was created.

Aend_time: Optional[datetime]
—

The time the project was ended.

A
View source on GitHub
{
}
)
description
: Optional[str]
—

The description of the project.

Aname: Optional[str]
—

The name of the session.

Aextra: Optional[dict[str, Any]]
—

Extra metadata for the project.

Atenant_id: UUID
—

The tenant ID this project belongs to.

Areference_dataset_id: Optional[UUID]
—

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

Aurl: Optional[str]
—

URL of this run within the app.

Ametadata: dict[str, Any]
—

Retrieve the metadata (if any).

Atags: list[str]
—

Retrieve the tags (if any).

attribute
run_count: Optional[int]
attribute
latency_p50: Optional[timedelta]
attribute
latency_p99: Optional[timedelta]
attribute
total_tokens: Optional[int]
attribute
prompt_tokens: Optional[int]
attribute
completion_tokens: Optional[int]
attribute
last_run_start_time: Optional[datetime]
attribute
feedback_stats: Optional[dict[str, Any]]
attribute
session_feedback_stats: Optional[dict[str, Any]]
attribute
run_facets: Optional[list[dict[str, Any]]]
attribute
total_cost: Optional[Decimal]
attribute
prompt_cost: Optional[Decimal]
attribute
completion_cost: Optional[Decimal]
attribute
first_token_p50: Optional[timedelta]
attribute
first_token_p99: Optional[timedelta]
attribute
error_rate: Optional[float]

A project, hydrated with additional information.

Sessions are also referred to as "Projects" in the UI.

The number of runs in the project.

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

The 99th percentile latency for the project.

The total number of tokens consumed in the project.

The total number of prompt tokens consumed in the project.

The total number of completion tokens consumed in the project.

The start time of the last run in the project.

Feedback stats for the project.

Summary feedback stats for the project.

Facets for the runs in the project.

The total estimated LLM cost associated with the completion tokens.

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

The estimated cost associated with the completion tokens.

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

The 99th percentile time to process the first token.

The error rate for the project.