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

    Type Alias PromptResponseExperimental

    Response acknowledging that a user prompt was inserted into the ACP conversation.

    This response does not indicate that the prompt was merely received or held, nor that the Agent has finished processing it. Processing and completion are reported through state_update session updates.

    Insertion is the logical addition of a user message with a message ID and a position relative to other messages in the ACP conversation.

    See protocol docs: Prompt Accepted

    type PromptResponse = {
        messageId: MessageId;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    messageId: MessageId

    Identifies the user message inserted into the ACP conversation.

    Required and non-null. Omission and explicit null are both invalid.

    The corresponding user-message session update carries this same identifier and may arrive before or after this response. Agents MUST echo the message during the live session, but are not required to retain it. If retained and replayed, the message keeps this identifier.

    _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