/** * CEE Portfolio / Batch Health Example (TypeScript) * * This example shows how a downstream service might summarise the health of a * portfolio of decisions based on existing CeeDecisionReviewPayload objects. * * Notes: * - This file is not executed automatically in CI; it is example code only. * - When consuming the published SDK, replace "../index.js" with * "@olumi/assistants-sdk". */ import { type CeeDecisionReviewPayload } from "../index.js"; /** * Minimal shape for a decision review entry in a portfolio. The CEE layer * never needs to see raw prompts or graphs – only this metadata. */ export interface PortfolioDecisionReviewItem { decisionId: string; createdAt: string; cee: CeeDecisionReviewPayload; } export interface PortfolioHealthSummary { total_decisions: number; ok_count: number; warning_count: number; risk_count: number; has_truncation_count: number; has_disagreement_count: number; incomplete_journeys_count: number; } /** * Compute a simple portfolio-level health summary from a batch of * CeeDecisionReviewPayloads. This helper is metadata-only: it uses only health * bands, truncation flags, disagreement flags, and completeness. */ export declare function computePortfolioHealthSummary(items: PortfolioDecisionReviewItem[]): PortfolioHealthSummary;