Package dev.langchain4j.agent.tool
package dev.langchain4j.agent.tool
-
ClassDescriptionParameter of a ToolJava methods annotated with
@Tool
are considered tools/functions that language model can execute/call.Represents an LLM-generated request to execute a tool.ToolExecutionRequest
builder static inner class.If aTool
method 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.ToolSpecification
builder static inner class.Utility methods forToolSpecification
s.