refactor: use backend chat sessions
This commit is contained in:
@@ -163,7 +163,6 @@ export const streamAgentChat = async ({
|
||||
try {
|
||||
const parsed = JSON.parse(data) as {
|
||||
session_id?: string;
|
||||
conversationId?: string;
|
||||
content?: string;
|
||||
message?: string;
|
||||
detail?: string;
|
||||
@@ -223,7 +222,7 @@ export const streamAgentChat = async ({
|
||||
} else if (event === "tool_call") {
|
||||
onEvent({
|
||||
type: "tool_call",
|
||||
sessionId: parsed.session_id ?? parsed.conversationId ?? "",
|
||||
sessionId: parsed.session_id ?? "",
|
||||
tool: parsed.tool ?? "",
|
||||
params: resolveToolParams(parsed.params, parsed.arguments),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user