microsoft.opentelemetry.a365.core.exporters.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.
- class microsoft.opentelemetry.a365.core.exporters.token_resolver_context.AgentIdentity(agent_id, agentic_user_id=None)[source]
Bases:
objectRepresents the identity of an agent and its acting user.
In the AI teammate scenario,
agentic_user_idis 1:1 withagent_id. In the S2S scenario,agentic_user_idwill be None.
- class microsoft.opentelemetry.a365.core.exporters.token_resolver_context.TokenResolverContext(identity, tenant_id)[source]
Bases:
objectProvides contextual information to the token resolver delegate.
identityprovides first-class access to agent identity fields (agent ID, agentic user ID).tenant_idandidentitytogether identify the cache key.- property identity: AgentIdentity
The agent identity associated with this token resolution request.
Contains the agent ID and agentic user ID (AAD Object ID) as first-class properties.