Set Agent • 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 protocols module.

Set the agent that handles messages.

Diagram

Input Data

Agent: set_agent

Output Result

Signature

python
def set_agent(agent: 'Agent') -> None

Parameters

ParamField Agent

The agent to handle incoming messages

Source

View on GitHub

praisonaiagents/bots/protocols.py at line 1100


Related Documentation