@@ -104,17 +104,17 @@ public void testA2AClientSendMessage() throws Exception {
104104 );
105105
106106 JSONRPCTransport client = new JSONRPCTransport ("http://localhost:4001" );
107- Message message = new Message .Builder ()
107+ Message message = Message .builder ()
108108 .role (Message .Role .USER )
109109 .parts (Collections .singletonList (new TextPart ("tell me a joke" )))
110110 .contextId ("context-1234" )
111111 .messageId ("message-1234" )
112112 .build ();
113- MessageSendConfiguration configuration = new MessageSendConfiguration .Builder ()
113+ MessageSendConfiguration configuration = MessageSendConfiguration .builder ()
114114 .acceptedOutputModes (List .of ("text" ))
115115 .blocking (true )
116116 .build ();
117- MessageSendParams params = new MessageSendParams .Builder ()
117+ MessageSendParams params = MessageSendParams .builder ()
118118 .message (message )
119119 .configuration (configuration )
120120 .build ();
@@ -152,17 +152,17 @@ public void testA2AClientSendMessageWithMessageResponse() throws Exception {
152152 );
153153
154154 JSONRPCTransport client = new JSONRPCTransport ("http://localhost:4001" );
155- Message message = new Message .Builder ()
155+ Message message = Message .builder ()
156156 .role (Message .Role .USER )
157157 .parts (Collections .singletonList (new TextPart ("tell me a joke" )))
158158 .contextId ("context-1234" )
159159 .messageId ("message-1234" )
160160 .build ();
161- MessageSendConfiguration configuration = new MessageSendConfiguration .Builder ()
161+ MessageSendConfiguration configuration = MessageSendConfiguration .builder ()
162162 .acceptedOutputModes (List .of ("text" ))
163163 .blocking (true )
164164 .build ();
165- MessageSendParams params = new MessageSendParams .Builder ()
165+ MessageSendParams params = MessageSendParams .builder ()
166166 .message (message )
167167 .configuration (configuration )
168168 .build ();
@@ -194,17 +194,17 @@ public void testA2AClientSendMessageWithError() throws Exception {
194194 );
195195
196196 JSONRPCTransport client = new JSONRPCTransport ("http://localhost:4001" );
197- Message message = new Message .Builder ()
197+ Message message = Message .builder ()
198198 .role (Message .Role .USER )
199199 .parts (Collections .singletonList (new TextPart ("tell me a joke" )))
200200 .contextId ("context-1234" )
201201 .messageId ("message-1234" )
202202 .build ();
203- MessageSendConfiguration configuration = new MessageSendConfiguration .Builder ()
203+ MessageSendConfiguration configuration = MessageSendConfiguration .builder ()
204204 .acceptedOutputModes (List .of ("text" ))
205205 .blocking (true )
206206 .build ();
207- MessageSendParams params = new MessageSendParams .Builder ()
207+ MessageSendParams params = MessageSendParams .builder ()
208208 .message (message )
209209 .configuration (configuration )
210210 .build ();
@@ -339,10 +339,10 @@ public void testA2AClientSetTaskPushNotificationConfig() throws Exception {
339339 JSONRPCTransport client = new JSONRPCTransport ("http://localhost:4001" );
340340 TaskPushNotificationConfig taskPushNotificationConfig = client .setTaskPushNotificationConfiguration (
341341 new TaskPushNotificationConfig ("de38c76d-d54c-436c-8b9f-4c2703648d64" ,
342- new PushNotificationConfig .Builder ()
342+ PushNotificationConfig .builder ()
343343 .id ("c295ea44-7543-4f78-b524-7a38915ad6e4" )
344344 .url ("https://example.com/callback" )
345- .authenticationInfo (new AuthenticationInfo (Collections .singletonList ("jwt" ),
345+ .authentication (new AuthenticationInfo (Collections .singletonList ("jwt" ),
346346 null ))
347347 .build ()), null );
348348 PushNotificationConfig pushNotificationConfig = taskPushNotificationConfig .pushNotificationConfig ();
@@ -532,7 +532,7 @@ public void testA2AClientSendMessageWithFilePart() throws Exception {
532532 );
533533
534534 JSONRPCTransport client = new JSONRPCTransport ("http://localhost:4001" );
535- Message message = new Message .Builder ()
535+ Message message = Message .builder ()
536536 .role (Message .Role .USER )
537537 .parts (List .of (
538538 new TextPart ("analyze this image" ),
@@ -541,11 +541,11 @@ public void testA2AClientSendMessageWithFilePart() throws Exception {
541541 .contextId ("context-1234" )
542542 .messageId ("message-1234-with-file" )
543543 .build ();
544- MessageSendConfiguration configuration = new MessageSendConfiguration .Builder ()
544+ MessageSendConfiguration configuration = MessageSendConfiguration .builder ()
545545 .acceptedOutputModes (List .of ("text" ))
546546 .blocking (true )
547547 .build ();
548- MessageSendParams params = new MessageSendParams .Builder ()
548+ MessageSendParams params = MessageSendParams .builder ()
549549 .message (message )
550550 .configuration (configuration )
551551 .build ();
@@ -592,7 +592,7 @@ public void testA2AClientSendMessageWithDataPart() throws Exception {
592592 data .put ("location" , "San Francisco" );
593593 data .put ("timestamp" , "2024-01-15T10:30:00Z" );
594594
595- Message message = new Message .Builder ()
595+ Message message = Message .builder ()
596596 .role (Message .Role .USER )
597597 .parts (List .of (
598598 new TextPart ("process this data" ),
@@ -601,11 +601,11 @@ public void testA2AClientSendMessageWithDataPart() throws Exception {
601601 .contextId ("context-1234" )
602602 .messageId ("message-1234-with-data" )
603603 .build ();
604- MessageSendConfiguration configuration = new MessageSendConfiguration .Builder ()
604+ MessageSendConfiguration configuration = MessageSendConfiguration .builder ()
605605 .acceptedOutputModes (List .of ("text" ))
606606 .blocking (true )
607607 .build ();
608- MessageSendParams params = new MessageSendParams .Builder ()
608+ MessageSendParams params = MessageSendParams .builder ()
609609 .message (message )
610610 .configuration (configuration )
611611 .build ();
@@ -649,7 +649,7 @@ public void testA2AClientSendMessageWithMixedParts() throws Exception {
649649 data .put ("dataPoints" , List .of (10 , 20 , 30 , 40 ));
650650 data .put ("labels" , List .of ("Q1" , "Q2" , "Q3" , "Q4" ));
651651
652- Message message = new Message .Builder ()
652+ Message message = Message .builder ()
653653 .role (Message .Role .USER )
654654 .parts (List .of (
655655 new TextPart ("analyze this data and image" ),
@@ -659,11 +659,11 @@ public void testA2AClientSendMessageWithMixedParts() throws Exception {
659659 .contextId ("context-1234" )
660660 .messageId ("message-1234-with-mixed" )
661661 .build ();
662- MessageSendConfiguration configuration = new MessageSendConfiguration .Builder ()
662+ MessageSendConfiguration configuration = MessageSendConfiguration .builder ()
663663 .acceptedOutputModes (List .of ("text" ))
664664 .blocking (true )
665665 .build ();
666- MessageSendParams params = new MessageSendParams .Builder ()
666+ MessageSendParams params = MessageSendParams .builder ()
667667 .message (message )
668668 .configuration (configuration )
669669 .build ();
0 commit comments