Get Agent • AI Agent SDK

get_agent: Get the current agent.

get_agent

Method

</div>

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

Get the current agent.

Diagram

Input Data

Agent: get_agent

Output Result

Signature

python
def get_agent() -> Optional['Agent']

Returns

ResponseField Optional['Agent']

The result of the operation.

Source

View on GitHub

praisonaiagents/bots/protocols.py at line 1108


Related Documentation