|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <TextMentionTermination.hpp>
类 ast::TextMentionTermination 继承关系图:Public 成员函数 | |
| TextMentionTermination (StringView text) | |
| bool | shouldTerminate (const ChatMessages &messages) const override |
| void | setText (StringView text) |
| const std::string & | text () const |
Public 成员函数 继承自 ast::TerminationCondition | |
文本提及终止条件
当最后一条消息内容中包含指定文本时,判定应终止。 常用于让Agent在达成一致时输出特定关键词(如 "APPROVED")来结束对话。
|
explicit |
构造函数
| text | 触发终止的文本 |
|
overridevirtual |