On Command • Rust AI Agent SDK

on_command: Handle command

on_command

Async

Method

</div>

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

Handle command

Signature

python
async def on_command(&self, command: &str, args: &[&str]) -> Result<BotResponse>

Parameters

ParamField &str

No description available.

ParamField &[&str]

No description available.

Returns

Rust CLI