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

Function buildToolCallSummaries

apps/sim/lib/copilot/request/context/result.ts:7–18  ·  view source on GitHub ↗
(context: StreamingContext)

Source from the content-addressed store, hash-verified

5 * Build a ToolCallSummary array from the streaming context.
6 */
7export function buildToolCallSummaries(context: StreamingContext): ToolCallSummary[] {
8 return Array.from(context.toolCalls.values()).map((toolCall) => ({
9 id: toolCall.id,
10 name: toolCall.name,
11 status: toolCall.status,
12 params: toolCall.params,
13 result: getToolCallStateOutput(toolCall),
14 error: toolCall.error,
15 durationMs:
16 toolCall.endTime && toolCall.startTime ? toolCall.endTime - toolCall.startTime : undefined,
17 }))
18}

Callers 2

runCopilotLifecycleFunction · 0.90
result.test.tsFile · 0.90

Calls 1

getToolCallStateOutputFunction · 0.90

Tested by

no test coverage detected