@nevermined-io/payments
    Preparing search index...

    Interface TaskHandlerResult

    Result returned by the user's task handler.

    This interface defines the structure that user executors must return from their handleTask method. The result includes:

    • Parts that will be converted to A2A Message or Artifact objects
    • Optional metadata for payment tracking and other purposes
    • Task state information

    The result is processed by the PaymentsA2AAdapter to create the appropriate A2A protocol objects and handle payment operations.

    interface TaskHandlerResult {
        metadata?: PaymentMetadata & Record<string, any>;
        parts: Part[];
        state?: TaskState;
    }
    Index

    Properties

    metadata?: PaymentMetadata & Record<string, any>

    Optional metadata including payment information and custom data

    parts: Part[]

    Parts that will be converted to A2A Message or Artifact objects

    state?: TaskState

    The final state of the task