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

Function generateInsightExplanation

packages/ai/src/explain.ts:121–131  ·  view source on GitHub ↗
(
  input: ExplainInsightInput,
)

Source from the content-addressed store, hash-verified

119}
120
121export 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}

Callers 1

insight.tsFile · 0.90

Calls 2

getAppFunction · 0.70
stringifyMethod · 0.45

Tested by

no test coverage detected