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_paramRuleGcpSandboxesProxyGcpWorkloadIdentityConfig
Class●Since v0.14

RuleGcpSandboxesProxyGcpWorkloadIdentityConfig

Copy
RuleGcpSandboxesProxyGcpWorkloadIdentityConfig()

Bases

TypedDict

Constructors

Attributes

View source on GitHub
constructor
__init__
NameType
workload_identity_providerRequired[str]
scopesSequenceNotStr[str]
service_account_emailstr
subject_scopestr
attribute
workload_identity_provider: Required[str]
attribute
scopes: SequenceNotStr[str]
attribute
service_account_email: str
attribute
subject_scope: str

WorkloadIdentityProvider federates an OIDC token LangSmith signs for this workspace through Workload Identity Federation instead of a service account key. Use the full resource name: //iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/. Cannot be changed after creation.

Scopes are the OAuth scopes requested for the access token.

Omit them to use https://www.googleapis.com/auth/cloud-platform.

ServiceAccountEmail is the service account to impersonate with the federated token. Omit it to use the federated principal directly.

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