mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
Store tool call results
This commit is contained in:
@@ -246,6 +246,11 @@ export const sseHandlers: Record<string, SSEHandler> = {
|
||||
updatedMap[toolCallId] = {
|
||||
...current,
|
||||
state: targetState,
|
||||
result: {
|
||||
success: !!data?.success,
|
||||
output: data?.result ?? undefined,
|
||||
error: (data?.error as string) ?? undefined,
|
||||
},
|
||||
display: resolveToolDisplay(
|
||||
current.name,
|
||||
targetState,
|
||||
|
||||
@@ -29,6 +29,8 @@ export interface CopilotToolCall {
|
||||
display?: ClientToolDisplay
|
||||
/** UI metadata from the copilot SSE event (used as fallback for unregistered tools) */
|
||||
serverUI?: ServerToolUI
|
||||
/** Persisted tool call result for rendering resources on chat reload */
|
||||
result?: { success: boolean; output?: unknown; error?: string }
|
||||
/** Tool should be executed client-side (set by Go backend via SSE) */
|
||||
clientExecutable?: boolean
|
||||
/** Content streamed from a subagent (e.g., debug agent) */
|
||||
|
||||
Reference in New Issue
Block a user