Repository navigation
Conversation
- Deprecate ChatClientRequestSpec.tools(Object...) and Builder.defaultTools(Object...) in favour of the Consumer<ToolSpec> form: tools(t -> t.instances(...)) - Add assertNoToolCallbackInstances() guard in DefaultChatClient that throws IllegalArgumentException early when a ToolCallback, ToolCallbackProvider, or a Collection/array containing them is passed to tools(Object...) or ToolSpec.instances(), replacing a confusing delayed failure deep in MethodToolCallbackProvider - Change MethodToolCallbackProvider.assertToolAnnotatedMethodsPresent() to throw IllegalArgumentException (was IllegalStateException) and include the fully qualified class name in the message - Add seven unit tests in DefaultChatClientTests covering the new guard - Update MethodToolCallbackProviderTests to match the new exception type and message - Migrate all deprecated tools(Object...) call sites in integration and model tests to tools(t -> t.instances(...)) - Update reference documentation (tools.adoc, chatclient.adoc, upgrade-notes.adoc, tools-migration.adoc, bedrock-converse.adoc, google-genai-chat.adoc, llm-as-judge.adoc) to use the non-deprecated form and document all breaking changes under the 2.0.0-RC1 upgrade notes - Add Javadoc to all ChatClient.ToolSpec methods Related to spring-projects#6206 Signed-off-by: Christian Tzolov <[email protected]>
sdeleuze
approved these changes
Jun 3, 2026
ilayaperumalg
approved these changes
Jun 3, 2026
Contributor
Author
|
we've decided to explore a different more flexible approach. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #6206