MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / makeErrorToolResult

Function makeErrorToolResult

packages/agent-core/src/loop/tool-call.ts:686–692  ·  view source on GitHub ↗
(
  call: PreflightedToolCall,
  args: unknown,
  output: string,
)

Source from the content-addressed store, hash-verified

684}
685
686function makeErrorToolResult(
687 call: PreflightedToolCall,
688 args: unknown,
689 output: string,
690): PendingToolResult {
691 return makeToolResult(call, args, { output, isError: true });
692}
693
694/**
695 * Record `tool.call` in provider order. Reusing the provider/API tool-call id

Callers 3

settleErrorFunction · 0.85
prepareSkippedToolCallFunction · 0.85
runRunnableToolCallFunction · 0.85

Calls 1

makeToolResultFunction · 0.85

Tested by

no test coverage detected