ART Framework API Docs
    Preparing search index...

    Interface A2ATask

    Represents a task for Agent-to-Agent (A2A) communication and delegation. Used for asynchronous task delegation between AI agents in distributed systems.

    A2ATask

    interface A2ATask {
        callbackUrl?: string;
        dependencies?: string[];
        metadata: A2ATaskMetadata;
        payload: {
            input: any;
            instructions?: string;
            parameters?: Record<string, any>;
            taskType: string;
        };
        priority: A2ATaskPriority;
        result?: A2ATaskResult;
        sourceAgent: A2AAgentInfo;
        status: A2ATaskStatus;
        targetAgent?: A2AAgentInfo;
        taskId: string;
        threadId: string;
    }
    Index

    Properties

    callbackUrl?: string

    Callback URL or identifier for task completion notifications.

    dependencies?: string[]

    Dependencies that must be completed before this task can start.

    metadata: A2ATaskMetadata

    Task execution metadata.

    payload: {
        input: any;
        instructions?: string;
        parameters?: Record<string, any>;
        taskType: string;
    }

    The data payload containing task parameters and context.

    Type declaration

    • input: any

      Input data required for task execution.

    • Optionalinstructions?: string

      Instructions or configuration for the task.

    • Optionalparameters?: Record<string, any>

      Additional parameters specific to the task type.

    • taskType: string

      The type of task to be executed (e.g., 'analyze', 'synthesize', 'transform').

    priority: A2ATaskPriority

    Task priority level.

    result?: A2ATaskResult

    The result of task execution (if completed).

    sourceAgent: A2AAgentInfo

    Information about the agent that created/requested this task.

    Current status of the task.

    targetAgent?: A2AAgentInfo

    Information about the agent assigned to execute this task (if assigned).

    taskId: string

    Unique identifier for the task.

    threadId: string

    The thread this task belongs to (top-level for efficient filtering).