Federico Mariani created CAMEL-22851:
----------------------------------------
Summary: camel-langchain4j-tools - Implement native
tool-search-tool
Key: CAMEL-22851
URL: https://issues.apache.org/jira/browse/CAMEL-22851
Project: Camel
Issue Type: New Feature
Reporter: Federico Mariani
Add the possibility to search for tools, we may add a property to the
camel-langchain4j-tools endpoint that won't automatically expose the tool to
the LLM with each request, but the tool is added to a list of searchable tools.
Then, we need to automatically expose a Tool Search Tool that the LLM can
invoke to retrieve the list of tools.
Tool Search Tool allows LLMs to use search tools to access thousands of tools
without consuming its context window.
example:
_from("langchain4j-tools:userInfo?tags=users&description=Query database by user
ID&exposed=false")_
exposed (the property is just a proposal, naming things is hard...), which is
true by default, when set to false, the tool is not added to the LLM, and
behind the hood a new default tool tool-search-tool is added that, when invoked
will expose the userInfo tool
--
This message was sent by Atlassian Jira
(v8.20.10#820010)