Class CamelToolSpecification

java.lang.Object
org.apache.camel.component.langchain4j.chat.tool.CamelToolSpecification

public class CamelToolSpecification extends Object
Holds ToolSpecification needed by langchain4j and the associated Camel Consumer. In this way, a specific route can be invoked by a specific Tool
  • Constructor Details

    • CamelToolSpecification

      public CamelToolSpecification(dev.langchain4j.agent.tool.ToolSpecification toolSpecification, LangChain4jChatConsumer consumer)
  • Method Details

    • getToolSpecification

      public dev.langchain4j.agent.tool.ToolSpecification getToolSpecification()
    • setToolSpecification

      public void setToolSpecification(dev.langchain4j.agent.tool.ToolSpecification toolSpecification)
    • getConsumer

      public LangChain4jChatConsumer getConsumer()
    • setConsumer

      public void setConsumer(LangChain4jChatConsumer consumer)