refactor: 重命名 agent_chat 模块为 agent

This commit is contained in:
qzl
2026-03-02 11:13:20 +08:00
parent 2ac56e5084
commit 99d540a18d
57 changed files with 11175 additions and 74 deletions
@@ -15,6 +15,7 @@ class AgUiEventTypeWire {
static const toolCallEnd = 'TOOL_CALL_END';
static const toolCallResult = 'TOOL_CALL_RESULT';
static const toolCallError = 'TOOL_CALL_ERROR';
static const messagesSnapshot = 'MESSAGES_SNAPSHOT';
}
enum AgUiEventType {
@@ -29,6 +30,7 @@ enum AgUiEventType {
toolCallEnd,
toolCallResult,
toolCallError,
messagesSnapshot,
unknown,
}
@@ -44,6 +46,7 @@ const _wireToTypeMap = {
AgUiEventTypeWire.toolCallEnd: AgUiEventType.toolCallEnd,
AgUiEventTypeWire.toolCallResult: AgUiEventType.toolCallResult,
AgUiEventTypeWire.toolCallError: AgUiEventType.toolCallError,
AgUiEventTypeWire.messagesSnapshot: AgUiEventType.messagesSnapshot,
};
const _typeToWireMap = {