Skip to content
Français

HarnessContextStrategy

import type { HarnessContextStrategy } from "@elie-laloum/outpost";
  • kindRequired
    "context"
    Definition discriminator: context.
  • nameRequired
    string
    Name reported in compaction events.
  • compactRequired
    (input: HarnessContextInput) => Promise<HarnessContextResult>
    Run the strategy before a model request.
export interface HarnessContextStrategy {
  readonly kind: "context";
  readonly name: string;
  compact(input: HarnessContextInput): Promise<HarnessContextResult>;
}