send • AI Agent SDK

send: Deliver a message to a symbolic target.

send

Async

Method

</div>

This is a method of the OutboundMessengerProtocol class in the protocols module.

Deliver a message to a symbolic target.

Signature

python
async def send(target: str, text: str) -> 'DeliveryResult'

Parameters

ParamField str

Symbolic target token (“origin”, “&lt;platform&gt;”, “&lt;platform&gt;:&lt;chat_id&gt;[:&lt;thread_id&gt;]”, or a friendly alias).

ParamField str

The message text to send.

Returns

ResponseField 'DeliveryResult'

class:DeliveryResult describing the outcome.

Used By

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 3587