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
JavaScriptdeepagentsindexisSandboxProtocol
Function●Since v1.8

isSandboxProtocol

Copy
isSandboxProtocol(backend: unknown): backend is AnySandboxProtocol
View source on GitHub

Parameters

NameTypeDescription
backend*unknown

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.

Backend instance to check