@@ -46,7 +46,7 @@ public void constructor_NullName() {
4646 MLAgentType .CONVERSATIONAL .name (),
4747 "test" ,
4848 new LLMSpec ("test_model" , Map .of ("test_key" , "test_value" )),
49- List .of (new MLToolSpec ("test" , "test" , "test" , Collections .EMPTY_MAP , false )),
49+ List .of (new MLToolSpec ("test" , "test" , "test" , Collections .emptyMap () , false , Collections . emptyMap () )),
5050 null ,
5151 null ,
5252 Instant .EPOCH ,
@@ -66,7 +66,7 @@ public void constructor_NullType() {
6666 null ,
6767 "test" ,
6868 new LLMSpec ("test_model" , Map .of ("test_key" , "test_value" )),
69- List .of (new MLToolSpec ("test" , "test" , "test" , Collections .EMPTY_MAP , false )),
69+ List .of (new MLToolSpec ("test" , "test" , "test" , Collections .emptyMap () , false , Collections . emptyMap () )),
7070 null ,
7171 null ,
7272 Instant .EPOCH ,
@@ -86,7 +86,7 @@ public void constructor_NullLLMSpec() {
8686 MLAgentType .CONVERSATIONAL .name (),
8787 "test" ,
8888 null ,
89- List .of (new MLToolSpec ("test" , "test" , "test" , Collections .EMPTY_MAP , false )),
89+ List .of (new MLToolSpec ("test" , "test" , "test" , Collections .emptyMap () , false , Collections . emptyMap () )),
9090 null ,
9191 null ,
9292 Instant .EPOCH ,
@@ -100,7 +100,14 @@ public void constructor_NullLLMSpec() {
100100 public void constructor_DuplicateTool () {
101101 exceptionRule .expect (IllegalArgumentException .class );
102102 exceptionRule .expectMessage ("Duplicate tool defined: test_tool_name" );
103- MLToolSpec mlToolSpec = new MLToolSpec ("test_tool_type" , "test_tool_name" , "test" , Collections .EMPTY_MAP , false );
103+ MLToolSpec mlToolSpec = new MLToolSpec (
104+ "test_tool_type" ,
105+ "test_tool_name" ,
106+ "test" ,
107+ Collections .emptyMap (),
108+ false ,
109+ Collections .emptyMap ()
110+ );
104111 MLAgent agent = new MLAgent (
105112 "test_name" ,
106113 MLAgentType .CONVERSATIONAL .name (),
@@ -123,7 +130,7 @@ public void writeTo() throws IOException {
123130 "CONVERSATIONAL" ,
124131 "test" ,
125132 new LLMSpec ("test_model" , Map .of ("test_key" , "test_value" )),
126- List .of (new MLToolSpec ("test" , "test" , "test" , Collections .EMPTY_MAP , false )),
133+ List .of (new MLToolSpec ("test" , "test" , "test" , Collections .emptyMap () , false , Collections . emptyMap () )),
127134 Map .of ("test" , "test" ),
128135 new MLMemorySpec ("test" , "123" , 0 ),
129136 Instant .EPOCH ,
@@ -150,7 +157,7 @@ public void writeTo_NullLLM() throws IOException {
150157 "FLOW" ,
151158 "test" ,
152159 null ,
153- List .of (new MLToolSpec ("test" , "test" , "test" , Collections .EMPTY_MAP , false )),
160+ List .of (new MLToolSpec ("test" , "test" , "test" , Collections .emptyMap () , false , Collections . emptyMap () )),
154161 Map .of ("test" , "test" ),
155162 new MLMemorySpec ("test" , "123" , 0 ),
156163 Instant .EPOCH ,
@@ -194,7 +201,7 @@ public void writeTo_NullParameters() throws IOException {
194201 MLAgentType .CONVERSATIONAL .name (),
195202 "test" ,
196203 new LLMSpec ("test_model" , Map .of ("test_key" , "test_value" )),
197- List .of (new MLToolSpec ("test" , "test" , "test" , Collections .EMPTY_MAP , false )),
204+ List .of (new MLToolSpec ("test" , "test" , "test" , Collections .emptyMap () , false , Collections . emptyMap () )),
198205 null ,
199206 new MLMemorySpec ("test" , "123" , 0 ),
200207 Instant .EPOCH ,
@@ -216,7 +223,7 @@ public void writeTo_NullMemory() throws IOException {
216223 "CONVERSATIONAL" ,
217224 "test" ,
218225 new LLMSpec ("test_model" , Map .of ("test_key" , "test_value" )),
219- List .of (new MLToolSpec ("test" , "test" , "test" , Collections .EMPTY_MAP , false )),
226+ List .of (new MLToolSpec ("test" , "test" , "test" , Collections .emptyMap () , false , Collections . emptyMap () )),
220227 Map .of ("test" , "test" ),
221228 null ,
222229 Instant .EPOCH ,
@@ -238,7 +245,7 @@ public void toXContent() throws IOException {
238245 "CONVERSATIONAL" ,
239246 "test" ,
240247 new LLMSpec ("test_model" , Map .of ("test_key" , "test_value" )),
241- List .of (new MLToolSpec ("test" , "test" , "test" , Map .of ("test" , "test" ), false )),
248+ List .of (new MLToolSpec ("test" , "test" , "test" , Map .of ("test" , "test" ), false , Collections . emptyMap () )),
242249 Map .of ("test" , "test" ),
243250 new MLMemorySpec ("test" , "123" , 0 ),
244251 Instant .EPOCH ,
@@ -294,7 +301,7 @@ public void fromStream() throws IOException {
294301 MLAgentType .CONVERSATIONAL .name (),
295302 "test" ,
296303 new LLMSpec ("test_model" , Map .of ("test_key" , "test_value" )),
297- List .of (new MLToolSpec ("test" , "test" , "test" , Collections .EMPTY_MAP , false )),
304+ List .of (new MLToolSpec ("test" , "test" , "test" , Collections .emptyMap () , false , Collections . emptyMap () )),
298305 Map .of ("test" , "test" ),
299306 new MLMemorySpec ("test" , "123" , 0 ),
300307 Instant .EPOCH ,
0 commit comments