File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -919,17 +919,22 @@ The chatbot is implemented using Spring AI's ChatClient with MCP tool integratio
919
919
` ` ` java
920
920
var chatClient = chatClientBuilder
921
921
.defaultSystem("You are useful assistant, expert in AI and Java.")
922
- .defaultTools ((Object[]) mcpToolAdapter.toolCallbacks())
922
+ .defaultToolCallbacks ((Object[]) mcpToolAdapter.toolCallbacks())
923
923
.defaultAdvisors(new MessageChatMemoryAdvisor(new InMemoryChatMemory()))
924
924
.build();
925
925
` ` `
926
926
927
+ <Warning>
928
+ Breaking change : From SpringAI 1.0.0-M8 onwards, use `.defaultToolCallbacks(...)` instead of `.defaultTool(...)` to register MCP tools.
929
+ </Warning>
930
+
927
931
Key features :
928
932
- Uses Claude AI model for natural language understanding
929
933
- Integrates Brave Search through MCP for real-time web search capabilities
930
934
- Maintains conversation memory using InMemoryChatMemory
931
935
- Runs as an interactive command-line application
932
936
937
+
933
938
# ## Build and run
934
939
935
940
` ` ` bash
You can’t perform that action at this time.
0 commit comments