Skip to main content

deliver

AsyncMethod
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

Parameters

Any
required
No description available.
Union
required
No description available.

Returns

SendResult
The result of the operation.

Uses

  • send_typing
  • format_message
  • chunk
  • SendResult

Source

View on GitHub

praisonaiagents/bots/base.py at line 549