import * as react_jsx_runtime from 'react/jsx-runtime'; /** * AgentEvaluationToast — WealthX DS (L3 Molecule) * * Displays an agent's self-evaluation result after a task is assigned in the * AI pipeline stage flow. The agent reasons against the task description + * expectation and returns a confidence percentage plus a result: * - **Accepted** (≥70%) — agent has all inputs and will proceed autonomously * - **Partial** (40–69%) — agent will attempt but flagged uncertainty; may need * broker review when done * - **Declined** (<40%) — agent lacks required context; task stays with broker * * ### Usage — as a Sonner toast * ```tsx * import { showAgentEvaluationToast } from "@wealthx/shadcn/agent-evaluation-toast"; * * showAgentEvaluationToast({ * agentName: "Ledger Agent", * taskName: "Run serviceability check", * confidence: 84, * result: "accepted", * reasoning: "I have all required inputs to complete this task.", * }); * ``` * * ### Usage — as a standalone card (stories / inline display) * ```tsx * import { AgentEvaluationCard } from "@wealthx/shadcn/agent-evaluation-toast"; * * * ``` */ type AgentEvaluationResult = "accepted" | "partial" | "declined"; interface AgentEvaluationData { agentName: string; taskName: string; /** Agent confidence — 0 to 100. */ confidence: number; result: AgentEvaluationResult; /** Brief agent reasoning shown below the headline. */ reasoning: string; } interface AgentEvaluationCardProps extends AgentEvaluationData { className?: string; } declare function AgentEvaluationCard({ agentName, taskName, confidence, result, reasoning, className, }: AgentEvaluationCardProps): react_jsx_runtime.JSX.Element; /** * Fire a Sonner toast showing the agent's evaluation result. * Requires `` to be mounted in the app. */ declare function showAgentEvaluationToast(data: AgentEvaluationData): void; export { AgentEvaluationCard, type AgentEvaluationCardProps, type AgentEvaluationData, type AgentEvaluationResult, showAgentEvaluationToast };