> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# deliver • AI Agent SDK

> deliver: Robustly deliver *content*, inheriting all shared machinery.

# deliver

<div className="flex items-center gap-2">
  <Badge color="blue">Async</Badge>
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**BasePlatformAdapter**](../classes/BasePlatformAdapter) class in the [**base**](../modules/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 theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def deliver(chat_id: Any, content: Union[str, Dict[str, Any]]) -> SendResult
```

## Parameters

<ParamField query="chat_id" type="Any" required={true}>
  No description available.
</ParamField>

<ParamField query="content" type="Union" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="SendResult">
  The result of the operation.
</ResponseField>

## Uses

* `send_typing`
* `format_message`
* `chunk`
* `SendResult`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/bots/base.py#L549">
  `praisonaiagents/bots/base.py` at line 549
</Card>
