Skip to content
Français

HarnessContextResult

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

What a context strategy’s compact() returns before each model request of the built-in harness: the messages that replace the history, or undefined to keep it unchanged. Replacement messages are validated and lose their reasoning blocks.

Complete example and detailed rules.

export type HarnessContextResult = readonly ModelMessage[] | undefined;