[
https://issues.apache.org/jira/browse/CAMEL-27570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-27570.
---------------------------------
Resolution: Fixed
Fixed by https://github.com/apache/camel/pull/30869, squash-merged into main.
_Claude Code on behalf of davsclaus_
> camel-ibm-watsonx-ai - the tool calling loop drops the conversation,
> oauthProfile sends its token to IAM, forecast drops its parameters, and three
> headers are never read
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-27570
> URL: https://issues.apache.org/jira/browse/CAMEL-27570
> Project: Camel
> Issue Type: Bug
> Components: camel-ai
> Reporter: Federico Mariani
> Assignee: Federico Mariani
> Priority: Major
> Fix For: 4.24.0
>
>
> Found by running the integration tests against watsonx.ai SaaS (eu-de) and
> reviewing the component against the IBM watsonx.ai Java SDK.
> * *Tool calling loop*: {{chat}} never gives the messages it sent, so
> {{processToolCalls}} starts from an empty {{CamelIBMWatsonxAiMessages}}
> header and the next {{chat}} sends only the tool calls and their results,
> without the system message and the question of the body. The documented
> declarative loop and {{WatsonxAiChatWithToolsIT}} do exactly this. {{chat}}
> also leaves a stale {{CamelIBMWatsonxAiToolCalls}} header after an answer
> without tool calls.
> * *oauthProfile*: the endpoint resolves the token once at startup and sets it
> as {{apiKey}}, so the SDK posts it to IBM Cloud IAM as an API key, which IAM
> rejects, and the token is never renewed (see also CAMEL-27125 for the other
> AI components).
> * *forecast / deploymentForecast*: the prediction length and the future data
> of a {{TimeSeriesRequest}} never reach watsonx.ai, and there is no other way
> to set them.
> * *Headers never read*: {{CamelIBMWatsonxAiToolChoice}},
> {{CamelIBMWatsonxAiFoundationModelFilter}} and
> {{CamelIBMWatsonxAiFoundationModelTechPreview}} are in the catalog but no
> operation reads them.
> * *Granite Guardian*: its answer "No" is returned as a detection with a low
> threshold, which sets {{CamelIBMWatsonxAiDetected}} to true for benign text.
> * *Smaller*: {{deploymentInfo}} requires a space although the SDK accepts a
> project; {{CamelIBMWatsonxAiTokens}} is declared as {{List<Integer>}} but is
> {{List<String>}}.
> * *Retired models*: the tool calling and rerank integration tests use
> {{ibm/granite-3-8b-instruct}} and {{cross-encoder/ms-marco-minilm-l-12-v2}},
> which IBM Cloud no longer offers, and the docs use withdrawn models
> (granite-13b, llama-3-8b, slate v1); the tool examples omit the {{wxUrl}}
> they require.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)