(input: { readonly previousSummary?: string; readonly context: readonly string[] })
| 164 | } |
| 165 | |
| 166 | export const buildPrompt = (input: { readonly previousSummary?: string; readonly context: readonly string[] }) => |
| 167 | [ |
| 168 | input.previousSummary |
| 169 | ? `Update the anchored summary below using the conversation history above.\nPreserve still-true details, remove stale details, and merge in the new facts.\n<previous-summary>\n${input.previousSummary}\n</previous-summary>` |
| 170 | : "Create a new anchored summary from the conversation history.", |
| 171 | SUMMARY_TEMPLATE, |
| 172 | ...input.context, |
| 173 | ].join("\n\n") |
| 174 | |
| 175 | export const make = (dependencies: Dependencies) => { |
| 176 | const config = settings(dependencies.config) |
no outgoing calls
no test coverage detected