Skip to content
Français

DecisionResult

import type { DecisionResult } from "@elie-laloum/outpost";
  • providerRequired
    string
    Name of the decision provider that executed the request.
  • modelRequired
    string
    Actual nonempty model name reported by the provider response.
  • answersRequired
    DecisionAnswers<Q>
    Validated answers with keys and choice literals inferred from the decision questions.
  • usageRequired
    Usage
    Normalized usage counted once by the enclosing task or routed harness; absent receipts set complete to false.
  • 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 DecisionResult<
  Q extends DecisionQuestions = DecisionQuestions,
> {
  readonly provider: string;
  readonly model: string;
  readonly answers: DecisionAnswers<Q>;
  readonly usage: Usage;
  readonly truncated?: boolean;
  readonly metadata?: WorkflowJson;
}