Skip to content

Conversation

@SexyProgrammer
Copy link
Contributor

📄 Documentation Bug

Problem:
In the current documentation or code samples, ToolDefinition.builder(method) is used to build a ToolDefinition from a Method. However, ToolDefinition does not have such a static builder method that accepts a Method — this causes confusion and runtime errors.

Correct Usage:
It should be ToolDefinitions.builder(method) (note the plural form), as defined in the Spring AI tooling API.

Suggested Fix:
Update all references of ToolDefinition.builder(method) to ToolDefinitions.builder(method) in documentation or samples.

Version: Spring AI 1.0.0
Thanks for your awesome work!
I may be wrong here, and if this was intentional, feel free to close the PR.
Just wanted to help improve the docs and avoid confusion for others. Thanks again!

@ilayaperumalg
Copy link
Member

Thanks for the PR!

@ilayaperumalg ilayaperumalg self-assigned this Jun 4, 2025
@ilayaperumalg ilayaperumalg added documentation Improvements or additions to documentation for: backport-to-1.0.x labels Jun 4, 2025
@ilayaperumalg ilayaperumalg added this to the 1.1.x milestone Jun 4, 2025
@ilayaperumalg ilayaperumalg merged commit 8af1d39 into spring-projects:main Jun 4, 2025
2 checks passed
spring-builds pushed a commit that referenced this pull request Jun 4, 2025
Signed-off-by: SexyProgrammer <[email protected]>
(cherry picked from commit 8af1d39)
namsoo2 pushed a commit to namsoo2/spring-ai that referenced this pull request Jun 9, 2025
…3431)

Auto-cherry-pick to 1.0.x

Signed-off-by: SexyProgrammer <[email protected]>
Signed-off-by: minsoo.nam <[email protected]>
chedim pushed a commit to couchbaselabs/spring-ai that referenced this pull request Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation for: backport-to-1.0.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants