Skip to content

[Feature Request] Support Kind "DataPart" in a2a responses #5874

@d8rt8v

Description

@d8rt8v

Problem Description

Hi, it seems that now A2A interface supports only TextPart (For text content) and FilePart (For media files) but the support of DataPart is missing.

Proposed Solution

Add DataPart support in responses, e.g

{
  "jsonrpc": "2.0",
  "id": "request_123",
  "result": {
    "id": "run_abc123",
    "contextId": "session_xyz",
    "status": {
      "state": "completed"
    },
    "history": [
      {
        "messageId": "msg_789",
        "role": "agent",
        "parts": [
          {
            "kind": "text",
            "text": "Found 2 products matching your query"
          },
          {
            "kind": "data",
            "data": {
              "products": [
                {
                  "id": 1,
                  "name": "Dog Food Premium",
                  "price": 29.99
                },
                {
                  "id": 2,
                  "name": "Cat Food Deluxe",
                  "price": 24.99
                }
              ],
              "total": 2,
              "query": "pet food"
            }
          }
        ],
        "contextId": "session_xyz",
        "taskId": "run_abc123"
      }
    ]
  }
}

Alternatives Considered

No response

Additional Context

Official spec: https://a2a-protocol.org/latest/specification/#Part

Would you like to work on this?

  • Yes, I’d love to work on it!
  • I’m open to collaborating but need guidance.
  • No, I’m just sharing the idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions