Class ToolSpecification
java.lang.Object
dev.langchain4j.agent.tool.ToolSpecification
Describes a tool that language model can execute.
Can be generated automatically from methods annotated with Tool using ToolSpecifications helper.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classToolSpecificationbuilder static inner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolSpecification.Builderbuilder()Creates builder to buildToolSpecification.Returns the description of the tool.booleaninthashCode()name()Returns the name of the tool.Returns the parameters of the tool.toString()
-
Method Details
-
name
-
description
Returns the description of the tool.- Returns:
- the description of the tool.
-
parameters
Returns the parameters of the tool. -
equals
-
hashCode
-
toString
-
toBuilder
-
builder
Creates builder to buildToolSpecification.- Returns:
- created builder
-