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

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithtypestracer_sessionTracerSession
Class●Since v0.14

TracerSession

Copy
TracerSession()

Bases

BaseModel

Attributes

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.

View source on GitHub
Mto_json
—

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

Mconstruct
Mmodel_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
id: str
attribute
tenant_id: str
attribute
completion_cost: Optional[str]
attribute
completion_tokens: Optional[int]
attribute
default_dataset_id: Optional[str]
attribute
description: Optional[str]
attribute
end_time: Optional[datetime]
attribute
error_rate: Optional[float]
attribute
experiment_progress: Optional[ExperimentProgress]
attribute
extra: Optional[Dict[str, object]]
attribute
feedback_stats: Optional[Dict[str, object]]
attribute
first_token_p50: Optional[float]
attribute
first_token_p99: Optional[float]
attribute
last_run_start_time: Optional[datetime]
attribute
last_run_start_time_live: Optional[datetime]
attribute
latency_p50: Optional[float]
attribute
latency_p99: Optional[float]
attribute
name: Optional[str]
attribute
prompt_cost: Optional[str]
attribute
prompt_tokens: Optional[int]
attribute
reference_dataset_id: Optional[str]
attribute
run_count: Optional[int]
attribute
run_facets: Optional[List[Dict[str, object]]]
attribute
session_feedback_stats: Optional[Dict[str, object]]
attribute
start_time: Optional[datetime]
attribute
streaming_rate: Optional[float]
attribute
test_run_number: Optional[int]
attribute
total_cost: Optional[str]
attribute
total_tokens: Optional[int]
attribute
trace_tier: Optional[Literal['longlived', 'shortlived']]

TracerSession schema.