ACP v2 (Preview) TypeScript SDK — UNSTABLE - v2.12.1
    Preparing search index...

    Type Alias UnknownStateUpdate

    The Agent cannot currently determine foreground activity.

    The Agent MUST report this when it can no longer observe the session's foreground work. Silence alone is not lost observability. The Client MUST stop presenting the previous state as confirmed current activity, but MAY retain it as last known. A later state replaces this snapshot normally.

    This is not a task outcome or session closure. It does not cancel work, resolve pending requests, or revoke capabilities. If a control is no longer available, the Agent updates the capabilities explicitly. Unfinished tool calls and terminals stay as last reported. The Agent MUST NOT invent a final status for them, and Clients MUST NOT present them as confirmed live activity.

    type UnknownStateUpdate = {
        background?: BackgroundWork[] | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    background?: BackgroundWork[] | null

    Work running independently of foreground work, as a complete snapshot.

    Optional. Omitted and null are equivalent and mean the Agent is not reporting background work, not that nothing is running. [] means no background work is running. An Agent that reports background work MUST include it on every state update for the session.

    See protocol docs: Background Work

    _meta?: { [key: string]: unknown } | null

    The _meta property is reserved by ACP to allow Clients and Agents to attach additional metadata to their interactions. Omitted and null are equivalent and mean no metadata. Implementations MUST NOT assign meaning to keys they do not recognize.

    See protocol docs: Extensibility