(overrides: Record<string, unknown> = {})
| 4 | const defaultPrompt = ['You are a helpful assistant.', 'Follow instructions.'] |
| 5 | |
| 6 | function buildPrompt(overrides: Record<string, unknown> = {}) { |
| 7 | return buildEffectiveSystemPrompt({ |
| 8 | mainThreadAgentDefinition: undefined, |
| 9 | toolUseContext: { options: {} as any }, |
| 10 | customSystemPrompt: undefined, |
| 11 | defaultSystemPrompt: defaultPrompt, |
| 12 | appendSystemPrompt: undefined, |
| 13 | ...overrides, |
| 14 | }) |
| 15 | } |
| 16 | |
| 17 | describe('buildEffectiveSystemPrompt', () => { |
| 18 | test('returns default system prompt when no overrides', () => { |
no test coverage detected