Agent Client Protocol - v0.4.6
    Preparing search index...

    Interface PromptRequest

    Request parameters for sending a user prompt to the agent.

    Contains the user's message and any additional context.

    See protocol docs: User Message

    interface PromptRequest {
        _meta?: { [k: string]: unknown };
        prompt: ContentBlock[];
        sessionId: string;
    }
    Index

    Properties

    _meta?: { [k: string]: unknown }

    Extension point for implementations

    prompt: ContentBlock[]

    The blocks of content that compose the user's message.

    As a baseline, the Agent MUST support [ContentBlock::Text] and [ContentBlock::ResourceLink], while other variants are optionally enabled via [PromptCapabilities].

    The Client MUST adapt its interface according to [PromptCapabilities].

    The client MAY include referenced pieces of context as either [ContentBlock::Resource] or [ContentBlock::ResourceLink].

    When available, [ContentBlock::Resource] is preferred as it avoids extra round-trips and allows the message to include pieces of context from sources the agent may not have access to.

    sessionId: string

    The ID of the session to send this user message to