fix: surface agent workflow progress
This commit is contained in:
@@ -1222,6 +1222,7 @@ export interface AgentChatEvent {
|
||||
| 'complete'
|
||||
| 'error'
|
||||
| 'knowledge_retrieval'
|
||||
| 'llm_chunk'
|
||||
| 'node_complete'
|
||||
| 'node_event'
|
||||
| 'node_start'
|
||||
@@ -1235,8 +1236,10 @@ export interface AgentChatEvent {
|
||||
message_id?: string;
|
||||
conversation_id?: string;
|
||||
tokens_used?: number;
|
||||
total_tokens?: number;
|
||||
elapsed_time?: number;
|
||||
config?: WaitingInputConfig;
|
||||
accumulated_content?: string;
|
||||
// 对话流模式:节点执行事件
|
||||
node_id?: string;
|
||||
node_type?: string;
|
||||
@@ -1436,7 +1439,7 @@ export async function getAgentMessagesApi(
|
||||
conversationId: string,
|
||||
params?: { page?: number; pageSize?: number },
|
||||
) {
|
||||
return requestClient.get<PaginatedResponse<AgentMessage>>(
|
||||
return requestClient.get<AgentMessage[] | PaginatedResponse<AgentMessage>>(
|
||||
`${BASE_URL}/agent/conversations/${conversationId}/messages`,
|
||||
{ params },
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user