MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / generateWeeklyNarrative

Function generateWeeklyNarrative

packages/ai/src/narrative.ts:71–81  ·  view source on GitHub ↗
(
  input: WeeklyNarrativeInput,
)

Source from the content-addressed store, hash-verified

69}
70
71export 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}

Callers 1

buildDigestDataFunction · 0.90

Calls 2

getAppFunction · 0.70
stringifyMethod · 0.45

Tested by

no test coverage detected