/** * Action Decoder — normalized model-output boundary. * * Normalizes heterogeneous provider/model output (native tool calls, * structured JSON envelopes, plain-text fallback) into the finite * Jensen-owned AgentAction union. The rest of the runtime never inspects raw * provider output directly. */ import type { ActionValidationFailure, AgentAction } from "./types.js"; export type ActionDecodeResult = { ok: true; action: AgentAction; } | { ok: false; failure: ActionValidationFailure; }; /** * Decode raw model output into an AgentAction. Returns a structured failure * (never throws) when the output cannot be normalized. */ export declare function decodeAction(raw: unknown): ActionDecodeResult; //# sourceMappingURL=action-decoder.d.ts.map