Skip to content

[Feat!]: Use records for immutable objects in the spec API #507

@jmesnil

Description

@jmesnil

Is your feature request related to a problem? Please describe.

The domain objects in spec are immutable but use either class or record for their definitions.
That makes the api quite inconsistent (eg task.getTaskId() vs artifact.artifactId()).

Use records for the domain object would be more consistent and helps with #506.

This would be a breaking change in the API though...

Describe the solution you'd like

Use records for the domain API so that the API naming conventions and usage would be more consistent.
It should at least be done for the "payloads" (Task, Message, update events, etc.) and the agent card (and its attributes).

Types that would be affected are:

Describe alternatives you've considered

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions