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

    Interface DeferredTaskState

    Deferred task state for resumption

    interface DeferredTaskState {
        token: string;
        taskId: string;
        taskName: string;
        agentId: string;
        params: any;
        messages: {
            id: string;
            role: "agent" | "user" | "system";
            content: any;
            timestamp: string;
            metadata?: Record<string, any>;
        }[];
        pendingInput?: {
            question: string;
            field?: string;
            expectedType?: string;
            suggestions?: any[];
            validation?: Record<string, any>;
        };
        deferredAt: string;
        expiresAt: string;
        metadata?: Record<string, any>;
    }
    Index

    Properties

    token: string

    Unique token for this deferred task

    taskId: string

    Task ID

    taskName: string

    Task name

    agentId: string

    Agent ID

    params: any

    Task parameters

    messages: {
        id: string;
        role: "agent" | "user" | "system";
        content: any;
        timestamp: string;
        metadata?: Record<string, any>;
    }[]

    Message history up to deferral point

    pendingInput?: {
        question: string;
        field?: string;
        expectedType?: string;
        suggestions?: any[];
        validation?: Record<string, any>;
    }

    Pending input request that caused deferral

    deferredAt: string

    When task was deferred

    expiresAt: string

    When token expires

    metadata?: Record<string, any>

    Additional metadata