Skip to content
Français

HarnessInstructionSource

import type { HarnessInstructionSource } from "@elie-laloum/outpost";

Instruction text, or a function of HarnessInstructionContext (sandbox, signal, model, mcp) that returns it, possibly asynchronously. Accepted by defineHarnessInstructions() and a skill’s instructions; empty text, or a function that resolves to anything but a string, fails with code configuration.

Complete example and detailed rules.

export type HarnessInstructionSource =
  string | ((context: HarnessInstructionContext) => string | Promise<string>);