Skip to content

Commit 4e25038

Browse files
RobinElysiaspring-builds
authored andcommitted
Update tools.adoc (#3468)
There shouldn't be a method here. Fixes #3468 Signed-off-by: qwp_p <[email protected]> (cherry picked from commit 23c38df)
1 parent eae78b7 commit 4e25038

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(method)
319+
.toolDefinition(ToolDefinitions.builder()
320320
.description("Get the current date and time in the user's timezone")
321321
.build())
322322
.toolMethod(method)

0 commit comments

Comments
 (0)