[ 
https://issues.apache.org/jira/browse/CAMEL-23074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Federico Mariani updated CAMEL-23074:
-------------------------------------
    Description: 
at the moment it is not possible to define required tools, enums and 
description in camel-langchain4j-tools. Provide a similar behaviour like the 
camel-spring-ai one.

For example:
{code:java}
      from("langchain4j-tools:weather?tags=weather&description=Get weather 
forecast"
        + "&parameter.location=string"
        + "&parameter.location.description=The city and state"
        + "&parameter.location.required=true"
        + "&parameter.unit=string"
        + "&parameter.unit.description=Temperature unit" 
        + "&parameter.unit.enum=C,F"
        + "&parameter.unit.required=false"){code}

  was:
at the moment it is not possible to define required tools, enums and 
description in camel-langchain4j-tools. Provide a similar behaviour like the 
camel-spring-ai one.

For example:
{code:java}
      from("langchain4j-tools:weather?tags=weather&description=Get weather 
forecast"
        + "&parameter.location=string"
        + "&parameter.location.description=The city and state"
        + "&parameter.location.required=true"
        + "&parameter.unit=string"
        + "&parameter.unit.description=Temperature unit (C or F)"
        + "&parameter.unit.required=false"){code}


> camel-langchain4j-tools - Handle required Tool parameters, enums and 
> description
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-23074
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23074
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-langchain4j-tools
>    Affects Versions: 4.18.0
>            Reporter: Federico Mariani
>            Assignee: Federico Mariani
>            Priority: Minor
>             Fix For: 4.19.0
>
>
> at the moment it is not possible to define required tools, enums and 
> description in camel-langchain4j-tools. Provide a similar behaviour like the 
> camel-spring-ai one.
> For example:
> {code:java}
>       from("langchain4j-tools:weather?tags=weather&description=Get weather 
> forecast"
>         + "&parameter.location=string"
>         + "&parameter.location.description=The city and state"
>         + "&parameter.location.required=true"
>         + "&parameter.unit=string"
>         + "&parameter.unit.description=Temperature unit" 
>         + "&parameter.unit.enum=C,F"
>         + "&parameter.unit.required=false"){code}



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

Reply via email to