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

JiriOndrusek 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 0e0203ee02e9 CAMEL-24270: Make AiToolSpecToLangChain4j public for 
reuse by downstream projects
0e0203ee02e9 is described below

commit 0e0203ee02e9b818073cbda31151680d78b9de63
Author: Jiri Ondrusek <[email protected]>
AuthorDate: Mon Jul 27 14:13:43 2026 +0200

    CAMEL-24270: Make AiToolSpecToLangChain4j public for reuse by downstream 
projects
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
 .../component/langchain4j/agent/AiToolSpecToLangChain4j.java      | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-ai/camel-langchain4j-agent/src/main/java/org/apache/camel/component/langchain4j/agent/AiToolSpecToLangChain4j.java
 
b/components/camel-ai/camel-langchain4j-agent/src/main/java/org/apache/camel/component/langchain4j/agent/AiToolSpecToLangChain4j.java
index 163d41eeb588..ab398899c72e 100644
--- 
a/components/camel-ai/camel-langchain4j-agent/src/main/java/org/apache/camel/component/langchain4j/agent/AiToolSpecToLangChain4j.java
+++ 
b/components/camel-ai/camel-langchain4j-agent/src/main/java/org/apache/camel/component/langchain4j/agent/AiToolSpecToLangChain4j.java
@@ -32,12 +32,16 @@ import 
dev.langchain4j.model.chat.request.json.JsonStringSchema;
 import org.apache.camel.component.ai.tool.AiToolParameterHelper;
 import org.apache.camel.component.ai.tool.AiToolSpec;
 
-final class AiToolSpecToLangChain4j {
+/**
+ * Converts {@link AiToolSpec} instances to langchain4j {@link 
ToolSpecification} objects, mapping Camel parameter
+ * definitions to the corresponding JSON Schema types.
+ */
+public final class AiToolSpecToLangChain4j {
 
     private AiToolSpecToLangChain4j() {
     }
 
-    static ToolSpecification toToolSpecification(AiToolSpec spec) {
+    public static ToolSpecification toToolSpecification(AiToolSpec spec) {
         ToolSpecification.Builder builder = ToolSpecification.builder()
                 .name(spec.getName())
                 .description(spec.getDescription());

Reply via email to