Interface StudioAgentTurnExperimental

interface StudioAgentTurn {
    errorMessage?: string;
    events: readonly StudioAiChatEvent[];
    rounds: number;
    status: StudioAgentTurnStatus;
    stopReason?: StudioAiStopReason;
    text: string;
    toolCalls: readonly StudioAgentToolDispatch[];
}

Properties

errorMessage?: string

Populated for status: "error" and status: "refused".

events: readonly StudioAiChatEvent[]
rounds: number

Assistant rounds actually streamed.

stopReason?: StudioAiStopReason
text: string

Concatenated assistant text across every round of this turn.

toolCalls: readonly StudioAgentToolDispatch[]