Resolve Agents • AI Agent SDK
resolve_agents: Resolve the agent ids “token“ is confined to (Issue #6253).
resolve_agents
Method
</div>
This is a method of the GatewayConfig class in the config module.
Resolve the agent ids `token` is confined to (Issue #6253).
`None means unconfined (every agent) — the result whenever no policy is set or the token's entry carries no agents list, so existing token -> [scopes]` policies are unchanged. A token absent from a configured policy holds no scopes, so it never reaches an agent regardless of this value.
Signature
def resolve_agents(token: Optional[str]) -> Optional[List[str]]Parameters
ParamField
Optional[str]No description available.
Returns
ResponseField
Optional[List[str]]The result of the operation.
Source
View on GitHubpraisonaiagents/gateway/config.py at line 1411