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
Pythonlangsmithresourcessandboxescommand_historyCommandHistoryResourceretrieve
Methodโ—Since v0.16

retrieve

Copy
retrieve(
  self,
  command_id: str,
  *,
  sandbox_id: str,
  extra_headers: Headers 
View source on GitHub
|
None
=
None
,
extra_query
:
Query
|
None
=
None
,
extra_body
:
Body
|
None
=
None
,
timeout
:
float
|
httpx
.
Timeout
|
None
|
NotGiven
=
not_given
)
->
CommandHistory

Parameters

NameTypeDescription
extra_headersHeaders | None
Default:None

Send extra headers

extra_queryQuery | None
Default:None

Add additional query parameters to the request

extra_bodyBody | None
Default:None
timeoutfloat | httpx.Timeout | None | NotGiven
Default:not_given

Beta: these log reads may change in incompatible ways before general availability. Return metadata for one retained Execute API command. History remains readable while the sandbox is stopped. Access requires the sandbox creator or sandboxes:exec. Capture and retention may be incomplete; UNKNOWN status has no known exit result.

Add additional JSON properties to the request

Override the client-level default timeout for this request, in seconds