Record Class ChenileToolCallback.ChenileToolParameter

java.lang.Object
java.lang.Record
org.chenile.mcp.model.ChenileToolCallback.ChenileToolParameter
Enclosing class:
ChenileToolCallback

public static record ChenileToolCallback.ChenileToolParameter(String name, String description, com.fasterxml.jackson.core.type.TypeReference<?> type, String schema, Object fixedValue, HttpBindingType binding) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final HttpBindingType
    The field for the binding record component.
    private final String
    The field for the description record component.
    private final Object
    The field for the fixedValue record component.
    private final String
    The field for the name record component.
    private final String
    The field for the schema record component.
    private final com.fasterxml.jackson.core.type.TypeReference<?>
    The field for the type record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChenileToolParameter(String name, String description, com.fasterxml.jackson.core.type.TypeReference<?> type, String schema, Object fixedValue, HttpBindingType binding)
    Creates an instance of a ChenileToolParameter record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the binding record component.
    Returns the value of the description record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the fixedValue record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the name record component.
    Returns the value of the schema record component.
    final String
    Returns a string representation of this record class.
    com.fasterxml.jackson.core.type.TypeReference<?>
    Returns the value of the type record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • name

      private final String name
      The field for the name record component.
    • description

      private final String description
      The field for the description record component.
    • type

      private final com.fasterxml.jackson.core.type.TypeReference<?> type
      The field for the type record component.
    • schema

      private final String schema
      The field for the schema record component.
    • fixedValue

      private final Object fixedValue
      The field for the fixedValue record component.
    • binding

      private final HttpBindingType binding
      The field for the binding record component.
  • Constructor Details

    • ChenileToolParameter

      public ChenileToolParameter(String name, String description, com.fasterxml.jackson.core.type.TypeReference<?> type, String schema, Object fixedValue, HttpBindingType binding)
      Creates an instance of a ChenileToolParameter record class.
      Parameters:
      name - the value for the name record component
      description - the value for the description record component
      type - the value for the type record component
      schema - the value for the schema record component
      fixedValue - the value for the fixedValue record component
      binding - the value for the binding 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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • type

      public com.fasterxml.jackson.core.type.TypeReference<?> type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • schema

      public String schema()
      Returns the value of the schema record component.
      Returns:
      the value of the schema record component
    • fixedValue

      public Object fixedValue()
      Returns the value of the fixedValue record component.
      Returns:
      the value of the fixedValue record component
    • binding

      public HttpBindingType binding()
      Returns the value of the binding record component.
      Returns:
      the value of the binding record component