@adcp/client API Reference - v3.3.3
    Preparing search index...

    Interface ConversationContext

    Complete conversation context provided to input handlers

    interface ConversationContext {
        messages: Message[];
        inputRequest: InputRequest;
        taskId: string;
        agent: { id: string; name: string; protocol: "mcp" | "a2a" };
        attempt: number;
        maxAttempts: number;
        deferToHuman(): Promise<{ defer: true; token: string }>;
        abort(reason?: string): never;
        getSummary(): string;
        wasFieldDiscussed(field: string): boolean;
        getPreviousResponse(field: string): any;
    }
    Index

    Properties

    messages: Message[]

    Full conversation history for this task

    inputRequest: InputRequest

    Current input request from the agent

    taskId: string

    Unique task identifier

    agent: { id: string; name: string; protocol: "mcp" | "a2a" }

    Agent configuration

    attempt: number

    Current clarification attempt number (1-based)

    maxAttempts: number

    Maximum allowed clarification attempts

    Methods

    • Helper method to defer task to human

      Returns Promise<{ defer: true; token: string }>