LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithsandbox_access_delegationAccessDelegation
Class●Since v0.14

AccessDelegation

Copy
AccessDelegation()

Bases

TypedDict

Constructors

Attributes

View source on GitHub
constructor
__init__
NameType
modeAccessDelegationMode
permissionslist[str]
attribute
mode: AccessDelegationMode
attribute
permissions: list[str]

Grant letting code inside a sandbox call the LangSmith API as the creator.

mode is "INHERIT" for everything the creator can do, or "EXPLICIT" for the subset named in permissions. Permissions are a ceiling re-checked on every request rather than a snapshot, so access the creator loses is lost here too.