You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Federico Mariani (Jira)" <ji...@apache.org> on 2026/08/05 09:55:00 UTC

[jira] [Commented] (CAMEL-24212) camel-spring - Upgrade to spring-ai 2.0.x

    [ https://issues.apache.org/jira/browse/CAMEL-24212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18102032#comment-18102032 ] 

Federico Mariani commented on CAMEL-24212:
------------------------------------------

PR: https://github.com/apache/camel/pull/25354

Upgrades camel-spring-ai from Spring AI 1.1.7 to 2.0.0. Beyond the mechanical API changes, two things needed real work:

* {{toolNames}} - Spring AI 2.0 removed {{ChatClientRequestSpec.toolNames(String...)}} and {{SpringBeanToolCallbackResolver}}, so the component now resolves the names itself against a ToolCallbackResolver in the registry, the tools from tags/toolCallbacks, and finally a ToolCallback bound under that name.
* Spring AI 2.0 rejects a ToolCallingChatOptions carrying duplicate tool names, so callbacks from all sources are deduplicated by name.

The upgrade also aligns the MCP Java SDK pulled in transitively by camel-spring-ai-chat (was 0.18.2) with the 2.0.0 already managed for camel-mcp-server and camel-openai.

Verified against a local Ollama: 91 chat tests, 7 embeddings, 16 vector store (including the Qdrant testcontainers IT) and the multimodal IT all pass.

_Claude Code on behalf of Federico Mariani_

> camel-spring - Upgrade to spring-ai 2.0.x
> -----------------------------------------
>
>                 Key: CAMEL-24212
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24212
>             Project: Camel
>          Issue Type: Dependency upgrade
>          Components: camel-spring-ai
>            Reporter: Claus Ibsen
>            Assignee: Federico Mariani
>            Priority: Major
>             Fix For: 4.x
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)