Interface EventKindMapper_v0_3

All Known Implementing Classes:
EventKindMapper_v0_3Impl

public interface EventKindMapper_v0_3
Bidirectional polymorphic mapper for converting EventKind between A2A Protocol v0.3 and v1.0.

Handles conversion for all EventKind implementers:

Uses instanceof dispatch to determine the concrete type and delegates to the appropriate mapper.

  • Field Details

  • Method Details

    • toV10

      default EventKind toV10(EventKind_v0_3 v03)
      Converts v0.3 EventKind to v1.0 EventKind.

      Uses instanceof dispatch to determine the concrete type and delegates to the appropriate mapper.

      Parameters:
      v03 - the v0.3 event kind
      Returns:
      the equivalent v1.0 event kind
      Throws:
      InvalidRequestError - if the event kind type is unrecognized
    • fromV10

      default EventKind_v0_3 fromV10(EventKind v10)
      Converts v1.0 EventKind to v0.3 EventKind.

      Uses instanceof dispatch to determine the concrete type and delegates to the appropriate mapper.

      Parameters:
      v10 - the v1.0 event kind
      Returns:
      the equivalent v0.3 event kind
      Throws:
      InvalidRequestError - if the event kind type is unrecognized