@runloop/remote-agents-sdk
    Preparing search index...

    Type Alias Turn

    type Turn = {
        completedAt: number | null;
        durationMs: number | null;
        error: TurnError | null;
        id: string;
        items: ThreadItem[];
        itemsView: TurnItemsView;
        startedAt: number | null;
        status: TurnStatus;
    }
    Index

    Properties

    completedAt: number | null

    Unix timestamp (in seconds) when the turn completed.

    durationMs: number | null

    Duration between turn start and completion in milliseconds, if known.

    error: TurnError | null

    Only populated when the Turn's status is failed.

    id: string

    Identifier for this turn. Codex-generated turn IDs are UUIDv7.

    items: ThreadItem[]

    Thread items currently included in this turn payload.

    itemsView: TurnItemsView

    Describes how much of items has been loaded for this turn.

    startedAt: number | null

    Unix timestamp (in seconds) when the turn started.

    status: TurnStatus