Skip to content
Français

HarnessModelRoutingContext

import type { HarnessModelRoutingContext } from "@elie-laloum/outpost";
  • systemRequired
    string
    Session instructions already resolved once for the run.
  • messagesRequired
    readonly ModelMessage[]
    Current post-compaction messages; custom state builders must explicitly exclude any opaque reasoning they do not need.
  • toolsRequired
    readonly ModelToolSpec[]
    Available model-facing tool declarations for this step.
  • stepRequired
    number
    One-based harness step about to request a conversational model.
  • modelRequired
    AgentModel
    Active effective model before the new selection, also used by preceding compaction.
  • signalRequired
    AbortSignal
    Run cancellation signal; state callbacks and providers should honor it.
export interface HarnessModelRoutingContext {
  readonly system: string;
  readonly messages: readonly ModelMessage[];
  readonly tools: readonly ModelToolSpec[];
  readonly step: number;
  readonly model: AgentModel;
  readonly signal: AbortSignal;
}