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

Function createAgentBlock

cli/src/utils/__tests__/agent-display.test.ts:11–23  ·  view source on GitHub ↗
(
  overrides: Partial<AgentContentBlock>,
)

Source from the content-addressed store, hash-verified

9import type { AgentContentBlock } from '../../types/chat'
10
11const createAgentBlock = (
12 overrides: Partial<AgentContentBlock>,
13): AgentContentBlock => ({
14 type: 'agent',
15 agentId: 'agent-1',
16 agentName: 'Basher',
17 agentType: 'basher',
18 content: '',
19 status: 'running',
20 blocks: [],
21 initialPrompt: '',
22 ...overrides,
23})
24
25describe('getAgentDisplayPrompt', () => {
26 test('uses initial prompt when present', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected