Record Class ChenileToolCallback.ChenileToolParameter
java.lang.Object
java.lang.Record
org.chenile.mcp.model.ChenileToolCallback.ChenileToolParameter
- Enclosing class:
ChenileToolCallback
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HttpBindingTypeThe field for thebindingrecord component.private final StringThe field for thedescriptionrecord component.private final ObjectThe field for thefixedValuerecord component.private final StringThe field for thenamerecord component.private final StringThe field for theschemarecord component.private final com.fasterxml.jackson.core.type.TypeReference<?> The field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChenileToolParameter(String name, String description, com.fasterxml.jackson.core.type.TypeReference<?> type, String schema, Object fixedValue, HttpBindingType binding) Creates an instance of aChenileToolParameterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbinding()Returns the value of thebindingrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefixedValuerecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.schema()Returns the value of theschemarecord component.final StringtoString()Returns a string representation of this record class.com.fasterxml.jackson.core.type.TypeReference<?> type()Returns the value of thetyperecord component.
-
Field Details
-
name
The field for thenamerecord component. -
description
The field for thedescriptionrecord component. -
type
private final com.fasterxml.jackson.core.type.TypeReference<?> typeThe field for thetyperecord component. -
schema
The field for theschemarecord component. -
fixedValue
The field for thefixedValuerecord component. -
binding
The field for thebindingrecord 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 aChenileToolParameterrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenttype- the value for thetyperecord componentschema- the value for theschemarecord componentfixedValue- the value for thefixedValuerecord componentbinding- the value for thebindingrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
type
public com.fasterxml.jackson.core.type.TypeReference<?> type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
schema
Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
fixedValue
Returns the value of thefixedValuerecord component.- Returns:
- the value of the
fixedValuerecord component
-
binding
Returns the value of thebindingrecord component.- Returns:
- the value of the
bindingrecord component
-
CHENILE