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
Pythonlangsmithtypesthread_aggregate_stats_paramsStride
Class●Since v0.15

Stride

Copy
Stride()

Bases

TypedDict

Constructors

Attributes

View source on GitHub
constructor
__init__
NameType
unitLiteral['SECOND', 'MINUTE', 'HOUR', 'DAY']
valueint
attribute
unit: Literal['SECOND', 'MINUTE', 'HOUR', 'DAY']

unit is the unit of time used for each bucket.

See the StrideUnit enum for allowed values.

attribute
value: int

value is the number of time units per bucket. Must be at least 1.

stride returns the statistics as a time series in buckets.

Each thread counts once, in the bucket containing the start of its most recent trace. Omit for a single aggregate over the whole window.