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

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

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

RuleAzureSandboxesProxyAzureWorkloadIdentityConfig

Copy
RuleAzureSandboxesProxyAzureWorkloadIdentityConfig()

Bases

TypedDict

Constructors

Attributes

View source on GitHub
constructor
__init__
NameType
client_idRequired[str]
tenant_idRequired[str]
resourcesList[Literal['https://storage.azure.com', 'https://vault.azure.net', 'https://management.azure.com', 'https://cognitiveservices.azure.com']]
subject_scopestr
attribute
client_id: Required[str]
attribute
tenant_id: Required[str]
attribute
resources: List[Literal['https://storage.azure.com', 'https://vault.azure.net', 'https://management.azure.com', 'https://cognitiveservices.azure.com']]
attribute
subject_scope: str

ClientID is the application (client) ID, a GUID, of the app registration or user-assigned managed identity whose federated identity credential trusts LangSmith's issuer. Required with tenant_id.

TenantID is the Entra tenant (directory) ID, a GUID.

Setting it selects workload identity: LangSmith signs an OIDC token for this workspace and exchanges it at Entra ID for access tokens of client_id, so no secret is stored. Cannot be changed after creation.

Resources narrows the Entra resources access tokens are obtained for, from https://storage.azure.com, https://vault.azure.net, https://management.azure.com and https://cognitiveservices.azure.com. Defaults to all of them. Only valid with tenant_id.

SubjectScope picks the token subject the federated credential trusts: "workspace" (the default) or "tag:", which must be one of the sandbox's tag_value_ids. Only valid with tenant_id.