refactor: 重命名 agent_chat 模块为 agent
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user