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

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: 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.

Adescription: 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).

View source on GitHub