Interface TaskMapper_v0_3
- All Known Implementing Classes:
TaskMapper_v0_3Impl
public interface TaskMapper_v0_3
Bidirectional mapper for converting Task between A2A Protocol v0.3 and v1.0.
Key differences:
- v0.3: Task is a record with accessor methods (e.g.,
id(),status()) - v1.0: Task is a record with accessor methods (e.g.,
id(),status()) - v0.3 has a
kindfield withkind()method - v1.0 has a
kind()method from theStreamingEventKindinterface
The conversion involves mapping nested types:
TaskStatusviaTaskStatusMapper_v0_3Artifactlist viaArtifactMapper_v0_3Messagehistory list viaMessageMapper_v0_3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TaskMapper_v0_3Singleton instance accessed viaA2AMappers_v0_3factory. -
Method Summary
-
Field Details
-
INSTANCE
Singleton instance accessed viaA2AMappers_v0_3factory.
-
-
Method Details
-
toV10
-
fromV10
-