Interface MessageSendConfigurationMapper_v0_3

All Known Implementing Classes:
MessageSendConfigurationMapper_v0_3Impl

public interface MessageSendConfigurationMapper_v0_3
Bidirectional mapper for converting MessageSendConfiguration between A2A Protocol v0.3 and v1.0.

Key differences:

  • v0.3: PushNotificationConfig pushNotificationConfig, Boolean blocking
  • v1.0: TaskPushNotificationConfig taskPushNotificationConfig, Boolean returnImmediately

Conversion strategy:

  • blocking (v0.3) ↔ returnImmediately (v1.0): Inverse semantics - returnImmediately = !blocking
  • PushNotificationConfig wraps to TaskPushNotificationConfig with empty taskId
  • Field Details

  • Method Details

    • toV10

      Converts v0.3 MessageSendConfiguration to v1.0 MessageSendConfiguration.

      Converts blocking to returnImmediately with inverse semantics, and wraps PushNotificationConfig into TaskPushNotificationConfig.

      Parameters:
      v03 - the v0.3 message send configuration
      Returns:
      the equivalent v1.0 message send configuration
    • fromV10

      Converts v1.0 MessageSendConfiguration to v0.3 MessageSendConfiguration.

      Converts returnImmediately to blocking with inverse semantics, and extracts PushNotificationConfig from TaskPushNotificationConfig.

      Parameters:
      v10 - the v1.0 message send configuration
      Returns:
      the equivalent v0.3 message send configuration