proposit-core
    Preparing search index...

    Type Alias TTurnResult<TOut>

    Result of a single conversational turn. Mirrors the shape the server's Argument Builder actions need: output, the new response id, token usage, and any processing failures.

    type TTurnResult<TOut> = {
        failures: TProcessingFailure[];
        output: TOut | null;
        responseId: TResponseId | null;
        tokenUsage: TLlmTokenUsage;
    }

    Type Parameters

    • TOut
    Index

    Properties

    failures: TProcessingFailure[]

    Processing failures recorded during the turn.

    output: TOut | null

    The stage's parsed output, or null when the turn failed.

    responseId: TResponseId | null

    The provider response id for this turn (nullable for non-chaining providers such as chat-completions).

    tokenUsage: TLlmTokenUsage

    Cumulative token usage for this turn's LLM call.