( input: ExplainInsightInput, )
| 119 | } |
| 120 | |
| 121 | export async function generateInsightExplanation( |
| 122 | input: ExplainInsightInput, |
| 123 | ): Promise<InsightExplanation | null> { |
| 124 | const result = (await getApp().run('insight-explain', { |
| 125 | input: JSON.stringify(input), |
| 126 | context: {}, |
| 127 | // biome-ignore lint/suspicious/noExplicitAny: same dodge as enrich.ts |
| 128 | } as any)) as { structured?: InsightExplanation }; |
| 129 | |
| 130 | return result.structured ?? null; |
| 131 | } |
no test coverage detected