MCPcopy Index your code
hub / github.com/simstudioai/sim / getToolCallStateOutput

Function getToolCallStateOutput

apps/sim/lib/copilot/request/tool-call-state.ts:27–33  ·  view source on GitHub ↗
(toolCall: Pick<ToolCallState, 'result'>)

Source from the content-addressed store, hash-verified

25}
26
27export function getToolCallStateOutput(toolCall: Pick<ToolCallState, 'result'>): unknown {
28 if (!toolCall.result || !hasOwnOutput(toolCall.result)) {
29 return undefined
30 }
31
32 return toolCall.result.output
33}
34
35export function requireToolCallStateResult(
36 toolCall: Pick<ToolCallState, 'id' | 'status' | 'result'>

Callers 3

buildToolCallSummariesFunction · 0.90
getToolCallTerminalDataFunction · 0.85

Calls 1

hasOwnOutputFunction · 0.85

Tested by

no test coverage detected