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

Function prepareSkippedToolCall

packages/agent-core/src/loop/tool-call.ts:329–336  ·  view source on GitHub ↗
(
  step: ToolCallBatchContext,
  call: PreflightedToolCall,
)

Source from the content-addressed store, hash-verified

327}
328
329async function prepareSkippedToolCall(
330 step: ToolCallBatchContext,
331 call: PreflightedToolCall,
332): Promise<ToolCallTask<PendingToolResult>> {
333 const output = 'Tool skipped because a previous tool call stopped the turn.';
334 await dispatchToolCall(step, call, call.args);
335 return makeResolvedToolCallTask(makeErrorToolResult(call, call.args, output));
336}
337
338function makeResolvedToolCallTask(result: PendingToolResult): ToolCallTask<PendingToolResult> {
339 return {

Callers 1

runToolCallBatchFunction · 0.85

Calls 3

dispatchToolCallFunction · 0.85
makeResolvedToolCallTaskFunction · 0.85
makeErrorToolResultFunction · 0.85

Tested by

no test coverage detected