Agent Client Protocol - v0.2.0-alpha.8
    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 {
        prompt: ContentBlock[];
        sessionId: string;
    }
    Index

    Properties

    Properties

    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

    A unique identifier for a conversation session between a client and agent.

    Sessions maintain their own context, conversation history, and state, allowing multiple independent interactions with the same agent.

    Example

    use agent_client_protocol::SessionId;
    use std::sync::Arc;

    let session_id = SessionId(Arc::from("sess_abc123def456"));

    See protocol docs: Session ID