Skip to main content

Agent

(In preview) A protocol for Agent.
An agent can communicate with other agents and perform actions.
Different agents can differ in what actions they perform in the receive method.
Parameters:

Instance Attributes

description


The description of the agent. Used for the agent’s introduction in a group chat setting.

name


The name of the agent.

Instance Methods

a_generate_reply

(Async) Generate a reply based on the received messages.
Parameters: Returns:

a_receive

(Async) Receive a message from another agent.
Parameters:

a_send

(Async) Send a message to another agent.
Parameters:

generate_reply

Generate a reply based on the received messages.
Parameters: Returns:

receive

Receive a message from another agent.
Parameters:

send

Send a message to another agent.
Parameters:

set_ui_tools

Set the UI tools for the agent.
Parameters:

unset_ui_tools

Unset the UI tools for the agent.
Parameters: