Outbound Messenger Protocol • AI Agent SDK

OutboundMessengerProtocol: Protocol for agent-facing proactive message delivery.

OutboundMessengerProtocol

Defined in the protocols module.

AI Agent

Protocol for agent-facing proactive message delivery.

A concrete implementation is provided by the running gateway/bot (in the praisonai wrapper) and registered into the per-turn context so the built-in `send_message` tool can resolve it. It bridges to the existing delivery stack (DeliveryRouter, HomeChannelRegistry, outbox, mirroring).

Example usage (implementation in praisonai_bot.gateway)::

messenger = BotOutboundMessenger(bot, resolver, router) token = register_outbound_messenger(messenger) try: … # agent runs; send_message tool resolves the messenger finally: clear_outbound_messenger(token)

Methods

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 3569