Class CamelToolSpecification
java.lang.Object
org.apache.camel.component.langchain4j.chat.tool.CamelToolSpecification
Holds ToolSpecification needed by langchain4j and the associated Camel Consumer. In this way, a specific route can be
invoked by a specific Tool
-
Constructor Summary
ConstructorsConstructorDescriptionCamelToolSpecification
(dev.langchain4j.agent.tool.ToolSpecification toolSpecification, LangChain4jChatConsumer consumer) -
Method Summary
Modifier and TypeMethodDescriptiondev.langchain4j.agent.tool.ToolSpecification
void
setConsumer
(LangChain4jChatConsumer consumer) void
setToolSpecification
(dev.langchain4j.agent.tool.ToolSpecification toolSpecification)
-
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
-
setConsumer
-