ART Framework API Docs
    Preparing search index...

    Interface A2ATaskEvent

    Event data structure for A2A task updates. Contains the updated task and metadata about the change.

    interface A2ATaskEvent {
        eventType:
            | "created"
            | "updated"
            | "completed"
            | "failed"
            | "cancelled"
            | "status_changed"
            | "delegated";
        metadata?: {
            automatic?: boolean;
            context?: Record<string, any>;
            source?: string;
        };
        previousStatus?: A2ATaskStatus;
        task: A2ATask;
        timestamp: number;
    }
    Index

    Properties

    eventType:
        | "created"
        | "updated"
        | "completed"
        | "failed"
        | "cancelled"
        | "status_changed"
        | "delegated"

    The type of event that occurred

    metadata?: {
        automatic?: boolean;
        context?: Record<string, any>;
        source?: string;
    }

    Additional metadata about the event

    Type declaration

    • Optionalautomatic?: boolean

      Whether this was an automatic update or manual

    • Optionalcontext?: Record<string, any>

      Any additional context

    • Optionalsource?: string

      The component that triggered the update

    previousStatus?: A2ATaskStatus

    Previous status (if applicable) for status change events

    task: A2ATask

    The A2A task that was updated

    timestamp: number

    Timestamp when the event occurred