Skip to main content

InsightEvent

Defined in: types.ts:872

A structured event emitted when the insight engine generates an LLM-powered analysis.

Properties​

agentId​

readonly agentId: string

Defined in: types.ts:874


dataHash​

readonly dataHash: string

Defined in: types.ts:887

Hash of input data — used for cache identity.


eventType​

readonly eventType: "insight.generated"

Defined in: types.ts:873


insightType​

readonly insightType: "failure-analysis" | "anomaly-explanation" | "agent-summary" | "fix-suggestion"

Defined in: types.ts:877


prompt​

readonly prompt: string

Defined in: types.ts:883

The prompt that was sent to the AnalysisFn (for auditing).


response​

readonly response: string

Defined in: types.ts:885

The LLM response.


schemaVersion​

readonly schemaVersion: number

Defined in: types.ts:876


timestamp​

readonly timestamp: number

Defined in: types.ts:875