Class AiServiceTool

java.lang.Object
dev.langchain4j.service.tool.AiServiceTool

public class AiServiceTool extends Object
Represents a tool managed by an AI Service, combining:
  • ToolSpecification — what is sent to the LLM
  • ToolExecutor — what is called when the LLM invokes the tool
  • Metadata that controls how the AI Service handles this tool (e.g., immediate return)
Since:
1.13.0