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
PythonlangsmithtypesissueEvidenceSeriesMetricDefinitionNumeratorfield
Attribute●Since v0.14

field

Copy
field: Optional[Literal['latency_seconds', 'first_token_seconds', 'total_tokens', 'prompt_tokens',
View source on GitHub
'completion_tokens'
,
'total_cost'
,
'prompt_cost'
,
'completion_cost'
,
'feedback_score'
,
'prompt_token_details.cache_creation'
,
'prompt_token_details.cache_read'
,
'prompt_token_details.ephemeral_1h_input_tokens'
,
'prompt_token_details.ephemeral_5m_input_tokens'
,
'prompt_token_details.audio'
,
'prompt_token_details.image'
,
'prompt_token_details.video'
,
'completion_token_details.reasoning'
,
'completion_token_details.audio'
,
'completion_token_details.image'
,
'completion_token_details.video'
,
'prompt_cost_details.cache_creation'
,
'prompt_cost_details.cache_read'
,
'prompt_cost_details.ephemeral_1h_input_tokens'
,
'prompt_cost_details.ephemeral_5m_input_tokens'
,
'prompt_cost_details.audio'
,
'prompt_cost_details.image'
,
'prompt_cost_details.video'
,
'completion_cost_details.reasoning'
,
'completion_cost_details.audio'
,
'completion_cost_details.image'
,
'completion_cost_details.video'
]
]
=
None