( input: WeeklyNarrativeInput, )
| 69 | } |
| 70 | |
| 71 | export async function generateWeeklyNarrative( |
| 72 | input: WeeklyNarrativeInput, |
| 73 | ): Promise<string> { |
| 74 | const result = (await getApp().run('weekly-narrative', { |
| 75 | input: JSON.stringify(input), |
| 76 | context: {}, |
| 77 | // biome-ignore lint/suspicious/noExplicitAny: same dodge as enrich.ts |
| 78 | } as any)) as { structured?: { narrative: string } }; |
| 79 | |
| 80 | return result.structured?.narrative ?? ''; |
| 81 | } |
no test coverage detected