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
JavaScriptdeepagentsindexAnyBackendProtocol
Type●Since v1.8

AnyBackendProtocol

Union of v1 and v2 backend protocols.

Use this when accepting either protocol version. Pass through adaptBackendProtocol to normalize to BackendProtocolV2.

Copy
AnyBackendProtocol: BackendProtocolV1 | BackendProtocolV2
View source on GitHub