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
  • RemoteGraph
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDKRemoteGraph
Language
Theme
PythonlangsmithschemasTracerSessionResult
Class●Since v0.0

TracerSessionResult

A project, hydrated with additional information.

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

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

Bases

TracerSession

Attributes

attribute
run_count: Optional[int]

The number of runs in the project.

attribute
latency_p50: Optional[timedelta]

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

attribute
latency_p99: Optional[timedelta]

The 99th percentile latency for the project.

attribute
total_tokens: Optional[int]

The total number of tokens consumed in the project.

attribute
prompt_tokens: Optional[int]

The total number of prompt tokens consumed in the project.

attribute
completion_tokens: Optional[int]

The total number of completion tokens consumed in the project.

attribute
last_run_start_time: Optional[datetime]

The start time of the last run in the project.

attribute
feedback_stats: Optional[dict[str, Any]]

Feedback stats for the project.

attribute
session_feedback_stats: Optional[dict[str, Any]]

Summary feedback stats for the project.

attribute
run_facets: Optional[list[dict[str, Any]]]

Facets for the runs in the project.

attribute
total_cost: Optional[Decimal]

The total estimated LLM cost associated with the completion tokens.

attribute
prompt_cost: Optional[Decimal]

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

attribute
completion_cost: Optional[Decimal]

The estimated cost associated with the completion tokens.

attribute
first_token_p50: Optional[timedelta]

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

attribute
first_token_p99: Optional[timedelta]

The 99th percentile time to process the first token.

attribute
error_rate: Optional[float]

The error rate for the project.

Inherited fromTracerSession

Attributes

Aid: UUIDAstart_time: datetimeAend_time: Optional[datetime]
—

End time of the run, if applicable.

Adescription: Optional[str]Aname: Optional[str]
—

Optional name for the run.

Aextra: extraAtenant_id: NotRequired[str]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: Optional[dict[str, Any]]
—

Optional metadata for the run.

Atags: Optional[list[str]]
—

Optional list of tags for the run.

View source on GitHub