File tree Expand file tree Collapse file tree
main/java/com/google/adk/a2a/converters
test/java/com/google/adk/a2a Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ private static Optional<com.google.genai.types.Part> convertDataPartToGenAiPart(
137137 return Optional .of (
138138 com .google .genai .types .Part .builder ()
139139 .functionCall (
140- FunctionCall .builder ().name (functionName ).id (functionId ).args (args ).build ())
140+ FunctionCall .builder ().name (functionName ).id (functionId ).id ( functionId ). args (args ).build ())
141141 .build ());
142142 }
143143
@@ -150,7 +150,7 @@ private static Optional<com.google.genai.types.Part> convertDataPartToGenAiPart(
150150 com .google .genai .types .Part .builder ()
151151 .functionResponse (
152152 FunctionResponse .builder ()
153- .name (functionName )
153+ .name (functionName ). id ( functionId )
154154 .id (functionId )
155155 .response (response )
156156 .build ())
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public void convertEventsToA2AMessage_preservesFunctionCallAndResponseParts() {
4545 Part .builder ()
4646 .functionCall (
4747 FunctionCall .builder ()
48- .name ("roll_die" )
48+ .name ("roll_die" ). id ( "adk-call-1" )
4949 .id ("adk-call-1" )
5050 .args (Map .of ("sides" , 6 ))
5151 .build ())
@@ -65,7 +65,7 @@ public void convertEventsToA2AMessage_preservesFunctionCallAndResponseParts() {
6565 Part .builder ()
6666 .functionResponse (
6767 FunctionResponse .builder ()
68- .name ("roll_die" )
68+ .name ("roll_die" ). id ( "adk-call-1" )
6969 .id ("adk-call-1" )
7070 .response (Map .of ("result" , 3 ))
7171 .build ())
You can’t perform that action at this time.
0 commit comments