Skip to content
Français

defineHarnessInstructions

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

Define system instructions from text or from a resolver called at the start of each turn with the sandbox, signal, model and MCP context. The resolved text is not stored in the conversation.

Complete example and detailed rules.

  • sourceRequired
    HarnessInstructionSource
    Nonempty instruction text, or a function that receives the turn context and returns the text when the turn starts.

HarnessInstructions

export declare function defineHarnessInstructions(
  source: HarnessInstructionSource,
): HarnessInstructions;