LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmithexperimentalsandboxSandboxreconnect
Method●Since v0.7

reconnect

Reconnect to a running command by its command ID.

Returns a new CommandHandle that resumes output from the given offsets.

Copy
reconnect(commandId: string, options: __type = {}): Promise<CommandHandle>

Parameters

NameTypeDescription
commandId*string

The server-assigned command ID.

options__type
Default:{}

Reconnection options with byte offsets.

View source on GitHub