You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2024/09/03 11:01:12 UTC

(camel) branch main updated: CAMEL-21153: rework the function calling features

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new bed307e84b5 CAMEL-21153: rework the function calling features
bed307e84b5 is described below

commit bed307e84b5280af118f54989f712fc7bdfd201b
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Aug 28 10:06:06 2024 +0200

    CAMEL-21153: rework the function calling features
    
    Create a new component specific for function calling, based on the same functionality already present on the camel-langchain4j-chat component.
---
 bom/camel-bom/pom.xml                              |   5 +
 catalog/camel-allcomponents/pom.xml                |   5 +
 .../camel-ai/camel-langchain4j-tools/pom.xml       | 104 +++++++++++
 .../tools/LangChain4jToolsComponentConfigurer.java |  84 +++++++++
 .../LangChain4jToolsConfigurationConfigurer.java   |  51 ++++++
 .../tools/LangChain4jToolsEndpointConfigurer.java  | 103 +++++++++++
 .../tools/LangChain4jToolsEndpointUriFactory.java  |  81 ++++++++
 .../langchain4j/tools/langchain4j-tools.json       |  44 +++++
 .../services/org/apache/camel/component.properties |   7 +
 .../org/apache/camel/component/langchain4j-tools   |   2 +
 .../camel/configurer/langchain4j-tools-component   |   2 +
 .../camel/configurer/langchain4j-tools-endpoint    |   2 +
 ...langchain4j.tools.LangChain4jToolsConfiguration |   2 +
 .../camel/urifactory/langchain4j-tools-endpoint    |   2 +
 .../src/main/docs/langchain4j-tools-component.adoc | 187 +++++++++++++++++++
 .../langchain4j/tools/LangChain4jTools.java        |  35 ++++
 .../tools/LangChain4jToolsComponent.java           |  85 +++++++++
 .../tools/LangChain4jToolsConfiguration.java       |  57 ++++++
 .../tools/LangChain4jToolsConsumer.java            |  28 +++
 .../tools/LangChain4jToolsEndpoint.java            | 201 ++++++++++++++++++++
 .../tools/LangChain4jToolsProducer.java            | 204 +++++++++++++++++++++
 .../component/langchain4j/tools/TagsHelper.java    |  33 ++++
 .../tools/spec/CamelSimpleToolParameter.java       |  42 +++++
 .../tools/spec/CamelToolExecutorCache.java         |  57 ++++++
 .../tools/spec/CamelToolSpecification.java         |  79 ++++++++
 .../tools/spec/NamedJsonSchemaProperty.java        |  40 ++++
 .../langchain4j/tools/LangChain4jToolIT.java       | 118 ++++++++++++
 .../tools/LangChain4jToolMultipleGroupsIT.java     | 124 +++++++++++++
 .../LangChain4jToolMultipleMatchingGroupsIT.java   | 125 +++++++++++++
 .../src/test/resources/log4j2.properties           |  35 ++++
 components/camel-ai/pom.xml                        |   1 +
 .../ROOT/examples/json/langchain4j-tools.json      |   1 +
 docs/components/modules/ROOT/nav.adoc              |   1 +
 .../ROOT/pages/langchain4j-tools-component.adoc    |   1 +
 parent/pom.xml                                     |   5 +
 35 files changed, 1953 insertions(+)

diff --git a/bom/camel-bom/pom.xml b/bom/camel-bom/pom.xml
index 364b515a8ab..d7e9e6d7702 100644
--- a/bom/camel-bom/pom.xml
+++ b/bom/camel-bom/pom.xml
@@ -1332,6 +1332,11 @@
         <artifactId>camel-langchain4j-tokenizer</artifactId>
         <version>4.8.0-SNAPSHOT</version>
       </dependency>
+      <dependency>
+        <groupId>org.apache.camel</groupId>
+        <artifactId>camel-langchain4j-tools</artifactId>
+        <version>4.8.0-SNAPSHOT</version>
+      </dependency>
       <dependency>
         <groupId>org.apache.camel</groupId>
         <artifactId>camel-langchain4j-web-search</artifactId>
diff --git a/catalog/camel-allcomponents/pom.xml b/catalog/camel-allcomponents/pom.xml
index b86ebc70de2..d3cf1113e49 100644
--- a/catalog/camel-allcomponents/pom.xml
+++ b/catalog/camel-allcomponents/pom.xml
@@ -1131,6 +1131,11 @@
             <artifactId>camel-langchain4j-tokenizer</artifactId>
             <version>${project.version}</version>
         </dependency>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-langchain4j-tools</artifactId>
