Function
createAgentBlock
(
overrides: Partial<AgentContentBlock>,
)
Source from the content-addressed store, hash-verified
| 9 | import type { AgentContentBlock } from '../../types/chat' |
| 10 | |
| 11 | const 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 | |
| 25 | describe('getAgentDisplayPrompt', () => { |
| 26 | test('uses initial prompt when present', () => { |
Tested by
no test coverage detected