Skip to content
Français

DecisionProviderResult

import type { DecisionProviderResult } from "@elie-laloum/outpost";
  • modelRequired
    string
    Actual nonempty model name reported by the provider response.
  • answersRequired
    Readonly<Record<string, unknown>>
    Untrusted native answer objects, validated by decide against every declared question.
  • usageOptional
    Usage | undefined
    Optional normalized usage receipt; missing usage becomes incomplete rather than proof of zero consumption.
  • truncatedOptional
    boolean | undefined
    Reported input truncation; absence does not establish that the complete input was evaluated.
  • metadataOptional
    WorkflowJson | undefined
    Optional lossless JSON extensions; the System One adapter retains the full native response here.
export interface DecisionProviderResult {
  readonly model: string;
  readonly answers: Readonly<Record<string, unknown>>;
  readonly usage?: Usage;
  readonly truncated?: boolean;
  readonly metadata?: WorkflowJson;
}