Package dev.langchain4j.agent.tool
package dev.langchain4j.agent.tool
-
ClassDescriptionMarks a method as the compensating action for a
Tool.Annotation for parameters of aTool-annotated method.Per-tool setting controlling what happens with a tool's result after execution.Defines the behavior of a tool whendev.langchain4j.service.tool.search.ToolSearchStrategyis configured for an AI Service.Java methods annotated with@Toolare considered tools/functions that language model can execute/call.Represents an LLM-generated request to execute a tool.ToolExecutionRequestbuilder static inner class.If aToolmethod parameter is annotated with this annotation, memory id (parameter annotated with @MemoryId in AI Service) will be injected automatically.Describes a tool that language model can execute.ToolSpecificationbuilder static inner class.Codec for converting between an object representation of aToolSpecificationand a JSON string.Utility methods forToolSpecifications.