LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Configuration
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsConfigurationTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsindexresolveBackend
Function●Since v1.8

resolveBackend

Resolve a backend instance or await a BackendFactory.

Accepts BackendRuntime or ToolRuntime — store typing differs between LangGraph checkpoint stores and core ToolRuntime; factories receive a value that is structurally compatible at runtime.

Copy
resolveBackend(
  backend: BackendProtocol | BackendFactory,
  runtime: BackendRuntime<unknown> | ToolRuntime
): Promise<BackendProtocol>

Parameters

NameTypeDescription
backend*BackendProtocol | BackendFactory
runtime*BackendRuntime<unknown> | ToolRuntime
View source on GitHub