@@ -143,7 +143,7 @@ public void declaration_withInputSchema_returnsDeclarationWithSchema() {
143143 AgentTool agentTool =
144144 AgentTool .create (
145145 createTestAgentBuilder (createTestLlm (LlmResponse .builder ().build ()))
146- .name ("agent name " )
146+ .name ("agent_name " )
147147 .description ("agent description" )
148148 .inputSchema (inputSchema )
149149 .build ());
@@ -153,7 +153,7 @@ public void declaration_withInputSchema_returnsDeclarationWithSchema() {
153153 assertThat (declaration )
154154 .isEqualTo (
155155 FunctionDeclaration .builder ()
156- .name ("agent name " )
156+ .name ("agent_name " )
157157 .description ("agent description" )
158158 .parameters (inputSchema )
159159 .build ());
@@ -164,7 +164,7 @@ public void declaration_withoutInputSchema_returnsDeclarationWithRequestParamete
164164 AgentTool agentTool =
165165 AgentTool .create (
166166 createTestAgentBuilder (createTestLlm (LlmResponse .builder ().build ()))
167- .name ("agent name " )
167+ .name ("agent_name " )
168168 .description ("agent description" )
169169 .build ());
170170
@@ -173,7 +173,7 @@ public void declaration_withoutInputSchema_returnsDeclarationWithRequestParamete
173173 assertThat (declaration )
174174 .isEqualTo (
175175 FunctionDeclaration .builder ()
176- .name ("agent name " )
176+ .name ("agent_name " )
177177 .description ("agent description" )
178178 .parameters (
179179 Schema .builder ()
@@ -200,7 +200,7 @@ public void call_withInputSchema_invalidInput_throwsException() throws Exception
200200 .build ();
201201 LlmAgent testAgent =
202202 createTestAgentBuilder (createTestLlm (LlmResponse .builder ().build ()))
203- .name ("agent name " )
203+ .name ("agent_name " )
204204 .description ("agent description" )
205205 .inputSchema (inputSchema )
206206 .build ();
@@ -256,7 +256,7 @@ public void call_withOutputSchema_invalidOutput_throwsException() throws Excepti
256256 "{\" is_valid\" : \" invalid type\" , "
257257 + "\" message\" : \" success\" }" )))
258258 .build ()))
259- .name ("agent name " )
259+ .name ("agent_name " )
260260 .description ("agent description" )
261261 .outputSchema (outputSchema )
262262 .build ();
@@ -301,7 +301,7 @@ public void call_withInputAndOutputSchema_successful() throws Exception {
301301 Part .fromText (
302302 "{\" is_valid\" : true, " + "\" message\" : \" success\" }" )))
303303 .build ()))
304- .name ("agent name " )
304+ .name ("agent_name " )
305305 .description ("agent description" )
306306 .inputSchema (inputSchema )
307307 .outputSchema (outputSchema )
@@ -332,7 +332,7 @@ public void call_withoutSchema_returnsConcatenatedTextFromLastEvent() throws Exc
332332 Part .fromText ("First text part. " ),
333333 Part .fromText ("Second text part." )))
334334 .build ())))
335- .name ("agent name " )
335+ .name ("agent_name " )
336336 .description ("agent description" )
337337 .build ();
338338 AgentTool agentTool = AgentTool .create (testAgent );
@@ -358,7 +358,7 @@ public void call_withThoughts_returnsOnlyNonThoughtText() throws Exception {
358358 .build ())
359359 .build ());
360360 LlmAgent testAgent =
361- createTestAgentBuilder (testLlm ).name ("agent name " ).description ("agent description" ).build ();
361+ createTestAgentBuilder (testLlm ).name ("agent_name " ).description ("agent description" ).build ();
362362 AgentTool agentTool = AgentTool .create (testAgent );
363363 ToolContext toolContext = createToolContext (testAgent );
364364
@@ -373,7 +373,7 @@ public void call_emptyModelResponse_returnsEmptyMap() throws Exception {
373373 LlmAgent testAgent =
374374 createTestAgentBuilder (
375375 createTestLlm (LlmResponse .builder ().content (Content .builder ().build ()).build ()))
376- .name ("agent name " )
376+ .name ("agent_name " )
377377 .description ("agent description" )
378378 .build ();
379379 AgentTool agentTool = AgentTool .create (testAgent );
@@ -394,7 +394,7 @@ public void call_withInputSchema_argsAreSentToAgent() throws Exception {
394394 .build ());
395395 LlmAgent testAgent =
396396 createTestAgentBuilder (testLlm )
397- .name ("agent name " )
397+ .name ("agent_name " )
398398 .description ("agent description" )
399399 .inputSchema (
400400 Schema .builder ()
@@ -422,7 +422,7 @@ public void call_withoutInputSchema_requestIsSentToAgent() throws Exception {
422422 .content (Content .fromParts (Part .fromText ("test response" )))
423423 .build ());
424424 LlmAgent testAgent =
425- createTestAgentBuilder (testLlm ).name ("agent name " ).description ("agent description" ).build ();
425+ createTestAgentBuilder (testLlm ).name ("agent_name " ).description ("agent description" ).build ();
426426 AgentTool agentTool = AgentTool .create (testAgent );
427427 ToolContext toolContext = createToolContext (testAgent );
428428
@@ -447,7 +447,7 @@ public void call_withStateDeltaInResponse_propagatesStateDelta() throws Exceptio
447447 .build ());
448448 LlmAgent testAgent =
449449 createTestAgentBuilder (testLlm )
450- .name ("agent name " )
450+ .name ("agent_name " )
451451 .description ("agent description" )
452452 .afterAgentCallback (afterAgentCallback )
453453 .build ();
@@ -477,7 +477,7 @@ public void call_withSkipSummarizationAndStateDelta_propagatesStateAndSetsSkipSu
477477 .build ());
478478 LlmAgent testAgent =
479479 createTestAgentBuilder (testLlm )
480- .name ("agent name " )
480+ .name ("agent_name " )
481481 .description ("agent description" )
482482 .afterAgentCallback (afterAgentCallback )
483483 .build ();
0 commit comments