Package io.jmix.aitools.tool
Class ResolvedAiTool
java.lang.Object
io.jmix.aitools.tool.ResolvedAiTool
Resolved AI tool entry produced by
AiToolRegistry. Represents a single @Tool method
after deduplication and @ToolOverride resolution.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.springframework.ai.tool.ToolCallbackprotected final Stringprotected final Set<Class<? extends JmixAiTool>> protected final Methodprotected final Stringprotected final JmixAiTool -
Constructor Summary
ConstructorsConstructorDescriptionResolvedAiTool(String name, String description, org.springframework.ai.tool.ToolCallback callback, JmixAiTool source, Method method, Set<Class<? extends JmixAiTool>> markers) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ai.tool.ToolCallbackReturns the callback that invokes the tool.Returns the tool description as seen by the model.Set<Class<? extends JmixAiTool>> Marker sub-interfaces ofJmixAiToolthat the source bean implements.Returns the@Tool-annotated method backing this tool.getName()Returns the tool name as seen by the model.Returns the bean that declares the tool method.
-
Field Details
-
name
-
description
-
callback
protected final org.springframework.ai.tool.ToolCallback callback -
source
-
method
-
markers
-
-
Constructor Details
-
ResolvedAiTool
public ResolvedAiTool(String name, String description, org.springframework.ai.tool.ToolCallback callback, JmixAiTool source, Method method, Set<Class<? extends JmixAiTool>> markers)
-
-
Method Details
-
getName
Returns the tool name as seen by the model.- Returns:
- tool name
-
getDescription
Returns the tool description as seen by the model.- Returns:
- tool description
-
getCallback
public org.springframework.ai.tool.ToolCallback getCallback()Returns the callback that invokes the tool.- Returns:
- tool callback
-
getSource
Returns the bean that declares the tool method.- Returns:
- source tool bean
-
getMethod
Returns the@Tool-annotated method backing this tool.- Returns:
- tool method
-
getMarkers
Marker sub-interfaces ofJmixAiToolthat the source bean implements. Used by registry lookups such asAiToolRegistry.findByMarker(Class).- Returns:
- marker sub-interfaces implemented by the source bean
-