Class AiServiceTool
java.lang.Object
dev.langchain4j.service.tool.AiServiceTool
Represents a tool managed by an AI Service, combining:
ToolSpecification— what is sent to the LLMToolExecutor— what is called when the LLM invokes the tool- Metadata that controls how the AI Service handles this tool (e.g.,
ReturnBehavior)
- Since:
- 1.13.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AiServiceTool.Builderbuilder()booleaninthashCode()booleanDeprecated.name()toString()
-
Method Details
-
name
-
toolSpecification
-
toolExecutor
-
returnBehavior
- Since:
- 1.14.0
-
immediateReturn
Deprecated.usereturnBehavior()instead -
equals
-
hashCode
-
toString
-
toBuilder
-
builder
-
returnBehavior()instead