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

Function appendTextToAgentBlock

cli/src/utils/block-operations.ts:434–445  ·  view source on GitHub ↗
(
  blocks: ContentBlock[],
  agentId: string,
  text: string,
  textType: 'text' | 'reasoning' = 'text',
)

Source from the content-addressed store, hash-verified

432}
433
434export const appendTextToAgentBlock = (
435 blocks: ContentBlock[],
436 agentId: string,
437 text: string,
438 textType: 'text' | 'reasoning' = 'text',
439) =>
440 updateAgentText(blocks, agentId, {
441 type: 'text',
442 mode: 'append',
443 content: text,
444 textType,
445 })
446
447export const replaceTextInAgentBlock = (
448 blocks: ContentBlock[],

Callers 2

processTextChunkFunction · 0.90

Calls 1

updateAgentTextFunction · 0.85

Tested by

no test coverage detected