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

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsbackendsisSandboxProtocol
Function●Since v1.9

isSandboxProtocol

Type guard to check if a backend is a sandbox protocol (v1 or v2).

Checks for the presence of execute function and id string, which are the defining features of sandbox protocols.

Copy
isSandboxProtocol(backend: unknown): backend is AnySandboxProtocol

Parameters

NameTypeDescription
backend*unknown

Backend instance to check

View source on GitHub