(
action: ServerAction<'subagent-response-chunk'>,
)
| 361 | } |
| 362 | } |
| 363 | const onSubagentResponseChunk = async ( |
| 364 | action: ServerAction<'subagent-response-chunk'>, |
| 365 | ) => { |
| 366 | if (signal?.aborted) { |
| 367 | return |
| 368 | } |
| 369 | const { agentId, agentType, chunk } = action |
| 370 | |
| 371 | if (handleStreamChunk && chunk) { |
| 372 | await handleStreamChunk({ |
| 373 | type: 'subagent_chunk', |
| 374 | agentId, |
| 375 | agentType, |
| 376 | chunk, |
| 377 | }) |
| 378 | } |
| 379 | } |
| 380 | |
| 381 | const agentRuntimeImpl = getAgentRuntimeImpl({ |
| 382 | logger, |
no test coverage detected