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: strAtenant_id: strAdefault_dataset_id: Optional[str]Adescription: Optional[str]
View source on GitHub
{
}
)
A
end_time
: Optional[datetime]
Aexperiment_progress: Optional[ExperimentProgress]
Aextra: Optional[Dict[str, object]]
Alast_run_start_time_live: Optional[datetime]
Aname: Optional[str]
Areference_dataset_id: Optional[str]
Astart_time: Optional[datetime]
Astreaming_rate: Optional[float]
Atest_run_number: Optional[int]
Atrace_tier: Optional[Literal['longlived', 'shortlived']]

Inherited fromBaseModel

Attributes

Amodel_fields_set: set[str]Amodel_config: ConfigDictAmodel_construct: construct

Methods

Mto_dict
—

Recursively generate a dictionary representation of the model, optionally specifying which fields to include or exclude.

Mto_json
—

Generates a JSON string representing this model as it would be received from or sent to the API (but with indentation).

MconstructMmodel_dump
—

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump

Mmodel_dump_json
—

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json

Classes

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

A project, hydrated with additional information.

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