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

    Type Alias PromptSuggestionsUpdateExperimental

    UNSTABLE

    This capability is not part of the spec yet, and may be removed or changed at any point.

    Replaces the session's current list of prompt suggestions.

    A prompt suggestion is a prompt the Agent predicts the user will send next. The Client offers suggestions where the user writes the next prompt. The list in the most recent update is the current list until the Agent sends another update. A session starts with an empty list.

    Suggestions are not part of session history. Agents SHOULD NOT include this update when they replay a session.

    Agents MUST only send this update when the Client advertised the session.promptSuggestions Client capability.

    type PromptSuggestionsUpdate = {
        suggestions: PromptSuggestion[];
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    suggestions: PromptSuggestion[]

    The suggestions the Client can offer, ordered most likely first.

    Required and non-null. An empty list withdraws the suggestions the Client is offering.

    _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