Skip to content
Français

HarnessToolExecution

import type { HarnessToolExecution } from "@elie-laloum/outpost";
  • concurrencyOptional
    number | undefined
    Maximum read-only calls run in parallel, default 4. Consecutive read-only calls from one model response run together; any other call runs alone, in order.
  • deadlineMsOptional
    number | undefined
    Deadline of each tool call, default 300000 (5 minutes). On expiry the tool’s signal aborts and the call fails with code timeout, handled by onError.
  • onErrorOptional
    "fail" | "return-to-model" | undefined
    What a failed tool call does, including a timeout or a failed subagent: return-to-model (default) sends the error message to the model as an error result; fail rejects the turn with that error.
export interface HarnessToolExecution {
  readonly concurrency?: number;
  readonly deadlineMs?: number;
  readonly onError?: "return-to-model" | "fail";
}