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
PythonlangsmithclientClientflush_compressed_traces
Method●Since v0.3

flush_compressed_traces

Copy
flush_compressed_traces(
  self,
  attempts: int = 3,
  timeout: Optional[float] = None
View source on GitHub
)
->
None

Parameters

NameTypeDescription
attemptsint
Default:3
timeoutOptional[float]
Default:None

Force flush the currently buffered compressed runs.

Retry attempts for the send request.

Maximum seconds to wait for in-flight sends to complete. None (default) waits indefinitely. Bounds only the wait on already-submitted sends; the synchronous drain and submit steps above are not bounded by this timeout.