|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <RoundRobinGroupChat.hpp>
类 ast::RoundRobinGroupChat 继承关系图:Public 成员函数 | |
| void | addAgent (ChatAgent *agent) |
| const std::vector< ChatAgent * > & | agents () const |
| void | setTerminationCondition (std::unique_ptr< TerminationCondition > condition) |
| TerminationCondition * | terminationCondition () const |
| ChatMessages & | messages () |
| const ChatMessages & | messages () const |
| void | setMaxRounds (int maxRounds) |
| int | maxRounds () const |
| errc_t | run (const ChatMessage &message, ChatMessage &response) override |
Public 成员函数 继承自 ast::BaseGroupChat | |
轮询式群聊
该类实现了轮询式的群聊逻辑,每个Agent按顺序处理消息,直到达到所设定的停止条件。
|
overridevirtual |
运行一次聊天,返回最终的响应消息,过程中会处理工具调用、多个Agent交互等逻辑
| message | 输入消息 |
| response | 输出消息 |
实现了 ast::BaseGroupChat.