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

Otavio Rodolfo Piske commented on CAMEL-21355:
----------------------------------------------

Bruno and I had a great discussion today and as a result, I modified the code 
so that it sets a flag on the header (see the linked PR) to indicate to users 
if a tool has not been called. This satisfies both my intention to let users 
have a way to handle this scenario, while also providing a clean way to ignore 
it for users that don't have that need. The code was merged on 4.9 and I'll 
backport to 4.8.x next week (so, please, keep the ticket open).

> LangChain4j Tools fails with direct LLM response
> ------------------------------------------------
>
>                 Key: CAMEL-21355
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21355
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-langchain4j-tools
>    Affects Versions: 4.8.0
>            Reporter: Bruno Meseguer
>            Assignee: Otavio Rodolfo Piske
>            Priority: Major
>             Fix For: 4.8.2, 4.9.0
>
>
> The Tools component is designed to provide functions to the LLM. However the 
> LLM may decide not to invoke any of the given tools.
> In that scenario, the LLM replies directly instead of requesting the 
> execution of a tool/function. The Camel Tools components seems unable to 
> handle such use case and throws an exception.



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

Reply via email to