#include <ChatEventHandler.hpp>
流式聊天事件处理器
纯虚接口,所有方法均有空默认体。子类按需重写。
◆ isCancelled()
| virtual bool ast::ChatEventHandler::isCancelled |
( |
| ) |
const |
|
inlinevirtual |
◆ onComplete()
| virtual void ast::ChatEventHandler::onComplete |
( |
| ) |
|
|
inlinevirtual |
◆ onContentChunk()
| virtual void ast::ChatEventHandler::onContentChunk |
( |
const std::string & | text | ) |
|
|
inlinevirtual |
◆ onContentComplete()
| virtual void ast::ChatEventHandler::onContentComplete |
( |
const std::string & | text | ) |
|
|
inlinevirtual |
◆ onError()
| virtual void ast::ChatEventHandler::onError |
( |
const std::string & | error | ) |
|
|
inlinevirtual |
◆ onReasoningChunk()
| virtual void ast::ChatEventHandler::onReasoningChunk |
( |
const std::string & | reasoning | ) |
|
|
inlinevirtual |
◆ onReasoningComplete()
| virtual void ast::ChatEventHandler::onReasoningComplete |
( |
const std::string & | reasoning | ) |
|
|
inlinevirtual |
◆ onToolCallRequest()
| virtual void ast::ChatEventHandler::onToolCallRequest |
( |
const std::string & | toolCallId, |
|
|
const std::string & | functionName, |
|
|
const std::string & | arguments ) |
|
inlinevirtual |
◆ onToolCallResult()
| virtual void ast::ChatEventHandler::onToolCallResult |
( |
const std::string & | toolCallId, |
|
|
const std::string & | functionName, |
|
|
const std::string & | result ) |
|
inlinevirtual |
该类的文档由以下文件生成: