Member Junction
    Preparing search index...

    The accumulated outcome of one harness turn, assembled by HarnessAgentBase from the adapter's event stream.

    interface HarnessTurnResult {
        CostUsd?: number;
        ErrorMessage?: string;
        InputTokens: number;
        OutputTokens: number;
        RawText: string;
        ReportedModel?: string;
        SessionId?: string;
    }
    Index

    Properties

    CostUsd?: number
    ErrorMessage?: string

    Set when the turn failed rather than completed.

    InputTokens: number

    Summed usage for the turn. Zeros when the harness reports none — which is itself a finding.

    OutputTokens: number
    RawText: string

    Raw turn-end text, handed to the Loop JSON parser exactly as a prompt response would be.

    ReportedModel?: string

    The model the harness ACTUALLY used, as it reported it (e.g. claude-opus-4-6).

    Distinct from the model we asked for. A harness free to pick its own model will, and recording the one we assumed instead of the one it used makes cost attribution wrong — Opus and Sonnet are not the same price.

    SessionId?: string

    Vendor session id, persisted to AIAgentRun.ExternalSessionID for resume and log correlation.