( step: ToolCallBatchContext, call: PreflightedToolCall, )
| 327 | } |
| 328 | |
| 329 | async 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 | |
| 338 | function makeResolvedToolCallTask(result: PendingToolResult): ToolCallTask<PendingToolResult> { |
| 339 | return { |
no test coverage detected