Skip to content
Français

HarnessHookContext

import type { HarnessHookContext } from "@elie-laloum/outpost";
  • sandboxRequired
    SandboxLease
    Borrowed sandbox of the turn; hooks may inspect the repository through it.
  • signalRequired
    AbortSignal
    Turn cancellation signal; asynchronous hooks should honor it.
  • modelRequired
    AgentModel
    Normalized model of the agent running the turn.
  • stepRequired
    number
    Current step number; 0 during session-start.
export interface HarnessHookContext {
  readonly sandbox: SandboxLease;
  readonly signal: AbortSignal;
  readonly model: AgentModel;
  readonly step: number;
}