Skip to content

Commit 6ba72f0

Browse files
fix: Update json names of gRPC objects for proper transcoding (#847)
1 parent aeef656 commit 6ba72f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

specification/grpc/a2a.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ message TaskStatus {
185185
// The current state of this task
186186
TaskState state = 1;
187187
// A message associated with the status.
188-
Message update = 2;
188+
Message update = 2 [json_name = "message"];
189189
// Timestamp when the status was recorded.
190190
// Example: "2023-10-27T10:00:00Z"
191191
google.protobuf.Timestamp timestamp = 3;
@@ -640,7 +640,7 @@ message GetAgentCardRequest {
640640
message SendMessageResponse {
641641
oneof payload {
642642
Task task = 1;
643-
Message msg = 2;
643+
Message msg = 2 [json_name = "message"];
644644
}
645645
}
646646

@@ -656,7 +656,7 @@ message SendMessageResponse {
656656
message StreamResponse {
657657
oneof payload {
658658
Task task = 1;
659-
Message msg = 2;
659+
Message msg = 2 [json_name = "message"];
660660
TaskStatusUpdateEvent status_update = 3;
661661
TaskArtifactUpdateEvent artifact_update = 4;
662662
}

0 commit comments

Comments
 (0)