(context: StreamingContext)
| 57 | * Safe to call repeatedly. |
| 58 | */ |
| 59 | export function flushThinkingBlock(context: StreamingContext): void { |
| 60 | if (context.currentThinkingBlock) { |
| 61 | stampBlockEnd(context.currentThinkingBlock) |
| 62 | context.contentBlocks.push(context.currentThinkingBlock) |
| 63 | } |
| 64 | context.isInThinkingBlock = false |
| 65 | context.currentThinkingBlock = null |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Flush open subagent thinking blocks into contentBlocks. With a parentToolCallId |
no test coverage detected