MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / onSubagentResponseChunk

Function onSubagentResponseChunk

sdk/src/run.ts:363–379  ·  view source on GitHub ↗
(
    action: ServerAction<'subagent-response-chunk'>,
  )

Source from the content-addressed store, hash-verified

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,

Callers 1

runOnceFunction · 0.85

Calls 1

handleStreamChunkFunction · 0.50

Tested by

no test coverage detected