Skip to content

Commit 42eab95

Browse files
ilayaperumalgspring-builds
authored andcommitted
Revert "Update tools.adoc (#3468)"
This reverts commit 23c38df. (cherry picked from commit 5036ed3)
1 parent 4e25038 commit 42eab95

File tree

1 file changed

+1
-1
lines changed
  • spring-ai-docs/src/main/antora/modules/ROOT/pages/api

1 file changed

+1
-1
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/tools.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ The `ToolMetadata.Builder` allows you to build a `ToolMetadata` instance and def
316316
----
317317
Method method = ReflectionUtils.findMethod(DateTimeTools.class, "getCurrentDateTime");
318318
ToolCallback toolCallback = MethodToolCallback.builder()
319-
.toolDefinition(ToolDefinitions.builder()
319+
.toolDefinition(ToolDefinitions.builder(method)
320320
.description("Get the current date and time in the user's timezone")
321321
.build())
322322
.toolMethod(method)

0 commit comments

Comments
 (0)