Has Scope Policy • AI Agent SDK

has_scope_policy: Whether an operator scope policy is configured.

has_scope_policy

Method

</div>

This is a method of the GatewayConfig class in the config module.

Whether an operator scope policy is configured.

When False (the default), every authenticated client is granted all scopes — preserving the original binary auth behaviour.

Signature

python
def has_scope_policy() -> bool

Returns

ResponseField bool

The result of the operation.

Source

View on GitHub

praisonaiagents/gateway/config.py at line 1301