token_resolver_context Module

Token resolver context types for contextual token resolution.

These types provide rich context to the token resolver delegate, including the agent identity (agent ID + agentic user ID) and tenant ID.

Classes

AgentIdentity

Represents the identity of an agent and its acting user.

In the AI teammate scenario, agentic_user_id is 1:1 with agent_id. In the S2S scenario, agentic_user_id will be None.

TokenResolverContext

Provides contextual information to the token resolver delegate.

identity provides first-class access to agent identity fields (agent ID, agentic user ID). tenant_id and identity together identify the cache key.