Package dev.langchain4j.agent.tool
Class ToolSpecifications
java.lang.Object
dev.langchain4j.agent.tool.ToolSpecifications
Utility methods for
ToolSpecification
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic ToolSpecification
toolSpecificationFrom
(Method method) Get theToolSpecification
for the givenTool
method.static List
<ToolSpecification> toolSpecificationsFrom
(Object objectWithTools) Get theToolSpecification
s for eachTool
method of the given object.
-
Method Details
-
toolSpecificationsFrom
Get theToolSpecification
s for eachTool
method of the given object.- Parameters:
objectWithTools
- the object.- Returns:
- the
ToolSpecification
s.
-
toolSpecificationFrom
Get theToolSpecification
for the givenTool
method.- Parameters:
method
- the method.- Returns:
- the
ToolSpecification
.
-