Skip to content
Français

Execution

import type { Execution } from "@elie-laloum/outpost";
  • textRequired
    string
    Text of every turn of the execution, joined with newlines, including response repair turns.
  • turnsRequired
    readonly Turn[]
    Every turn in order, including response repairs and turns resumed by steering.
  • usageRequired
    Usage
    Token counters summed over every turn; not a cost.
  • conversationOptional
    string | undefined
    Native conversation id of the last turn, when the agent reported one.
  • valueRequired
    T
    Parsed and validated response; undefined without a response option.
  • completedRequired
    boolean
    True when the last turn’s text contains a completion marker, or when a typed response was validated.
  • completionOptional
    string | undefined
    Completion marker found in the last turn’s text.
export interface Execution<T> {
  readonly text: string;
  readonly turns: readonly Turn[];
  readonly usage: Usage;
  readonly conversation?: string;
  readonly value: T;
  readonly completed: boolean;
  readonly completion?: string;
}