@shortcut/client
    Preparing search index...

    Interface ShortcutAgentSession

    An agent session as the v4 agent-sessions API returns it. Timestamps are ISO 8601 strings in UTC. A session event carries the snapshot taken when the event was written, so turn is the turn the event belongs to.

    interface ShortcutAgentSession {
        acknowledged_at: string | null;
        agent_member_id: string;
        closed_reason: ShortcutAgentSessionClosedReason | null;
        created_at: string;
        created_by: string;
        entity_id: number;
        entity_type: string & {} | "story" | "epic";
        external_urls: ShortcutAgentSessionExternalUrl[];
        first_delivery_at: string | null;
        id: string;
        installation_id: string;
        last_agent_activity_at: string | null;
        last_delivery_error: string | null;
        last_delivery_failed_at: string | null;
        plan: ShortcutAgentSessionPlanItem[];
        status: ShortcutAgentSessionStatus;
        stop_requested_at: string | null;
        thread_comment_id: number | null;
        turn: number;
        updated_at: string;
        version: number;
        workspace_id: string;
    }
    Index

    Properties

    acknowledged_at: string | null
    agent_member_id: string

    The agent's member id. Activities are published in its name.

    closed_reason: ShortcutAgentSessionClosedReason | null
    created_at: string
    created_by: string

    The member who started the session, or the agent when nobody wrote anything.

    entity_id: number

    The Story or Epic public id.

    entity_type: string & {} | "story" | "epic"
    first_delivery_at: string | null
    id: string
    installation_id: string
    last_agent_activity_at: string | null
    last_delivery_error: string | null
    last_delivery_failed_at: string | null
    stop_requested_at: string | null
    thread_comment_id: number | null

    The comment thread the session started from, for a mention or reply.

    turn: number

    Advances on every human prompt that is not a stop request. Send it back with every activity.

    updated_at: string
    version: number

    Optimistic-concurrency version required by PATCH /agent-sessions/{id}.

    workspace_id: string