Interface TaskArtifactUpdateEventMapper_v0_3
- All Known Implementing Classes:
TaskArtifactUpdateEventMapper_v0_3Impl
public interface TaskArtifactUpdateEventMapper_v0_3
Bidirectional mapper for converting TaskArtifactUpdateEvent between A2A Protocol v0.3 and v1.0.
Key differences:
- v0.3: TaskArtifactUpdateEvent is a record with accessor methods (e.g.,
taskId(),append()) - v1.0: TaskArtifactUpdateEvent is a record with accessor methods (e.g.,
taskId(),append())
Both versions have the same structure:
TaskArtifactUpdateEvent(taskId, artifact, contextId, append, lastChunk, metadata).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TaskArtifactUpdateEventMapper_v0_3Singleton instance accessed viaA2AMappers_v0_3factory. -
Method Summary
Modifier and TypeMethodDescriptiondefault TaskArtifactUpdateEvent_v0_3Converts v1.0 TaskArtifactUpdateEvent to v0.3 TaskArtifactUpdateEvent.default TaskArtifactUpdateEventConverts v0.3 TaskArtifactUpdateEvent to v1.0 TaskArtifactUpdateEvent.
-
Field Details
-
INSTANCE
Singleton instance accessed viaA2AMappers_v0_3factory.
-
-
Method Details
-
toV10
Converts v0.3 TaskArtifactUpdateEvent to v1.0 TaskArtifactUpdateEvent.Converts the nested Artifact using ArtifactMapper.
- Parameters:
v03- the v0.3 task artifact update event- Returns:
- the equivalent v1.0 task artifact update event
-
fromV10
Converts v1.0 TaskArtifactUpdateEvent to v0.3 TaskArtifactUpdateEvent.Converts the nested Artifact using ArtifactMapper.
- Parameters:
v10- the v1.0 task artifact update event- Returns:
- the equivalent v0.3 task artifact update event
-