Set Agent • Rust AI Agent SDK

set_agent: Set the agent that handles messages.

set_agent

Method

</div>

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

Set the agent that handles messages.

Diagram

Input Data

Agent: set_agent

Output Result

Signature

python
def set_agent(&mut self, agent: Arc<Agent>) -> ()

Parameters

ParamField Arc&lt;Agent&gt;

No description available.

Returns

ResponseField ()

The result of the operation.


Related Documentation