目录
本文主要对 AutoGen 代理的基类 ConversableAgent 进行介绍。
一、ConversableAgent 类
ConversableAgent 类是代理的基类,AssistantAgent 和 UserProxyAgent 是该类的子类,部分代码如下所示。
class ConversableAgent(LLMAgent):
"""(In preview) A class for generic conversable agents which can be configured as assistant or user proxy.
After receiving each message, the agent will send a reply to the sender unless the msg is a termination msg.
For example, AssistantAgent and UserProxyAgent are subclasses of this class,
configured with different default settings.
To modify auto reply, override `generate_reply` method.
To disable/enable human response