Is Explicitly Allowed • AI Agent SDK

is_explicitly_allowed: Whether a user is explicitly allow-listed.

is_explicitly_allowed

Method

</div>

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

Whether a user is explicitly allow-listed.

Unlike :meth:is_user_allowed, an empty `allowed_users returns False here — the inbound pipeline then defers to unknown_user_policy`. This is the check the security pipeline should use to decide whether to bypass the unknown-user handler.

Signature

python
def is_explicitly_allowed(user_id: str) -> bool

Parameters

ParamField str

No description available.

Returns

ResponseField bool

The result of the operation.

Source

View on GitHub

praisonaiagents/bots/config.py at line 232