File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-ai-docs/src/main/antora/modules/ROOT/pages/api Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ The `ToolMetadata.Builder` allows you to build a `ToolMetadata` instance and def
316
316
----
317
317
Method method = ReflectionUtils.findMethod(DateTimeTools.class, "getCurrentDateTime");
318
318
ToolCallback toolCallback = MethodToolCallback.builder()
319
- .toolDefinition(ToolDefinition .builder(method)
319
+ .toolDefinition(ToolDefinitions .builder(method)
320
320
.description("Get the current date and time in the user's timezone")
321
321
.build())
322
322
.toolMethod(method)
@@ -349,7 +349,7 @@ class DateTimeTools {
349
349
----
350
350
Method method = ReflectionUtils.findMethod(DateTimeTools.class, "getCurrentDateTime");
351
351
ToolCallback toolCallback = MethodToolCallback.builder()
352
- .toolDefinition(ToolDefinition .builder(method)
352
+ .toolDefinition(ToolDefinitions .builder(method)
353
353
.description("Get the current date and time in the user's timezone")
354
354
.build())
355
355
.toolMethod(method)
@@ -801,7 +801,7 @@ If you'd rather provide some or all of the attributes explicitly, you can use th
801
801
[source,java]
802
802
----
803
803
Method method = ReflectionUtils.findMethod(DateTimeTools.class, "getCurrentDateTime");
804
- ToolDefinition toolDefinition = ToolDefinition .builder(method)
804
+ ToolDefinition toolDefinition = ToolDefinitions .builder(method)
805
805
.name("currentDateTime")
806
806
.description("Get the current date and time in the user's timezone")
807
807
.inputSchema(JsonSchemaGenerator.generateForMethodInput(method))
You can’t perform that action at this time.
0 commit comments