+            <version>${project.version}</version>
+        </dependency>
         <dependency>
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-langchain4j-web-search</artifactId>
diff --git a/components/camel-ai/camel-langchain4j-tools/pom.xml b/components/camel-ai/camel-langchain4j-tools/pom.xml
new file mode 100644
index 00000000000..f7d4042b0bc
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/pom.xml
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.camel</groupId>
+        <artifactId>camel-ai-parent</artifactId>
+        <version>4.8.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>camel-langchain4j-tools</artifactId>
+    <packaging>jar</packaging>
+    <name>Camel :: AI :: LangChain4j :: Tools</name>
+    <description>LangChain4j Tools and Function Calling Features</description>
+
+    <properties>
+        <firstVersion>4.8.0</firstVersion>
+        <label>ai</label>
+        <title>LangChain4j Tools</title>
+        <supportLevel>Experimental</supportLevel>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-support</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>dev.langchain4j</groupId>
+            <artifactId>langchain4j</artifactId>
+            <version>${langchain4j-version}</version>
+        </dependency>
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-databind</artifactId>
+            <version>${jackson2-version}</version>
+        </dependency>
+        <!-- test -->
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-test-junit5</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+        <!-- for testing -->
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-test-spring-junit5</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>dev.langchain4j</groupId>
+            <artifactId>langchain4j-ollama</artifactId>
+            <version>${langchain4j-version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-test-infra-ollama</artifactId>
+            <version>${project.version}</version>
+            <type>test-jar</type>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>dev.langchain4j</groupId>
+            <artifactId>langchain4j-open-ai</artifactId>
+            <version>${langchain4j-version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.assertj</groupId>
+            <artifactId>assertj-core</artifactId>
+            <version>${assertj-version}</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+</project>
\ No newline at end of file
diff --git a/components/camel-ai/camel-langchain4j-tools/src/generated/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsComponentConfigurer.java b/components/camel-ai/camel-langchain4j-tools/src/generated/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsComponentConfigurer.java
new file mode 100644
index 00000000000..c2329a2fdd8
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/generated/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsComponentConfigurer.java
@@ -0,0 +1,84 @@
+/* Generated by camel build tools - do NOT edit this file! */
+package org.apache.camel.component.langchain4j.tools;
+
+import javax.annotation.processing.Generated;
+import java.util.Map;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
+import org.apache.camel.spi.PropertyConfigurerGetter;
+import org.apache.camel.spi.ConfigurerStrategy;
+import org.apache.camel.spi.GeneratedPropertyConfigurer;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.support.component.PropertyConfigurerSupport;
+
+/**
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
+@SuppressWarnings("unchecked")
+public class LangChain4jToolsComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
+
+    private org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfiguration getOrCreateConfiguration(LangChain4jToolsComponent target) {
+        if (target.getConfiguration() == null) {
+            target.setConfiguration(new org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfiguration());
+        }
+        return target.getConfiguration();
+    }
+
+    @Override
+    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+        LangChain4jToolsComponent target = (LangChain4jToolsComponent) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "autowiredenabled":
+        case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
+        case "bridgeerrorhandler":
+        case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
+        case "chatmodel":
+        case "chatModel": getOrCreateConfiguration(target).setChatModel(property(camelContext, dev.langchain4j.model.chat.ChatLanguageModel.class, value)); return true;
+        case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfiguration.class, value)); return true;
+        case "lazystartproducer":
+        case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
+        default: return false;
+        }
+    }
+
+    @Override
+    public String[] getAutowiredNames() {
+        return new String[]{"chatModel"};
+    }
+
+    @Override
+    public Class<?> getOptionType(String name, boolean ignoreCase) {
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "autowiredenabled":
+        case "autowiredEnabled": return boolean.class;
+        case "bridgeerrorhandler":
+        case "bridgeErrorHandler": return boolean.class;
+        case "chatmodel":
+        case "chatModel": return dev.langchain4j.model.chat.ChatLanguageModel.class;
+        case "configuration": return org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfiguration.class;
+        case "lazystartproducer":
+        case "lazyStartProducer": return boolean.class;
+        default: return null;
+        }
+    }
+
+    @Override
+    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+        LangChain4jToolsComponent target = (LangChain4jToolsComponent) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "autowiredenabled":
+        case "autowiredEnabled": return target.isAutowiredEnabled();
+        case "bridgeerrorhandler":
+        case "bridgeErrorHandler": return target.isBridgeErrorHandler();
+        case "chatmodel":
+        case "chatModel": return getOrCreateConfiguration(target).getChatModel();
+        case "configuration": return target.getConfiguration();
+        case "lazystartproducer":
+        case "lazyStartProducer": return target.isLazyStartProducer();
+        default: return null;
+        }
+    }
+}
+
diff --git a/components/camel-ai/camel-langchain4j-tools/src/generated/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsConfigurationConfigurer.java b/components/camel-ai/camel-langchain4j-tools/src/generated/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsConfigurationConfigurer.java
new file mode 100644
index 00000000000..3fe5fae0cf7
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/generated/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsConfigurationConfigurer.java
@@ -0,0 +1,51 @@
+/* Generated by camel build tools - do NOT edit this file! */
+package org.apache.camel.component.langchain4j.tools;
+
+import javax.annotation.processing.Generated;
+import java.util.Map;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
+import org.apache.camel.spi.PropertyConfigurerGetter;
+import org.apache.camel.spi.ConfigurerStrategy;
+import org.apache.camel.spi.GeneratedPropertyConfigurer;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfiguration;
+
+/**
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.GenerateConfigurerMojo")
+@SuppressWarnings("unchecked")
+public class LangChain4jToolsConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
+
+    @Override
+    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+        org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfiguration target = (org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfiguration) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "chatmodel":
+        case "chatModel": target.setChatModel(property(camelContext, dev.langchain4j.model.chat.ChatLanguageModel.class, value)); return true;
+        default: return false;
+        }
+    }
+
+    @Override
+    public Class<?> getOptionType(String name, boolean ignoreCase) {
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "chatmodel":
+        case "chatModel": return dev.langchain4j.model.chat.ChatLanguageModel.class;
+        default: return null;
+        }
+    }
+
+    @Override
+    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+        org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfiguration target = (org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfiguration) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "chatmodel":
+        case "chatModel": return target.getChatModel();
+        default: return null;
+        }
+    }
+}
+
diff --git a/components/camel-ai/camel-langchain4j-tools/src/generated/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsEndpointConfigurer.java b/components/camel-ai/camel-langchain4j-tools/src/generated/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsEndpointConfigurer.java
new file mode 100644
index 00000000000..cc6582f51f2
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/generated/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsEndpointConfigurer.java
@@ -0,0 +1,103 @@
+/* Generated by camel build tools - do NOT edit this file! */
+package org.apache.camel.component.langchain4j.tools;
+
+import javax.annotation.processing.Generated;
+import java.util.Map;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
+import org.apache.camel.spi.PropertyConfigurerGetter;
+import org.apache.camel.spi.ConfigurerStrategy;
+import org.apache.camel.spi.GeneratedPropertyConfigurer;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.support.component.PropertyConfigurerSupport;
+
+/**
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
+@SuppressWarnings("unchecked")
+public class LangChain4jToolsEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
+
+    @Override
+    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+        LangChain4jToolsEndpoint target = (LangChain4jToolsEndpoint) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "bridgeerrorhandler":
+        case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
+        case "cameltoolparameter":
+        case "camelToolParameter": target.setCamelToolParameter(property(camelContext, org.apache.camel.component.langchain4j.tools.spec.CamelSimpleToolParameter.class, value)); return true;
+        case "chatmodel":
+        case "chatModel": target.getConfiguration().setChatModel(property(camelContext, dev.langchain4j.model.chat.ChatLanguageModel.class, value)); return true;
+        case "description": target.setDescription(property(camelContext, java.lang.String.class, value)); return true;
+        case "exceptionhandler":
+        case "exceptionHandler": target.setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
+        case "exchangepattern":
+        case "exchangePattern": target.setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
+        case "lazystartproducer":
+        case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
+        case "parameters": target.setParameters(property(camelContext, java.util.Map.class, value)); return true;
+        case "tags": target.setTags(property(camelContext, java.lang.String.class, value)); return true;
+        default: return false;
+        }
+    }
+
+    @Override
+    public String[] getAutowiredNames() {
+        return new String[]{"chatModel"};
+    }
+
+    @Override
+    public Class<?> getOptionType(String name, boolean ignoreCase) {
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "bridgeerrorhandler":
+        case "bridgeErrorHandler": return boolean.class;
+        case "cameltoolparameter":
+        case "camelToolParameter": return org.apache.camel.component.langchain4j.tools.spec.CamelSimpleToolParameter.class;
+        case "chatmodel":
+        case "chatModel": return dev.langchain4j.model.chat.ChatLanguageModel.class;
+        case "description": return java.lang.String.class;
+        case "exceptionhandler":
+        case "exceptionHandler": return org.apache.camel.spi.ExceptionHandler.class;
+        case "exchangepattern":
+        case "exchangePattern": return org.apache.camel.ExchangePattern.class;
+        case "lazystartproducer":
+        case "lazyStartProducer": return boolean.class;
+        case "parameters": return java.util.Map.class;
+        case "tags": return java.lang.String.class;
+        default: return null;
+        }
+    }
+
+    @Override
+    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+        LangChain4jToolsEndpoint target = (LangChain4jToolsEndpoint) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "bridgeerrorhandler":
+        case "bridgeErrorHandler": return target.isBridgeErrorHandler();
+        case "cameltoolparameter":
+        case "camelToolParameter": return target.getCamelToolParameter();
+        case "chatmodel":
+        case "chatModel": return target.getConfiguration().getChatModel();
+        case "description": return target.getDescription();
+        case "exceptionhandler":
+        case "exceptionHandler": return target.getExceptionHandler();
+        case "exchangepattern":
+        case "exchangePattern": return target.getExchangePattern();
+        case "lazystartproducer":
+        case "lazyStartProducer": return target.isLazyStartProducer();
+        case "parameters": return target.getParameters();
+        case "tags": return target.getTags();
+        default: return null;
+        }
+    }
+
+    @Override
+    public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "parameters": return java.lang.String.class;
+        default: return null;
+        }
+    }
+}
+
diff --git a/components/camel-ai/camel-langchain4j-tools/src/generated/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsEndpointUriFactory.java b/components/camel-ai/camel-langchain4j-tools/src/generated/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsEndpointUriFactory.java
new file mode 100644
index 00000000000..db2885f7ac6
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/generated/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsEndpointUriFactory.java
@@ -0,0 +1,81 @@
+/* Generated by camel build tools - do NOT edit this file! */
+package org.apache.camel.component.langchain4j.tools;
+
+import javax.annotation.processing.Generated;
+import java.net.URISyntaxException;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import org.apache.camel.spi.EndpointUriFactory;
+
+/**
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.GenerateEndpointUriFactoryMojo")
+public class LangChain4jToolsEndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory {
+
+    private static final String BASE = ":toolId";
+
+    private static final Set<String> PROPERTY_NAMES;
+    private static final Set<String> SECRET_PROPERTY_NAMES;
+    private static final Set<String> MULTI_VALUE_PREFIXES;
+    static {
+        Set<String> props = new HashSet<>(10);
+        props.add("bridgeErrorHandler");
+        props.add("camelToolParameter");
+        props.add("chatModel");
+        props.add("description");
+        props.add("exceptionHandler");
+        props.add("exchangePattern");
+        props.add("lazyStartProducer");
+        props.add("parameters");
+        props.add("tags");
+        props.add("toolId");
+        PROPERTY_NAMES = Collections.unmodifiableSet(props);
+        SECRET_PROPERTY_NAMES = Collections.emptySet();
+        Set<String> prefixes = new HashSet<>(1);
+        prefixes.add("parameter.");
+        MULTI_VALUE_PREFIXES = Collections.unmodifiableSet(prefixes);
+    }
+
+    @Override
+    public boolean isEnabled(String scheme) {
+        return "langchain4j-tools".equals(scheme);
+    }
+
+    @Override
+    public String buildUri(String scheme, Map<String, Object> properties, boolean encode) throws URISyntaxException {
+        String syntax = scheme + BASE;
+        String uri = syntax;
+
+        Map<String, Object> copy = new HashMap<>(properties);
+
+        uri = buildPathParameter(syntax, uri, "toolId", null, true, copy);
+        uri = buildQueryParameters(uri, copy, encode);
+        return uri;
+    }
+
+    @Override
+    public Set<String> propertyNames() {
+        return PROPERTY_NAMES;
+    }
+
+    @Override
+    public Set<String> secretPropertyNames() {
+        return SECRET_PROPERTY_NAMES;
+    }
+
+    @Override
+    public Set<String> multiValuePrefixes() {
+        return MULTI_VALUE_PREFIXES;
+    }
+
+    @Override
+    public boolean isLenientProperties() {
+        return false;
+    }
+}
+
diff --git a/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/org/apache/camel/component/langchain4j/tools/langchain4j-tools.json b/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/org/apache/camel/component/langchain4j/tools/langchain4j-tools.json
new file mode 100644
index 00000000000..ac048ded5de
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/org/apache/camel/component/langchain4j/tools/langchain4j-tools.json
@@ -0,0 +1,44 @@
+{
+  "component": {
+    "kind": "component",
+    "name": "langchain4j-tools",
+    "title": "LangChain4j Tools",
+    "description": "LangChain4j Tools and Function Calling Features",
+    "deprecated": false,
+    "firstVersion": "4.8.0",
+    "label": "ai",
+    "javaType": "org.apache.camel.component.langchain4j.tools.LangChain4jToolsComponent",
+    "supportLevel": "Experimental",
+    "groupId": "org.apache.camel",
+    "artifactId": "camel-langchain4j-tools",
+    "version": "4.8.0-SNAPSHOT",
+    "scheme": "langchain4j-tools",
+    "extendsScheme": "",
+    "syntax": "langchain4j-tools:toolId",
+    "async": false,
+    "api": false,
+    "consumerOnly": false,
+    "producerOnly": false,
+    "lenientProperties": false,
+    "remote": true
+  },
+  "componentProperties": {
+    "configuration": { "index": 0, "kind": "property", "displayName": "Configuration", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The configuration." },
+    "bridgeErrorHandler": { "index": 1, "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the like [...]
+    "lazyStartProducer": { "index": 2, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...]
+    "autowiredEnabled": { "index": 3, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching t [...]
+    "chatModel": { "index": 4, "kind": "property", "displayName": "Chat Model", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "dev.langchain4j.model.chat.ChatLanguageModel", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfiguration", "configurationField": "configuration", "description": "Chat Language Model of type dev.langch [...]
+  },
+  "properties": {
+    "toolId": { "index": 0, "kind": "path", "displayName": "Tool Id", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The tool name" },
+    "tags": { "index": 1, "kind": "parameter", "displayName": "Tags", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The tags for the tools" },
+    "description": { "index": 2, "kind": "parameter", "displayName": "Description", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Tool description" },
+    "parameters": { "index": 3, "kind": "parameter", "displayName": "Parameters", "group": "consumer", "label": "consumer", "required": false, "type": "object", "javaType": "java.util.Map<java.lang.String, java.lang.String>", "enum": [ "string", "integer", "number", "object", "array", "boolean", "null" ], "prefix": "parameter.", "multiValue": true, "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "List of Tool parameters in the form of param [...]
+    "bridgeErrorHandler": { "index": 4, "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming  [...]
+    "camelToolParameter": { "index": 5, "kind": "parameter", "displayName": "Camel Tool Parameter", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.langchain4j.tools.spec.CamelSimpleToolParameter", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Tool's Camel Parameters, programmatically define Tool description and parameters" },
+    "exceptionHandler": { "index": 6, "kind": "parameter", "displayName": "Exception Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", "deprecated": false, "autowired": false, "secret": false, "description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By def [...]
+    "exchangePattern": { "index": 7, "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], "deprecated": false, "autowired": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." },
+    "lazyStartProducer": { "index": 8, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produc [...]
+    "chatModel": { "index": 9, "kind": "parameter", "displayName": "Chat Model", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "dev.langchain4j.model.chat.ChatLanguageModel", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfiguration", "configurationField": "configuration", "description": "Chat Language Model of type dev.langc [...]
+  }
+}
diff --git a/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/component.properties b/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/component.properties
new file mode 100644
index 00000000000..1f6fdac4d24
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/component.properties
@@ -0,0 +1,7 @@
+# Generated by camel build tools - do NOT edit this file!
+components=langchain4j-tools
+groupId=org.apache.camel
+artifactId=camel-langchain4j-tools
+version=4.8.0-SNAPSHOT
+projectName=Camel :: AI :: LangChain4j :: Tools
+projectDescription=LangChain4j Tools and Function Calling Features
diff --git a/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/component/langchain4j-tools b/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/component/langchain4j-tools
new file mode 100644
index 00000000000..2ccfb486624
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/component/langchain4j-tools
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.langchain4j.tools.LangChain4jToolsComponent
diff --git a/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/configurer/langchain4j-tools-component b/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/configurer/langchain4j-tools-component
new file mode 100644
index 00000000000..85deeff3bff
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/configurer/langchain4j-tools-component
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.langchain4j.tools.LangChain4jToolsComponentConfigurer
diff --git a/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/configurer/langchain4j-tools-endpoint b/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/configurer/langchain4j-tools-endpoint
new file mode 100644
index 00000000000..2d966975c71
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/configurer/langchain4j-tools-endpoint
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.langchain4j.tools.LangChain4jToolsEndpointConfigurer
diff --git a/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfiguration b/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfiguration
new file mode 100644
index 00000000000..0c5fa70cc63
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfiguration
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.langchain4j.tools.LangChain4jToolsConfigurationConfigurer
diff --git a/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/urifactory/langchain4j-tools-endpoint b/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/urifactory/langchain4j-tools-endpoint
new file mode 100644
index 00000000000..d9cda5c1406
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/services/org/apache/camel/urifactory/langchain4j-tools-endpoint
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.langchain4j.tools.LangChain4jToolsEndpointUriFactory
diff --git a/components/camel-ai/camel-langchain4j-tools/src/main/docs/langchain4j-tools-component.adoc b/components/camel-ai/camel-langchain4j-tools/src/main/docs/langchain4j-tools-component.adoc
new file mode 100644
index 00000000000..27ba9551442
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/main/docs/langchain4j-tools-component.adoc
@@ -0,0 +1,187 @@
+= LangChain4j Tools Component
+:doctitle: LangChain4j Tools
+:shortname: langchain4j-tools
+:artifactid: camel-langchain4j-tools
+:description: LangChain4j Tools and Function Calling Features
+:since: 4.8
+:supportlevel: Experimental
+:tabs-sync-option:
+:component-header: Both producer and consumer are supported
+//Manually maintained attributes
+:group: AI
+:camel-spring-boot-name: langchain4j-tools
+
+*Since Camel {since}*
+
+*{component-header}*
+
+The LangChain4j Tools Component allows you to use function calling features from Large Language Models (LLMs) supported by https://github.com/langchain4j/langchain4j[LangChain4j].
+
+Maven users will need to add the following dependency to their `pom.xml`
+for this component:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.apache.camel</groupId>
+    <artifactId>camel-langchain4j-tools</artifactId>
+    <version>x.x.x</version>
+    <!-- use the same version as your Camel core version -->
+</dependency>
+----
+
+== URI format
+
+.Producer
+----
+langchain4j-tools:toolSet[?options]
+----
+
+.Consumer
+----
+langchain4j-tools:toolSet[?options]
+----
+
+Where *toolSet* can be any string to uniquely identify the endpoint
+
+
+// component-configure options: START
+
+// component-configure options: END
+
+// component options: START
+include::partial$component-configure-options.adoc[]
+include::partial$component-endpoint-options.adoc[]
+// component options: END
+
+// endpoint options: START
+
+// endpoint options: END
+
+// component headers: START
+include::partial$component-endpoint-headers.adoc[]
+// component headers: END
+
+include::spring-boot:partial$starter.adoc[]
+
+== Usage
+
+This component helps to use function-calling features from LLMs so that models can decide what functions (routes, in case of Camel)
+can be called (i.e.; routed).
+
+Consider, for instance, two consumer routes capable of query an user database by user ID or by social security number (SSN).
+
+.Queries user by ID
+[source, java]
+----
+from("langchain4j-tool:userInfo?tags=users&description=Query database by user ID")
+    .to("sql:SELECT name FROM users WHERE id = :#number");
+----
+
+.Queries user by SSN
+[source, java]
+----
+from("langchain4j-tool:userInfo?tags=users&description=Query database by user social security ID")
+    .to("sql:SELECT name FROM users WHERE ssn = :#ssn");
+----
+
+Now, consider a producer route that receives unstructured data as input. Such a route could consume
+this data, pass it to a LLM with function-calling capabilities (such as https://huggingface.co/meta-llama/Meta-Llama-3.1-8B[llama3.1],
+https://huggingface.co/ibm-granite/granite-20b-functioncalling[Granite Code 20b function calling, etc]) and have
+the model decide which route to call.
+
+Such a route could receive questions in english such as:
+
+- _"What is the name of the user with user ID 1?"_
+- _"What is the name of the user with SSN 34.400.96?"_
+
+.Produce
+[source, java]
+----
+from(source)
+    .to("langchain4j-tool:userInfo?tags=users");
+----
+
+=== Tool Tags
+
+Consumer routes must define tags that groups https://en.wikipedia.org/wiki/Set_theory[together]. The aforementioned routes would be
+part have the `users` tag. The `users` tag has two routes: `queryById` and `queryBySSN`
+
+=== Parameters
+
+The Tool Input parameter can be defined as an Endpoint multiValue option in the form of `parameter.<name>=<type>`,
+or via the endpoint option `camelToolParameter` for a programmatic approach.
+The parameters can be found as headers in the consumer route, in particular, if you define `parameter.userId=5`,
+in the consumer route `${header.userId}` can be used.
+
+.Producer and consumer example:
+[source, java]
+----
+from("direct:test")
+    .to("langchain4j-tools:test1?tags=users");
+
+from("langchain4j-chat:test1?tags=users&description=Query user database by user ID&parameter.userId=integer")
+    .to("sql:SELECT name FROM users WHERE id = :#userId");
+----
+
+.Usage example:
+[source, java]
+----
+List<ChatMessage> messages = new ArrayList<>();
+        messages.add(new SystemMessage("""
+                You provide information about specific user name querying the database given a number.
+                """));
+        messages.add(new UserMessage("""
+                What is the name of the user 1?
+                """));
+
+        Exchange message = fluentTemplate.to("direct:test").withBody(messages).request(Exchange.class);
+----
+
+=== Using a specific Model
+
+The Camel LangChain4j tools component provides an abstraction for interacting with various types of Large Language Models (LLMs)
+supported by https://github.com/langchain4j/langchain4j[LangChain4j].
+
+==== Integrating with specific LLM
+
+To integrate with a specific LLM, users should follow the steps described below, which explain
+how to integrate with OpenAI.
+
+Add the dependency for LangChain4j OpenAI support:
+
+.Example
+[source,xml]
+----
+<dependency>
+      <groupId>dev.langchain4j</groupId>
+      <artifactId>langchain4j-open-ai</artifactId>
+    <version>x.x.x</version>
+</dependency>
+----
+
+Initialize the OpenAI Chat Language Model, and add it to the Camel Registry:
+
+[source, java]
+----
+ChatLanguageModel model = OpenAiChatModel.builder()
+                .apiKey("NO_API_KEY")
+                .modelName("llama3.1:latest")
+                .temperature(0.0)
+                .timeout(ofSeconds(60000))
+                .build();
+context.getRegistry().bind("chatModel", model);
+----
+
+Use the model in the Camel LangChain4j Chat Producer
+
+[source, java]
+----
+ from("direct:chat")
+      .to("langchain4j-tools:test?tags=users&chatModel=#chatModel");
+----
+
+[NOTE]
+====
+To switch to another Large Language Model and its corresponding dependency, replace the `langchain4j-open-ai` dependency with the appropriate dependency for the desired model. Update the initialization parameters accordingly in the code snippet provided above.
+====
diff --git a/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jTools.java b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jTools.java
new file mode 100644
index 00000000000..1ae0297feb2
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jTools.java
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.langchain4j.tools;
+
+import org.apache.camel.spi.Metadata;
+
+public class LangChain4jTools {
+
+    public static final String SCHEME = "langchain4j-tools";
+
+    private LangChain4jTools() {
+    }
+
+    public static class Headers {
+        @Metadata(description = "The prompt Template.", javaType = "String")
+        public static final String PROMPT_TEMPLATE = "CamelLangChain4jChatPromptTemplate";
+
+        @Metadata(description = "Augmented Data for RAG", javaType = "String")
+        public static final String AUGMENTED_DATA = "CamelLangChain4jChatAugmentedData";
+    }
+}
diff --git a/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsComponent.java b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsComponent.java
new file mode 100644
index 00000000000..43d3bee1fb7
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsComponent.java
@@ -0,0 +1,85 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.langchain4j.tools;
+
+import java.util.Map;
+import java.util.stream.Collectors;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.Endpoint;
+import org.apache.camel.spi.Metadata;
+import org.apache.camel.spi.annotations.Component;
+import org.apache.camel.support.DefaultComponent;
+import org.apache.camel.util.ObjectHelper;
+import org.apache.camel.util.PropertiesHelper;
+import org.apache.camel.util.StringHelper;
+
+import static org.apache.camel.component.langchain4j.tools.LangChain4jTools.SCHEME;
+
+@Component(SCHEME)
+public class LangChain4jToolsComponent extends DefaultComponent {
+
+    @Metadata
+    LangChain4jToolsConfiguration configuration;
+
+    public LangChain4jToolsComponent() {
+        this(null);
+    }
+
+    public LangChain4jToolsComponent(CamelContext context) {
+        super(context);
+        this.configuration = new LangChain4jToolsConfiguration();
+
+    }
+
+    public LangChain4jToolsConfiguration getConfiguration() {
+        return configuration;
+    }
+
+    /**
+     * The configuration.
+     */
+    public void setConfiguration(LangChain4jToolsConfiguration configuration) {
+        this.configuration = configuration;
+    }
+
+    @Override
+    protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
+        if (ObjectHelper.isEmpty(remaining)) {
+            throw new IllegalArgumentException(
+                    "Tool set and, optionally, the function, must be configured on the endpoint using syntax langchain4j-tools:toolId");
+        }
+
+        // Defaults to remaining, because if there's no "/", then it's likely a producer
+        final String toolId = StringHelper.before(remaining, "/", remaining);
+        final String tagList = parameters.get("tags").toString();
+        if (ObjectHelper.isEmpty(tagList)) {
+            throw new IllegalArgumentException("At least one tag must be specified");
+        }
+
+        LangChain4jToolsConfiguration langchain4jChatConfiguration = this.configuration.copy();
+
+        Map<String, Object> toolParameters = PropertiesHelper.extractProperties(parameters, "parameter.");
+        LangChain4jToolsEndpoint endpoint
+                = new LangChain4jToolsEndpoint(uri, this, toolId, tagList, langchain4jChatConfiguration);
+        endpoint.setParameters(toolParameters.entrySet().stream()
+                .collect(Collectors.toMap(Map.Entry::getKey, e -> (String) e.getValue())));
+
+        setProperties(endpoint, parameters);
+        return endpoint;
+    }
+}
diff --git a/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsConfiguration.java b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsConfiguration.java
new file mode 100644
index 00000000000..74f89f50871
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsConfiguration.java
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.langchain4j.tools;
+
+import dev.langchain4j.model.chat.ChatLanguageModel;
+import org.apache.camel.RuntimeCamelException;
+import org.apache.camel.spi.Configurer;
+import org.apache.camel.spi.Metadata;
+import org.apache.camel.spi.UriParam;
+import org.apache.camel.spi.UriParams;
+
+@Configurer
+@UriParams
+public class LangChain4jToolsConfiguration implements Cloneable {
+
+    @UriParam(label = "advanced")
+    @Metadata(autowired = true)
+    private ChatLanguageModel chatModel;
+
+    public LangChain4jToolsConfiguration() {
+    }
+
+    /**
+     * Chat Language Model of type dev.langchain4j.model.chat.ChatLanguageModel
+     *
+     * @return
+     */
+    public ChatLanguageModel getChatModel() {
+        return chatModel;
+    }
+
+    public void setChatModel(ChatLanguageModel chatModel) {
+        this.chatModel = chatModel;
+    }
+
+    public LangChain4jToolsConfiguration copy() {
+        try {
+            return (LangChain4jToolsConfiguration) super.clone();
+        } catch (CloneNotSupportedException e) {
+            throw new RuntimeCamelException(e);
+        }
+    }
+}
diff --git a/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsConsumer.java b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsConsumer.java
new file mode 100644
index 00000000000..0f88e464dfa
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsConsumer.java
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.langchain4j.tools;
+
+import org.apache.camel.Endpoint;
+import org.apache.camel.Processor;
+import org.apache.camel.support.DefaultConsumer;
+
+public class LangChain4jToolsConsumer extends DefaultConsumer {
+
+    public LangChain4jToolsConsumer(Endpoint endpoint, Processor processor) {
+        super(endpoint, processor);
+    }
+}
diff --git a/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsEndpoint.java b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsEndpoint.java
new file mode 100644
index 00000000000..428b8025501
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsEndpoint.java
@@ -0,0 +1,201 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.langchain4j.tools;
+
+import java.util.Map;
+
+import dev.langchain4j.agent.tool.JsonSchemaProperty;
+import dev.langchain4j.agent.tool.ToolSpecification;
+import org.apache.camel.Category;
+import org.apache.camel.Consumer;
+import org.apache.camel.Processor;
+import org.apache.camel.Producer;
+import org.apache.camel.component.langchain4j.tools.spec.CamelSimpleToolParameter;
+import org.apache.camel.component.langchain4j.tools.spec.CamelToolExecutorCache;
+import org.apache.camel.component.langchain4j.tools.spec.CamelToolSpecification;
+import org.apache.camel.component.langchain4j.tools.spec.NamedJsonSchemaProperty;
+import org.apache.camel.spi.Metadata;
+import org.apache.camel.spi.UriEndpoint;
+import org.apache.camel.spi.UriParam;
+import org.apache.camel.spi.UriPath;
+import org.apache.camel.support.DefaultEndpoint;
+import org.apache.camel.util.StringHelper;
+
+import static org.apache.camel.component.langchain4j.tools.LangChain4jTools.SCHEME;
+
+@UriEndpoint(firstVersion = "4.8.0", scheme = SCHEME,
+             title = "LangChain4j Tools",
+             syntax = "langchain4j-tools:toolId",
+             category = { Category.AI })
+public class LangChain4jToolsEndpoint extends DefaultEndpoint {
+
+    @Metadata(required = true)
+    @UriPath(description = "The tool name")
+    private final String toolId;
+
+    @Metadata(required = true)
+    @UriParam(description = "The tags for the tools")
+    private String tags;
+
+    @UriParam
+    private LangChain4jToolsConfiguration configuration;
+
+    @Metadata(label = "consumer")
+    @UriParam(description = "Tool description")
+    private String description;
+
+    @Metadata(label = "consumer")
+    @UriParam(description = "List of Tool parameters in the form of parameter.<name>=<type>", prefix = "parameter.",
+              multiValue = true, enums = "string,integer,number,object,array,boolean,null")
+    private Map<String, String> parameters;
+
+    @Metadata(label = "consumer,advanced")
+    @UriParam(description = "Tool's Camel Parameters, programmatically define Tool description and parameters")
+    private CamelSimpleToolParameter camelToolParameter;
+
+    public LangChain4jToolsEndpoint(String uri, LangChain4jToolsComponent component, String toolId, String tags,
+                                    LangChain4jToolsConfiguration configuration) {
+        super(uri, component);
+        this.toolId = toolId;
+        this.tags = tags;
+        this.configuration = configuration;
+    }
+
+    @Override
+    public Producer createProducer() throws Exception {
+        return new LangChain4jToolsProducer(this);
+    }
+
+    @Override
+    public Consumer createConsumer(Processor processor) throws Exception {
+        ToolSpecification.Builder toolSpecificationBuilder = ToolSpecification.builder();
+
+        if (camelToolParameter != null) {
+            toolSpecificationBuilder.description(camelToolParameter.getDescription());
+
+            for (NamedJsonSchemaProperty namedJsonSchemaProperty : camelToolParameter.getProperties()) {
+                toolSpecificationBuilder.addParameter(namedJsonSchemaProperty.getName(),
+                        namedJsonSchemaProperty.getProperties());
+            }
+        } else if (description != null) {
+            toolSpecificationBuilder.description(description);
+
+            if (parameters != null) {
+                parameters.forEach((name, type) -> toolSpecificationBuilder.addParameter(name, JsonSchemaProperty.type(type)));
+            }
+        } else {
+            // Consumer without toolParameter or description
+            throw new IllegalArgumentException(
+                    "In order to use the langchain4j component as a consumer, you need to specify at least description, or a camelToolParameter");
+        }
+
+        String simpleDescription = null;
+        if (description != null) {
+            simpleDescription = StringHelper.dashToCamelCase(description.replace(" ", "-"));
+        }
+
+        ToolSpecification toolSpecification = toolSpecificationBuilder
+                .name(simpleDescription)
+                .build();
+
+        final LangChain4jToolsConsumer langChain4jToolsConsumer = new LangChain4jToolsConsumer(this, processor);
+        configureConsumer(langChain4jToolsConsumer);
+
+        CamelToolSpecification camelToolSpecification
+                = new CamelToolSpecification(toolSpecification, langChain4jToolsConsumer);
+        final CamelToolExecutorCache executorCache = CamelToolExecutorCache.getInstance();
+
+        String[] splitTags = TagsHelper.splitTags(tags);
+        for (String tag : splitTags) {
+            executorCache.put(tag, camelToolSpecification);
+        }
+
+        return camelToolSpecification.getConsumer();
+    }
+
+    /**
+     * A freely named tool ID (prefer to use something unique)
+     *
+     * @return
+     */
+    public String getToolId() {
+        return toolId;
+    }
+
+    /**
+     * The tool configuration
+     *
+     * @return
+     */
+    public LangChain4jToolsConfiguration getConfiguration() {
+        return configuration;
+    }
+
+    /**
+     * A description of the tool. This is passed to the LLM, so it should be descriptive of the tool capabilities
+     *
+     * @return
+     */
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    /**
+     * The input parameters for the tool
+     *
+     * @return
+     */
+    public Map<String, String> getParameters() {
+        return parameters;
+    }
+
+    public void setParameters(Map<String, String> parameters) {
+        this.parameters = parameters;
+    }
+
+    public CamelSimpleToolParameter getCamelToolParameter() {
+        return camelToolParameter;
+    }
+
+    public void setCamelToolParameter(CamelSimpleToolParameter camelToolParameter) {
+        this.camelToolParameter = camelToolParameter;
+    }
+
+    public void setTags(String tags) {
+        this.tags = tags;
+    }
+
+    /**
+     * The tags associated with the tool
+     *
+     * @return
+     */
+    public String getTags() {
+        return tags;
+    }
+
+    @Override
+    protected void doStop() throws Exception {
+        super.doStop();
+
+        CamelToolExecutorCache.getInstance().getTools().clear();
+    }
+}
diff --git a/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsProducer.java b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsProducer.java
new file mode 100644
index 00000000000..55052fd295b
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolsProducer.java
@@ -0,0 +1,204 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.langchain4j.tools;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import com.fasterxml.jackson.databind.JsonNode;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import dev.langchain4j.agent.tool.ToolExecutionRequest;
+import dev.langchain4j.agent.tool.ToolSpecification;
+import dev.langchain4j.data.message.AiMessage;
+import dev.langchain4j.data.message.ChatMessage;
+import dev.langchain4j.data.message.ToolExecutionResultMessage;
+import dev.langchain4j.model.chat.ChatLanguageModel;
+import dev.langchain4j.model.output.Response;
+import org.apache.camel.Exchange;
+import org.apache.camel.InvalidPayloadException;
+import org.apache.camel.RuntimeCamelException;
+import org.apache.camel.component.langchain4j.tools.spec.CamelToolExecutorCache;
+import org.apache.camel.component.langchain4j.tools.spec.CamelToolSpecification;
+import org.apache.camel.support.DefaultProducer;
+import org.apache.camel.util.ObjectHelper;
+
+public class LangChain4jToolsProducer extends DefaultProducer {
+
+    private final LangChain4jToolsEndpoint endpoint;
+
+    private ChatLanguageModel chatLanguageModel;
+
+    private final ObjectMapper objectMapper = new ObjectMapper();
+
+    public LangChain4jToolsProducer(LangChain4jToolsEndpoint endpoint) {
+        super(endpoint);
+        this.endpoint = endpoint;
+    }
+
+    @Override
+    public void process(Exchange exchange) throws Exception {
+        processMultipleMessages(exchange);
+    }
+
+    @SuppressWarnings("unchecked")
+    private void processMultipleMessages(Exchange exchange) throws InvalidPayloadException {
+        List<ChatMessage> messages = exchange.getIn().getMandatoryBody(List.class);
+        populateResponse(toolsChat(messages, exchange), exchange);
+    }
+
+    @Override
+    protected void doStart() throws Exception {
+        super.doStart();
+        this.chatLanguageModel = this.endpoint.getConfiguration().getChatModel();
+        ObjectHelper.notNull(chatLanguageModel, "chatLanguageModel");
+    }
+
+    private void populateResponse(String response, Exchange exchange) {
+        exchange.getMessage().setBody(response);
+    }
+
+    private boolean isMatch(String[] tags, Map.Entry<String, Set<CamelToolSpecification>> entry) {
+        for (String tag : tags) {
+            if (entry.getKey().equals(tag)) {
+                return true;
+            }
+        }
+
+        return false;
+    }
+
+    /**
+     * Send a ChatMessage
+     *
+     * @param  chatMessages
+     * @return
+     */
+    private String toolsChat(List<ChatMessage> chatMessages, Exchange exchange) {
+        final CamelToolExecutorCache toolCache = CamelToolExecutorCache.getInstance();
+
+        final ToolPair toolPair = computeCandidates(toolCache);
+
+        // First talk to the model to get the tools to be called
+        final Response<AiMessage> response = chatWithLLMForTools(chatMessages, toolPair);
+
+        // Then, talk again to call the tools and compute the final response
+        return chatWithLLMForToolCalling(chatMessages, exchange, response, toolPair);
+    }
+
+    private String chatWithLLMForToolCalling(
+            List<ChatMessage> chatMessages, Exchange exchange, Response<AiMessage> response, ToolPair toolPair) {
+        for (ToolExecutionRequest toolExecutionRequest : response.content().toolExecutionRequests()) {
+            String toolName = toolExecutionRequest.name();
+
+            final CamelToolSpecification camelToolSpecification = toolPair.callableTools().stream()
+                    .filter(c -> c.getToolSpecification().name().equals(toolName)).findFirst().get();
+
+            try {
+                // Map Json to Header
+                JsonNode jsonNode = objectMapper.readValue(toolExecutionRequest.arguments(), JsonNode.class);
+
+                jsonNode.fieldNames()
+                        .forEachRemaining(name -> exchange.getMessage().setHeader(name, jsonNode.get(name)));
+
+                // Execute the consumer route
+                camelToolSpecification.getConsumer().getProcessor().process(exchange);
+            } catch (Exception e) {
+                // How to handle this exception?
+                exchange.setException(e);
+            }
+
+            chatMessages.add(new ToolExecutionResultMessage(
+                    toolExecutionRequest.id(),
+                    toolExecutionRequest.name(),
+                    exchange.getIn().getBody(String.class)));
+        }
+
+        final Response<AiMessage> generate = this.chatLanguageModel.generate(chatMessages);
+        return extractAiResponse(generate);
+    }
+
+    /**
+     * This talks with the LLM to, passing the list of tools, and expects a response listing one ore more tools to be
+     * called
+     *
+     * @param  chatMessages the input chat messages
+     * @param  toolPair     the toolPair containing the available tools to be called
+     * @return              the response provided by the model
+     */
+    private Response<AiMessage> chatWithLLMForTools(List<ChatMessage> chatMessages, ToolPair toolPair) {
+        Response<AiMessage> response = this.chatLanguageModel.generate(chatMessages, toolPair.toolSpecifications());
+
+        if (!response.content().hasToolExecutionRequests()) {
+            throw new RuntimeCamelException("There are no tools to be executed");
+        }
+
+        chatMessages.add(response.content());
+        return response;
+    }
+
+    /**
+     * This method traverses all tag sets to search for the tools that match the tags for the current endpoint.
+     *
+     * @param  toolCache the global cache of tools
+     * @return           It returns a record containing both the specification, and the {@link CamelToolSpecification}
+     *                   that can be used to call the endpoints.
+     */
+    private ToolPair computeCandidates(CamelToolExecutorCache toolCache) {
+        final List<ToolSpecification> toolSpecifications = new ArrayList<>();
+        final List<CamelToolSpecification> callableTools = new ArrayList<>();
+
+        final Map<String, Set<CamelToolSpecification>> tools = toolCache.getTools();
+        String[] tags = TagsHelper.splitTags(endpoint.getTags());
+        for (var entry : tools.entrySet()) {
+            if (isMatch(tags, entry)) {
+                final List<CamelToolSpecification> callablesForTag = entry.getValue().stream()
+                        .toList();
+
+                callableTools.addAll(callablesForTag);
+
+                final List<ToolSpecification> toolsForTag = entry.getValue().stream()
+                        .map(CamelToolSpecification::getToolSpecification)
+                        .toList();
+
+                toolSpecifications.addAll(toolsForTag);
+            }
+        }
+
+        if (toolSpecifications.isEmpty()) {
+            throw new RuntimeCamelException("No tools matching the tags provided by the producer were found");
+        }
+
+        return new ToolPair(toolSpecifications, callableTools);
+    }
+
+    /**
+     * The pair of tools specifications that the Camel tools (i.e.: routes) that can be called for that set
+     *
+     * @param toolSpecifications
+     * @param callableTools
+     */
+    private record ToolPair(List<ToolSpecification> toolSpecifications, List<CamelToolSpecification> callableTools) {
+    }
+
+    private String extractAiResponse(Response<AiMessage> response) {
+        AiMessage message = response.content();
+        return message == null ? null : message.text();
+    }
+
+}
diff --git a/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/TagsHelper.java b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/TagsHelper.java
new file mode 100644
index 00000000000..1abcc5a17d9
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/TagsHelper.java
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.camel.component.langchain4j.tools;
+
+final class TagsHelper {
+    private TagsHelper() {
+    }
+
+    /**
+     * Split the list of tags
+     *
+     * @param  tagList
+     * @return
+     */
+    public static String[] splitTags(String tagList) {
+        return tagList.split(",");
+    }
+}
diff --git a/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/spec/CamelSimpleToolParameter.java b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/spec/CamelSimpleToolParameter.java
new file mode 100644
index 00000000000..074b774e0b9
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/spec/CamelSimpleToolParameter.java
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.langchain4j.tools.spec;
+
+import java.util.List;
+
+/**
+ * langchain4j Simple Tool parameter implementation, this class can be used to provide multiple properties/input
+ * parameters to the tool itself, the NamedJsonSchemaProperty can be then found as headers into the consumer route
+ */
+public class CamelSimpleToolParameter {
+
+    private final String description;
+    private final List<NamedJsonSchemaProperty> properties;
+
+    public CamelSimpleToolParameter(String description, List<NamedJsonSchemaProperty> properties) {
+        this.description = description;
+        this.properties = properties;
+    }
+
+    public List<NamedJsonSchemaProperty> getProperties() {
+        return properties;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+}
diff --git a/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/spec/CamelToolExecutorCache.java b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/spec/CamelToolExecutorCache.java
new file mode 100644
index 00000000000..6c00e31b747
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/spec/CamelToolExecutorCache.java
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.langchain4j.tools.spec;
+
+import java.util.LinkedHashSet;
+import java.util.Map;
+import java.util.Set;
+import java.util.concurrent.ConcurrentHashMap;
+
+/**
+ * Caches Tools Specification and Consumer route reference by the chatId, so that different chats can have different
+ * Tool implementation
+ */
+public final class CamelToolExecutorCache {
+
+    private Map<String, Set<CamelToolSpecification>> tools;
+
+    private CamelToolExecutorCache() {
+        tools = new ConcurrentHashMap<>();
+    }
+
+    private static final class SingletonHolder {
+        private static final CamelToolExecutorCache INSTANCE = new CamelToolExecutorCache();
+    }
+
+    public static CamelToolExecutorCache getInstance() {
+        return SingletonHolder.INSTANCE;
+    }
+
+    public void put(String chatId, CamelToolSpecification specification) {
+        if (tools.get(chatId) != null) {
+            tools.get(chatId).add(specification);
+        } else {
+            Set<CamelToolSpecification> camelToolSpecifications = new LinkedHashSet<>();
+            camelToolSpecifications.add(specification);
+            tools.put(chatId, camelToolSpecifications);
+        }
+    }
+
+    public Map<String, Set<CamelToolSpecification>> getTools() {
+        return tools;
+    }
+}
diff --git a/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/spec/CamelToolSpecification.java b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/spec/CamelToolSpecification.java
new file mode 100644
index 00000000000..7cda5f076ae
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/spec/CamelToolSpecification.java
@@ -0,0 +1,79 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.langchain4j.tools.spec;
+
+import java.util.Objects;
+
+import dev.langchain4j.agent.tool.ToolSpecification;
+import org.apache.camel.component.langchain4j.tools.LangChain4jToolsConsumer;
+
+/**
+ * Holds ToolSpecification needed by langchain4j and the associated Camel Consumer. In this way, a specific route can be
+ * invoked by a specific Tool
+ */
+public class CamelToolSpecification {
+
+    private ToolSpecification toolSpecification;
+    private LangChain4jToolsConsumer consumer;
+
+    public CamelToolSpecification(ToolSpecification toolSpecification, LangChain4jToolsConsumer consumer) {
+        this.toolSpecification = toolSpecification;
+        this.consumer = consumer;
+    }
+
+    public ToolSpecification getToolSpecification() {
+        return toolSpecification;
+    }
+
+    public void setToolSpecification(ToolSpecification toolSpecification) {
+        this.toolSpecification = toolSpecification;
+    }
+
+    public LangChain4jToolsConsumer getConsumer() {
+        return consumer;
+    }
+
+    public void setConsumer(LangChain4jToolsConsumer consumer) {
+        this.consumer = consumer;
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+        CamelToolSpecification that = (CamelToolSpecification) o;
+        return Objects.equals(toolSpecification, that.toolSpecification) && Objects.equals(consumer,
+                that.consumer);
+    }
+
+    @Override
+    public int hashCode() {
+        return Objects.hash(toolSpecification, consumer);
+    }
+
+    @Override
+    public String toString() {
+        return "CamelToolSpecification{" +
+               "toolSpecification=" + toolSpecification +
+               ", consumer=" + consumer +
+               '}';
+    }
+}
diff --git a/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/spec/NamedJsonSchemaProperty.java b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/spec/NamedJsonSchemaProperty.java
new file mode 100644
index 00000000000..c1b160d1d17
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/main/java/org/apache/camel/component/langchain4j/tools/spec/NamedJsonSchemaProperty.java
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.langchain4j.tools.spec;
+
+import java.util.List;
+
+import dev.langchain4j.agent.tool.JsonSchemaProperty;
+
+public class NamedJsonSchemaProperty {
+
+    private final String name;
+    private final List<JsonSchemaProperty> properties;
+
+    public NamedJsonSchemaProperty(String name, List<JsonSchemaProperty> properties) {
+        this.name = name;
+        this.properties = properties;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public List<JsonSchemaProperty> getProperties() {
+        return properties;
+    }
+}
diff --git a/components/camel-ai/camel-langchain4j-tools/src/test/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolIT.java b/components/camel-ai/camel-langchain4j-tools/src/test/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolIT.java
new file mode 100644
index 00000000000..e2187d5be09
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/test/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolIT.java
@@ -0,0 +1,118 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.langchain4j.tools;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import dev.langchain4j.data.message.ChatMessage;
+import dev.langchain4j.data.message.SystemMessage;
+import dev.langchain4j.data.message.UserMessage;
+import dev.langchain4j.model.chat.ChatLanguageModel;
+import dev.langchain4j.model.openai.OpenAiChatModel;
+import org.apache.camel.CamelContext;
+import org.apache.camel.Exchange;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.test.infra.ollama.services.OllamaService;
+import org.apache.camel.test.infra.ollama.services.OllamaServiceFactory;
+import org.apache.camel.test.junit5.CamelTestSupport;
+import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.RepeatedTest;
+import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
+import org.junit.jupiter.api.extension.RegisterExtension;
+
+import static java.time.Duration.ofSeconds;
+
+@DisabledIfSystemProperty(named = "ci.env.name", matches = ".*", disabledReason = "Requires too much network resources")
+public class LangChain4jToolIT extends CamelTestSupport {
+
+    public static final String MODEL_NAME = "llama3.1:latest";
+    private final String nameFromDB = "pippo";
+    private ChatLanguageModel chatLanguageModel;
+
+    @RegisterExtension
+    static OllamaService OLLAMA = OllamaServiceFactory.createServiceWithConfiguration(() -> MODEL_NAME);
+
+    @Override
+    protected void setupResources() throws Exception {
+        super.setupResources();
+
+        chatLanguageModel = createModel();
+    }
+
+    @Override
+    protected CamelContext createCamelContext() throws Exception {
+        CamelContext context = super.createCamelContext();
+
+        LangChain4jToolsComponent component
+                = context.getComponent(LangChain4jTools.SCHEME, LangChain4jToolsComponent.class);
+
+        component.getConfiguration().setChatModel(chatLanguageModel);
+
+        return context;
+    }
+
+    protected ChatLanguageModel createModel() {
+        chatLanguageModel = OpenAiChatModel.builder()
+                .apiKey("NO_API_KEY")
+                .modelName(MODEL_NAME)
+                .baseUrl(OLLAMA.getEndpoint())
+                .temperature(0.0)
+                .timeout(ofSeconds(60))
+                .logRequests(true)
+                .logResponses(true)
+                .build();
+
+        return chatLanguageModel;
+    }
+
+    @Override
+    protected RouteBuilder createRouteBuilder() {
+        return new RouteBuilder() {
+            public void configure() {
+
+                from("direct:test")
+                        .to("langchain4j-tools:test1?tags=user")
+                        .log("response is: ${body}");
+
+                from("langchain4j-tools:test1?tags=user&description=Query user database by number&parameter.number=integer")
+                        .setBody(simple("{\"name\": \"pippo\"}"));
+
+                from("langchain4j-tools:test1?tags=user&description=Does not really do anything")
+                        .setBody(constant("Hello World"));
+            }
+        };
+    }
+
+    @RepeatedTest(10)
+    public void testSimpleInvocation() {
+        List<ChatMessage> messages = new ArrayList<>();
+        messages.add(new SystemMessage(
+                """
+                        You provide the requested information using the functions you hava available. You can invoke the functions to obtain the information you need to complete the answer.
+                        """));
+        messages.add(new UserMessage("""
+                What is the name of the user 1?
+                """));
+
+        Exchange message = fluentTemplate.to("direct:test").withBody(messages).request(Exchange.class);
+
+        Assertions.assertThat(message).isNotNull();
+        final String responseContent = message.getMessage().getBody().toString();
+        Assertions.assertThat(responseContent).containsIgnoringCase(nameFromDB);
+    }
+}
diff --git a/components/camel-ai/camel-langchain4j-tools/src/test/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolMultipleGroupsIT.java b/components/camel-ai/camel-langchain4j-tools/src/test/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolMultipleGroupsIT.java
new file mode 100644
index 00000000000..783c98a3fc7
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/test/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolMultipleGroupsIT.java
@@ -0,0 +1,124 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.langchain4j.tools;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import dev.langchain4j.data.message.ChatMessage;
+import dev.langchain4j.data.message.SystemMessage;
+import dev.langchain4j.data.message.UserMessage;
+import dev.langchain4j.model.chat.ChatLanguageModel;
+import dev.langchain4j.model.openai.OpenAiChatModel;
+import org.apache.camel.CamelContext;
+import org.apache.camel.Exchange;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.test.infra.ollama.services.OllamaService;
+import org.apache.camel.test.infra.ollama.services.OllamaServiceFactory;
+import org.apache.camel.test.junit5.CamelTestSupport;
+import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.RepeatedTest;
+import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
+import org.junit.jupiter.api.extension.RegisterExtension;
+
+import static java.time.Duration.ofSeconds;
+
+@DisabledIfSystemProperty(named = "ci.env.name", matches = ".*", disabledReason = "Requires too much network resources")
+public class LangChain4jToolMultipleGroupsIT extends CamelTestSupport {
+
+    public static final String MODEL_NAME = "llama3.1:latest";
+    private final String nameFromDB = "pippo";
+    private ChatLanguageModel chatLanguageModel;
+
+    @RegisterExtension
+    static OllamaService OLLAMA = OllamaServiceFactory.createServiceWithConfiguration(() -> MODEL_NAME);
+
+    @Override
+    protected void setupResources() throws Exception {
+        super.setupResources();
+
+        chatLanguageModel = createModel();
+    }
+
+    @Override
+    protected CamelContext createCamelContext() throws Exception {
+        CamelContext context = super.createCamelContext();
+
+        LangChain4jToolsComponent component
+                = context.getComponent(LangChain4jTools.SCHEME, LangChain4jToolsComponent.class);
+
+        component.getConfiguration().setChatModel(chatLanguageModel);
+
+        return context;
+    }
+
+    protected ChatLanguageModel createModel() {
+        chatLanguageModel = OpenAiChatModel.builder()
+                .apiKey("NO_API_KEY")
+                .modelName(MODEL_NAME)
+                .baseUrl(OLLAMA.getEndpoint())
+                .temperature(0.0)
+                .timeout(ofSeconds(60))
+                .logRequests(true)
+                .logResponses(true)
+                .build();
+
+        return chatLanguageModel;
+    }
+
+    @Override
+    protected RouteBuilder createRouteBuilder() {
+        return new RouteBuilder() {
+            public void configure() {
+
+                from("direct:test")
+                        .to("langchain4j-tools:test1?tags=user")
+                        .log("response is: ${body}");
+
+                from("langchain4j-tools:test1?tags=user&description=Query user database by number&parameter.number=integer")
+                        .setBody(simple("{\"name\": \"pippo\"}"));
+
+                from("langchain4j-tools:test1?tags=user&description=Does not really do anything")
+                        .setBody(constant("Hello World"));
+
+                from("langchain4j-tools:test1?tags=companies&description=Query user database by number&parameter.number=integer")
+                        .setBody(constant("Hello World"));
+
+                from("langchain4j-tools:test1?tags=somethingelse&description=Query user database by number&parameter.number=integer")
+                        .setBody(constant("Hello World"));
+            }
+        };
+    }
+
+    @RepeatedTest(10)
+    public void testSimpleInvocation() {
+        List<ChatMessage> messages = new ArrayList<>();
+        messages.add(new SystemMessage(
+                """
+                        You provide the requested information using the functions you hava available. You can invoke the functions to obtain the information you need to complete the answer.
+                        """));
+        messages.add(new UserMessage("""
+                What is the name of the user 1?
+                """));
+
+        Exchange message = fluentTemplate.to("direct:test").withBody(messages).request(Exchange.class);
+
+        Assertions.assertThat(message).isNotNull();
+        final String responseContent = message.getMessage().getBody().toString();
+        Assertions.assertThat(responseContent).containsIgnoringCase(nameFromDB);
+    }
+}
diff --git a/components/camel-ai/camel-langchain4j-tools/src/test/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolMultipleMatchingGroupsIT.java b/components/camel-ai/camel-langchain4j-tools/src/test/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolMultipleMatchingGroupsIT.java
new file mode 100644
index 00000000000..cc6ab1c5397
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/test/java/org/apache/camel/component/langchain4j/tools/LangChain4jToolMultipleMatchingGroupsIT.java
@@ -0,0 +1,125 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.langchain4j.tools;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import dev.langchain4j.data.message.ChatMessage;
+import dev.langchain4j.data.message.SystemMessage;
+import dev.langchain4j.data.message.UserMessage;
+import dev.langchain4j.model.chat.ChatLanguageModel;
+import dev.langchain4j.model.openai.OpenAiChatModel;
+import org.apache.camel.CamelContext;
+import org.apache.camel.Exchange;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.test.infra.ollama.services.OllamaService;
+import org.apache.camel.test.infra.ollama.services.OllamaServiceFactory;
+import org.apache.camel.test.junit5.CamelTestSupport;
+import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
+import org.junit.jupiter.api.extension.RegisterExtension;
+
+import static java.time.Duration.ofSeconds;
+
+@DisabledIfSystemProperty(named = "ci.env.name", matches = ".*", disabledReason = "Requires too much network resources")
+public class LangChain4jToolMultipleMatchingGroupsIT extends CamelTestSupport {
+
+    public static final String MODEL_NAME = "llama3.1:latest";
+    private final String nameFromDB = "Paul McFly";
+    private ChatLanguageModel chatLanguageModel;
+
+    @RegisterExtension
+    static OllamaService OLLAMA = OllamaServiceFactory.createServiceWithConfiguration(() -> MODEL_NAME);
+
+    @Override
+    protected void setupResources() throws Exception {
+        super.setupResources();
+
+        chatLanguageModel = createModel();
+    }
+
+    @Override
+    protected CamelContext createCamelContext() throws Exception {
+        CamelContext context = super.createCamelContext();
+
+        LangChain4jToolsComponent component
+                = context.getComponent(LangChain4jTools.SCHEME, LangChain4jToolsComponent.class);
+
+        component.getConfiguration().setChatModel(chatLanguageModel);
+
+        return context;
+    }
+
+    protected ChatLanguageModel createModel() {
+        chatLanguageModel = OpenAiChatModel.builder()
+                .apiKey("NO_API_KEY")
+                .modelName(MODEL_NAME)
+                .baseUrl(OLLAMA.getEndpoint())
+                .temperature(0.0)
+                .timeout(ofSeconds(60))
+                .logRequests(true)
+                .logResponses(true)
+                .build();
+
+        return chatLanguageModel;
+    }
+
+    @Override
+    protected RouteBuilder createRouteBuilder() {
+        return new RouteBuilder() {
+            public void configure() {
+
+                from("direct:test")
+                        .to("langchain4j-tools:test1?tags=internalDB,externalDB")
+                        .log("response is: ${body}");
+
+                from("langchain4j-tools:test2?tags=internalDB&description=Query user by number using the internal DB&parameter.number=integer")
+                        .setBody(simple("{\"name\": \"Paul McFly\"}"));
+
+                from("langchain4j-tools:test3?tags=notApplicable&description=Does not really do anything")
+                        .setBody(constant("Hello World"));
+
+                from("langchain4j-tools:test4?tags=externalDB&description=Query user information by number using the external DB&parameter.number=integer")
+                        .setBody(simple("{\"name\": \"Paul McFly\", \"department\": \"engineering\"}"));
+
+                from("langchain4j-tools:test5?tags=notApplicable&description=Query car information by plate&parameter.number=integer")
+                        .setBody(constant("Hello World"));
+            }
+        };
+    }
+
+    @Test
+    public void testSimpleInvocation() {
+        List<ChatMessage> messages = new ArrayList<>();
+        messages.add(new SystemMessage(
+                """
+                        You provide the requested information using the functions you hava available. You can invoke the functions to obtain the information you need to complete the answer.
+                        """));
+        messages.add(new UserMessage("""
+                What is the name of the user 1 and what department he is part of?
+                """));
+
+        Exchange message = fluentTemplate.to("direct:test").withBody(messages).request(Exchange.class);
+
+        Assertions.assertThat(message).isNotNull();
+        final String responseContent = message.getMessage().getBody().toString();
+        Assertions.assertThat(responseContent).containsIgnoringCase(nameFromDB);
+        Assertions.assertThat(responseContent).containsIgnoringCase("engineering");
+    }
+}
diff --git a/components/camel-ai/camel-langchain4j-tools/src/test/resources/log4j2.properties b/components/camel-ai/camel-langchain4j-tools/src/test/resources/log4j2.properties
new file mode 100644
index 00000000000..ffab7146423
--- /dev/null
+++ b/components/camel-ai/camel-langchain4j-tools/src/test/resources/log4j2.properties
@@ -0,0 +1,35 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+
+appender.file.type = File
+appender.file.name = file
+appender.file.fileName = target/camel-langchain4j-tools-test.log
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n
+
+appender.out.type = Console
+appender.out.name = out
+appender.out.layout.type = PatternLayout
+appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n
+
+rootLogger.level = INFO
+rootLogger.appenderRef.file.ref = file
+# To log to stdout
+#rootLogger.appenderRef.out.ref = out
+
+logger.camel-langchain4j-chat.name = org.apache.camel.component.langchain4j
+logger.camel-langchain4j-chat.level = DEBUG
diff --git a/components/camel-ai/pom.xml b/components/camel-ai/pom.xml
index e8ee1c629ac..cd43111a9d1 100644
--- a/components/camel-ai/pom.xml
+++ b/components/camel-ai/pom.xml
@@ -44,6 +44,7 @@
         <module>camel-pinecone</module>
         <module>camel-qdrant</module>
         <module>camel-langchain4j-tokenizer</module>
+        <module>camel-langchain4j-tools</module>
     </modules>
 
 </project>
diff --git a/docs/components/modules/ROOT/examples/json/langchain4j-tools.json b/docs/components/modules/ROOT/examples/json/langchain4j-tools.json
new file mode 120000
index 00000000000..552f1268295
--- /dev/null
+++ b/docs/components/modules/ROOT/examples/json/langchain4j-tools.json
@@ -0,0 +1 @@
+../../../../../../components/camel-ai/camel-langchain4j-tools/src/generated/resources/META-INF/org/apache/camel/component/langchain4j/tools/langchain4j-tools.json
\ No newline at end of file
diff --git a/docs/components/modules/ROOT/nav.adoc b/docs/components/modules/ROOT/nav.adoc
index 6d3802fe161..3fc2292d474 100644
--- a/docs/components/modules/ROOT/nav.adoc
+++ b/docs/components/modules/ROOT/nav.adoc
@@ -10,6 +10,7 @@
 *** xref:langchain4j-chat-component.adoc[LangChain4j Chat]
 *** xref:langchain4j-embeddings-component.adoc[LangChain4j Embeddings]
 *** xref:langchain4j-tokenizer-component.adoc[LangChain4j Tokenizer]
+*** xref:langchain4j-tools-component.adoc[LangChain4j Tools]
 *** xref:langchain4j-web-search-component.adoc[LangChain4j Web Search]
 *** xref:milvus-component.adoc[Milvus]
 *** xref:pinecone-component.adoc[Pinecone]
diff --git a/docs/components/modules/ROOT/pages/langchain4j-tools-component.adoc b/docs/components/modules/ROOT/pages/langchain4j-tools-component.adoc
new file mode 120000
index 00000000000..1103884bdbe
--- /dev/null
+++ b/docs/components/modules/ROOT/pages/langchain4j-tools-component.adoc
@@ -0,0 +1 @@
+../../../../../components/camel-ai/camel-langchain4j-tools/src/main/docs/langchain4j-tools-component.adoc
\ No newline at end of file
diff --git a/parent/pom.xml b/parent/pom.xml
index 1462f4d6e19..3747b98b3c8 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -1750,6 +1750,11 @@
                 <artifactId>camel-langchain4j-tokenizer</artifactId>
                 <version>${project.version}</version>
             </dependency>
+            <dependency>
+                <groupId>org.apache.camel</groupId>
+                <artifactId>camel-langchain4j-tools</artifactId>
+                <version>${project.version}</version>
+            </dependency>
             <dependency>
                 <groupId>org.apache.camel</groupId>
                 <artifactId>camel-langchain4j-web-search</artifactId>