answer.ts
922 bytes
| 1 | import type { LlmMessage } from '../llm-client'; |
|---|---|
| 2 | import { ROUNDTABLE_PREAMBLE } from './index'; |
| 3 | |
| 4 | /** |
| 5 | * Round 0 - independent answer. |
| 6 | * |
| 7 | * Each council member answers the question cold, with no knowledge of the other |
| 8 | * members' responses. Deliberately open-ended: we want genuine diversity of |
| 9 | * approach here, which the later rounds then reconcile. |
| 10 | */ |
| 11 | export function buildAnswerPrompt(question: string): LlmMessage[] { |
| 12 | return [ |
| 13 | { |
| 14 | role: 'system', |
| 15 | content: |
| 16 | `${ROUNDTABLE_PREAMBLE}\n\n` + |
| 17 | 'This is the opening round. Answer the question directly and completely on ' + |
| 18 | 'your own. State your reasoning and note any important assumptions, caveats, ' + |
| 19 | 'or uncertainty. Do not hedge to the point of vagueness - commit to a clear ' + |
| 20 | 'position where the evidence supports one.', |
| 21 | }, |
| 22 | { |
| 23 | role: 'user', |
| 24 | content: `Question:\n${question}`, |
| 25 | }, |
| 26 | ]; |
| 27 | } |
| 28 | |