ACP v2 TypeScript SDK — UNSTABLE DRAFT - v2.0.0
    Preparing search index...

    Type Alias PromptResponse

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

    This response does not indicate that the prompt was merely received or queued, 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. Implementations MUST NOT make assumptions about values at these keys.

    See protocol docs: Extensibility