Send Message • AI Agent SDK

send_message: Runtime send entry point (“Bot.send_message“).

send_message

Async

Method

</div>

This is a method of the BasePlatformAdapter class in the base module.

Runtime send entry point (`Bot.send_message`).

Default routes through :meth:deliver so formatting, chunking, typing and retry apply; `thread_id is forwarded in metadata`.

Signature

python
async def send_message(channel_id: Any, content: Union[str, Dict[str, Any]], reply_to: Optional[str], thread_id: Optional[str]) -> SendResult

Parameters

ParamField Any

No description available.

ParamField Union

No description available.

ParamField Optional[str]

No description available.

ParamField Optional[str]

No description available.

Returns

ResponseField SendResult

The result of the operation.

Uses

  • deliver

Source

View on GitHub

praisonaiagents/bots/base.py at line 605