(context: ChatAgentContext)
| 142 | * function. |
| 143 | */ |
| 144 | export function buildSystemPrompt(context: ChatAgentContext): string { |
| 145 | return [buildBasePrompt(), buildPageContextSection(context.pageContext)] |
| 146 | .filter(Boolean) |
| 147 | .join('\n\n'); |
| 148 | } |
| 149 | |
| 150 | function buildPageContextSection(pc?: PageContext): string { |
| 151 | // The date varies every day, so we keep it out of the cached prefix |
no test coverage detected