Is Webhook Mode • AI Agent SDK
is_webhook_mode: Whether bot is configured for webhook mode.
is_webhook_mode
Method
</div>
This is a method of the BotConfig class in the config module.
Whether bot is configured for webhook mode.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph TD
event["Event Trigger"] --> hook["Hook: is_webhook_mode"]
hook --> decision{"Decision"}
decision -- "Allow" --> proc["Process"]
decision -- "Deny" --> block["Block"]
style hook fill:#189AB4,color:#fff
style event fill:#8B0000,color:#fff
style proc fill:#8B0000,color:#fff
style block fill:#8B0000,color:#fffSignature
def is_webhook_mode() -> boolReturns
ResponseField
boolThe result of the operation.
Source
View on GitHubpraisonaiagents/bots/config.py at line 204