( name: string, compute: ComputeFn, )
| 18 | * Computed once, cached until /clear or /compact. |
| 19 | */ |
| 20 | export function systemPromptSection( |
| 21 | name: string, |
| 22 | compute: ComputeFn, |
| 23 | ): SystemPromptSection { |
| 24 | return { name, compute, cacheBreak: false } |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Create a volatile system prompt section that recomputes every turn. |