Skip to content

[Bug]: Optional Fields As per Specifications are not handled in Task Class Constructor #253

@priyanshus1

Description

@priyanshus1

What happened?

mvn: a2a-java-sdk-client
class name: io.a2a.spec.Task

In the A2A specification document: https://a2a-protocol.org/latest/specification/#61-task-object
The task object contains optional field: artificat & history. If I take the ? suffix in my understading.
However the class constructor for the Task does not follow it.
Image

Even in the https://github.com/a2aproject/A2A/blob/main/specification/json/a2a.json Task spec does not make artifact and history as mandatory.

Image

Expectation:
The Task class should provide an additional constructor to handle the optional fields as per the specification

Relevant log output

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions