deliver • AI Agent SDK
deliver: Robustly deliver *content*, inheriting all shared machinery.
deliver
Async
Method
</div>
This is a method of the BasePlatformAdapter class in the base module.
Robustly deliver content, inheriting all shared machinery.
Applies (all capability-gated, via :meth:send):
- per-platform formatting (:meth:
format_message); - long-message chunking (:meth:
chunk) when content is text; - typing heartbeat before the first chunk (if supported);
- retry with exponential backoff honouring `
retry_after`.
Non-text (dict) content is passed straight through to :meth:send without chunking/formatting.
Signature
async def deliver(chat_id: Any, content: Union[str, Dict[str, Any]]) -> SendResultParameters
ParamField
AnyNo description available.
ParamField
UnionNo description available.
Returns
ResponseField
SendResultThe result of the operation.
Uses
send_typingformat_messagechunkSendResult
Used By
Source
View on GitHubpraisonaiagents/bots/base.py at line 827