|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include "AstGlobal.h"#include <string>类 | |
| class | ast::ChatEventHandler |
命名空间 | |
| namespace | ast |
流式聊天事件处理器 — 纯虚接口
用户通过继承此类并重写相关方法,实现对 LLM 流式输出的实时处理。 对应 Python AutoGen 的事件类型体系: onTextChunk → ModelClientStreamingChunkEvent onToolCallRequest → ToolCallRequestEvent onToolCallResult → ToolCallExecutionEvent onThought → ThoughtEvent onComplete → Response
SpaceAST项目(https://github.com/space-ast/ast) 本软件基于 Apache 2.0 开源许可证分发。 您可在遵守许可证条款的前提下使用、修改和分发本软件。 许可证全文请见:
http://www.apache.org/licenses/LICENSE-2.0
重要须知: 软件按"现有状态"提供,无任何明示或暗示的担保条件。 除非法律要求或书面同意,作者与贡献者不承担任何责任。 使用本软件所产生的风险,需由您自行承担。