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

    Type Alias PromptSuggestionExperimental

    UNSTABLE

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

    A prompt the Agent predicts the user will send next.

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

    The content of the suggested prompt.

    Required and non-null. Must contain at least one content block. This is the same type as the prompt field of session/prompt, and the Client can send it in that field unchanged.

    Agents MUST only use text and resource_link content blocks, and other content block types that both the Agent's session.prompt capability and the Client's session.promptSuggestions capability advertise. Agents MUST NOT send a prompt whose only content is empty or whitespace-only text.

    _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