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