Skip to content
Français

ModelRouteEvent

import type { ModelRouteEvent } from "@elie-laloum/outpost";
  • kindRequired
    "model-route"
    Selection event discriminator model-route.
  • stepRequired
    number
    Harness step for which this effective model was selected.
  • choiceRequired
    string
    Effective candidate key after confidence and availability fallback rules.
  • modelRequired
    AgentModel
    Selected normalized model with its own reasoning and output settings.
  • reasonRequired
    "unavailable" | "selected" | "confidence"
    Selected for accepted confidence, confidence for low-confidence fallback, unavailable for a permitted router fault.
  • confidenceOptional
    number | undefined
    Native decision confidence, present only when a valid choice response was received.
export interface ModelRouteEvent {
  readonly kind: "model-route";
  readonly step: number;
  readonly choice: string;
  readonly model: AgentModel;
  readonly reason: "selected" | "confidence" | "unavailable";
  readonly confidence?: number;
}