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.
Signature
def set_agent(&mut self, agent: Arc<Agent>) -> ()Parameters
ParamField
Arc<Agent>No description available.
Returns
ResponseField
()The result of the operation.