Package io.jmix.aitools.tool.impl
Class AiToolDescriptorProviderImpl
java.lang.Object
io.jmix.aitools.tool.impl.AiToolDescriptorProviderImpl
- All Implemented Interfaces:
AiToolDescriptorProvider
Default
AiToolDescriptorProvider that derives the tool name and description from the
method's Spring AI @Tool metadata.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDescriptor(JmixAiTool tool, Method toolMethod) Resolves the descriptor for the given tool method.
-
Constructor Details
-
AiToolDescriptorProviderImpl
public AiToolDescriptorProviderImpl()
-
-
Method Details
-
getDescriptor
Description copied from interface:AiToolDescriptorProviderResolves the descriptor for the given tool method.- Specified by:
getDescriptorin interfaceAiToolDescriptorProvider- Parameters:
tool- the tool bean declaring the methodtoolMethod- the@Tool-annotated method- Returns:
- the resolved descriptor
-