On Message • Rust AI Agent SDK

on_message: Handle incoming message

on_message

Async

Method

</div>

This is a method of the BotProtocol class in the protocols module.

Handle incoming message

Signature

python
async def on_message(&self, message: BotMessage) -> Result<BotResponse>

Parameters

ParamField BotMessage

No description available.

Returns

PreviousNext