Get Agent • Rust AI Agent SDK

get_agent: Get the current agent.

get_agent

Method

</div>

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

Get the current agent.

Diagram

Input Data

Agent: get_agent

Output Result

Signature

python
def get_agent(&self) -> Option<Arc<Agent>>

Returns

Rust Agent Rust Overview Rust Quickstart Rust Installation Rust Autonomy