|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <ChatConsole.hpp>
类 ast::ChatConsole 继承关系图:Public 类型 | |
| using | RendererType = MarkdownRenderer |
Public 成员函数 | |
| void | onContentChunk (const std::string &text) override |
| void | onReasoningChunk (const std::string &reasoning) override |
| void | onToolCallRequest (const std::string &, const std::string &functionName, const std::string &arguments) override |
| void | onToolCallResult (const std::string &, const std::string &functionName, const std::string &result) override |
| void | onComplete () override |
| void | onError (const std::string &error) override |
| void | setRawOutput (bool raw) |
| bool | isRawOutput () const |
Public 成员函数 继承自 ast::ChatEventHandler | |
| virtual void | onContentComplete (const std::string &text) |
| virtual void | onReasoningComplete (const std::string &reasoning) |
| virtual bool | isCancelled () const |
终端输出事件处理器
将流式事件格式化输出到 stdout,支持 Markdown 渲染
|
overridevirtual |
本轮对话完成
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
LLM 请求调用工具(含完整函数名和参数)
| toolCallId | 工具调用 ID |
| functionName | 函数名称 |
| arguments | 参数字符串(JSON 格式) |
|
overridevirtual |