@@ -28,7 +28,7 @@ private io.modelcontextprotocol.spec.McpSchema.Tool schemaOffToolSpec(com.github
2828 schema.put("properties", props);
2929 var req = new java.util.ArrayList<String>();
3030 schema.put("required", req);
31- return new io.modelcontextprotocol.spec.McpSchema.Tool("schemaOff", null, null, this.json.convertValue(schema, io.modelcontextprotocol.spec.McpSchema.JsonSchema. class), null, null, null);
31+ return io.modelcontextprotocol.spec.McpSchema.Tool.builder ("schemaOff", this.json.convertValue(schema, java.util.Map. class)).title( null).description( null).outputSchema( null).annotations(null).build( );
3232 }
3333 """ );
3434 });
@@ -56,7 +56,7 @@ private io.modelcontextprotocol.spec.McpSchema.Tool schemaMapToolSpec(com.github
5656 schemaMapOutputSchemaWrapped.put("type", "object");
5757 schemaMapOutputSchemaWrapped.put("additionalProperties", schemaMapOutputSchemaMap);
5858 schemaMapOutputSchema = schemaMapOutputSchemaWrapped;
59- return new io.modelcontextprotocol.spec.McpSchema.Tool("schemaMap", null, null, this.json.convertValue(schema, io.modelcontextprotocol.spec.McpSchema.JsonSchema.class), schemaMapOutputSchema, null, null );
59+ return io.modelcontextprotocol.spec.McpSchema.Tool.builder ("schemaMap", this.json.convertValue(schema, java.util.Map.class)).title(null).description(null).outputSchema( schemaMapOutputSchema).annotations( null).build( );
6060 }
6161 """ );
6262 });
@@ -84,7 +84,7 @@ private io.modelcontextprotocol.spec.McpSchema.Tool schemaListToolSpec(com.githu
8484 schemaListOutputSchemaWrapped.put("type", "array");
8585 schemaListOutputSchemaWrapped.put("items", schemaListOutputSchemaMap);
8686 schemaListOutputSchema = schemaListOutputSchemaWrapped;
87- return new io.modelcontextprotocol.spec.McpSchema.Tool("schemaList", null, null, this.json.convertValue(schema, io.modelcontextprotocol.spec.McpSchema.JsonSchema.class), schemaListOutputSchema, null, null );
87+ return io.modelcontextprotocol.spec.McpSchema.Tool.builder ("schemaList", this.json.convertValue(schema, java.util.Map.class)).title(null).description(null).outputSchema( schemaListOutputSchema).annotations( null).build( );
8888 }
8989 """ );
9090 });
@@ -109,7 +109,7 @@ private io.modelcontextprotocol.spec.McpSchema.Tool explicitSchemaToolSpec(com.g
109109 var explicitSchemaOutputSchemaNode = schemaGenerator.generateSchema(tests.i3830.Pet.class);
110110 var explicitSchemaOutputSchemaMap = this.json.convertValue(explicitSchemaOutputSchemaNode, java.util.Map.class);
111111 explicitSchemaOutputSchema = explicitSchemaOutputSchemaMap;
112- return new io.modelcontextprotocol.spec.McpSchema.Tool("explicitSchema", null, null, this.json.convertValue(schema, io.modelcontextprotocol.spec.McpSchema.JsonSchema.class), explicitSchemaOutputSchema, null, null );
112+ return io.modelcontextprotocol.spec.McpSchema.Tool.builder ("explicitSchema", this.json.convertValue(schema, java.util.Map.class)).title(null).description(null).outputSchema( explicitSchemaOutputSchema).annotations( null).build( );
113113 }
114114 """ );
115115 });
@@ -136,7 +136,7 @@ private io.modelcontextprotocol.spec.McpSchema.Tool defaultSchemaToolSpec(com.gi
136136 var defaultSchemaOutputSchemaMap = this.json.convertValue(defaultSchemaOutputSchemaNode, java.util.Map.class);
137137 defaultSchemaOutputSchema = defaultSchemaOutputSchemaMap;
138138 }
139- return new io.modelcontextprotocol.spec.McpSchema.Tool("defaultSchema", null, null, this.json.convertValue(schema, io.modelcontextprotocol.spec.McpSchema.JsonSchema.class), defaultSchemaOutputSchema, null, null );
139+ return io.modelcontextprotocol.spec.McpSchema.Tool.builder ("defaultSchema", this.json.convertValue(schema, java.util.Map.class)).title(null).description(null).outputSchema( defaultSchemaOutputSchema).annotations( null).build( );
140140 }
141141 """ );
142142 });
0 commit comments