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

python
async def deliver(chat_id: Any, content: Union[str, Dict[str, Any]]) -> SendResult

Parameters

ParamField Any

No description available.

ParamField Union

No description available.

Returns

ResponseField SendResult

The result of the operation.

Uses

  • send_typing
  • format_message
  • chunk
  • SendResult

Used By

Source

View on GitHub

praisonaiagents/bots/base.py at line 827