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

Function replaceTextInAgentBlock

cli/src/utils/block-operations.ts:447–456  ·  view source on GitHub ↗
(
  blocks: ContentBlock[],
  agentId: string,
  text: string,
)

Source from the content-addressed store, hash-verified

445 })
446
447export const replaceTextInAgentBlock = (
448 blocks: ContentBlock[],
449 agentId: string,
450 text: string,
451) =>
452 updateAgentText(blocks, agentId, {
453 type: 'text',
454 mode: 'replace',
455 content: text,
456 })
457
458export const appendToolToAgentBlock = (
459 blocks: ContentBlock[],

Callers

nothing calls this directly

Calls 1

updateAgentTextFunction · 0.85

Tested by

no test coverage detected