-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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
Labels
enhancementNew feature or requestNew feature or request