* Check whether a user message's content contains tool_result blocks. * This is more reliable than checking `toolUseResult === undefined` because * sub-agent tool result messages explicitly set `toolUseResult` to `undefined` * when `preserveToolUseResults` is false (the default for Explore agents
(content: unknown)
| 2445 | * when `preserveToolUseResults` is false (the default for Explore agents). |
| 2446 | */ |
| 2447 | function hasToolResultContent(content: unknown): boolean { |
| 2448 | return Array.isArray(content) && content.some(isToolResultBlock) |
| 2449 | } |
| 2450 | |
| 2451 | /** |
| 2452 | * Tools that succeeded (and never errored) since the previous real turn |
no outgoing calls
no test coverage detected