Handles responses from AnalyzePlanRequest operations.

This class wraps AnalyzePlanResponse and provides type-safe access to different analysis result types using discriminated unions. It validates the result type before accessing specific values.

const handler = new AnalyzePlanResponseHandler(response);
const schema = handler.schema; // Type-safe access
const explain = handler.explain; // Throws if not explain result

Constructors

Properties

response: AnalyzePlanResponse

core

result