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

Function settleError

packages/agent-core/src/loop/tool-call.ts:232–239  ·  view source on GitHub ↗
(
    args: unknown,
    output: string,
    displayFields?: ToolCallDisplayFields,
  )

Source from the content-addressed store, hash-verified

230 call: PreflightedToolCall,
231): Promise<PreparedToolCallTask> {
232 const settleError = async (
233 args: unknown,
234 output: string,
235 displayFields?: ToolCallDisplayFields,
236 ): Promise<PreparedToolCallTask> => {
237 await dispatchToolCall(step, call, args, displayFields);
238 return { task: makeResolvedToolCallTask(makeErrorToolResult(call, args, output)) };
239 };
240
241 const settleSynthetic = async (
242 args: unknown,

Callers 2

prepareToolCallFunction · 0.85
settleAbortedFunction · 0.85

Calls 3

dispatchToolCallFunction · 0.85
makeResolvedToolCallTaskFunction · 0.85
makeErrorToolResultFunction · 0.85

Tested by

no test coverage detected