Skip to content

Commit dc0ecca

Browse files
committed
Ensure all property types are translated when converting function calls to a2a
Python and Go implementations of ADK both copy function call and response properties by copying the entire struct automatically. Java does this a property at a time and so was missing the "id" property of the ADK event. Providing these allows downstream agents to properly associate multiple tool calls and responses to the same tool name.
1 parent ddbe414 commit dc0ecca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

a2a/src/test/java/com/google/adk/a2a/EventConverterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void convertEventsToA2AMessage_preservesFunctionCallAndResponseParts() {
4343

4444
Part functionCallPart =
4545
Part.builder()
46-
.functionCall(FunctionCall.builder().name("roll_die").id("call-1").args(Map.of("sides", 6)).build())
46+
.functionCall(FunctionCall.builder().name("roll_die").id("adk-call-1").args(Map.of("sides", 6)).build())
4747
.build();
4848
Event callEvent =
4949
Event.builder()

0 commit comments

Comments
 (0)