Record Class AiToolRegistryImpl.ToolCandidate

java.lang.Object
java.lang.Record
io.jmix.aitools.tool.impl.AiToolRegistryImpl.ToolCandidate
Record Components:
source - the tool bean declaring the method
method - the @Tool-annotated method
descriptor - the resolved name and description
overrideName - the @ToolOverride target name, or null for a regular tool
Enclosing class:
AiToolRegistryImpl

protected static record AiToolRegistryImpl.ToolCandidate(JmixAiTool source, Method method, AiToolDescriptor descriptor, @Nullable String overrideName) extends Record
Internal candidate gathered during registry build, before override resolution.
  • Constructor Details

    • ToolCandidate

      protected ToolCandidate(JmixAiTool source, Method method, AiToolDescriptor descriptor, @Nullable String overrideName)
      Creates an instance of a ToolCandidate record class.
      Parameters:
      source - the value for the source record component
      method - the value for the method record component
      descriptor - the value for the descriptor record component
      overrideName - the value for the overrideName record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • source

      public JmixAiTool source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • method

      public Method method()
      Returns the value of the method record component.
      Returns:
      the value of the method record component
    • descriptor

      public AiToolDescriptor descriptor()
      Returns the value of the descriptor record component.
      Returns:
      the value of the descriptor record component
    • overrideName

      public @Nullable String overrideName()
      Returns the value of the overrideName record component.
      Returns:
      the value of the overrideName record component