(fragment: AnyFragment)
| 410 | |
| 411 | return { |
| 412 | onFragment(fragment: AnyFragment): void { |
| 413 | const item = domainFragmentToRenderItem(fragment); |
| 414 | if (!item) return; |
| 415 | if (item.type === 'header') { |
| 416 | sawIncomingHeaderEvent = true; |
| 417 | } |
| 418 | if (item.type !== 'header') { |
| 419 | sawIncomingNonHeaderEvent = true; |
| 420 | if (item.type === 'summary') { |
| 421 | sawIncomingSummaryEvent = true; |
| 422 | pendingStreamedSummary = item as SummaryTextBlock; |
| 423 | return; |
| 424 | } else { |
| 425 | sawIncomingNonSummaryEvent = true; |
| 426 | } |
| 427 | } |
| 428 | processItem(item); |
| 429 | }, |
| 430 | |
| 431 | setStructuredOutput(output: StructuredToolOutput): void { |
| 432 | structuredOutput = output; |
nothing calls this directly
no test coverage detected