Class ResolvedAiTool

java.lang.Object
io.jmix.aitools.tool.ResolvedAiTool

public class ResolvedAiTool extends Object
Resolved AI tool entry produced by AiToolRegistry. Represents a single @Tool method after deduplication and @ToolOverride resolution.
  • Field Details

    • name

      protected final String name
    • description

      protected final String description
    • callback

      protected final org.springframework.ai.tool.ToolCallback callback
    • source

      protected final JmixAiTool source
    • method

      protected final Method method
    • markers

      protected final Set<Class<? extends JmixAiTool>> markers
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Returns the tool name as seen by the model.
      Returns:
      tool name
    • getDescription

      public String 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

      public JmixAiTool getSource()
      Returns the bean that declares the tool method.
      Returns:
      source tool bean
    • getMethod

      public Method getMethod()
      Returns the @Tool-annotated method backing this tool.
      Returns:
      tool method
    • getMarkers

      public Set<Class<? extends JmixAiTool>> getMarkers()
      Marker sub-interfaces of JmixAiTool that the source bean implements. Used by registry lookups such as AiToolRegistry.findByMarker(Class).
      Returns:
      marker sub-interfaces implemented by the source bean