Record Class OllamaFunctionArgument
java.lang.Object
java.lang.Record
me.neurodock.ollama.OllamaFunctionArgument
- Record Components:
argument- The argument namevalue- The argument value
-
Constructor Summary
ConstructorsConstructorDescriptionOllamaFunctionArgument(String argument, Object value) Creates a new instance of OllamaFunctionArgument.
This is used by Ollama to pass arguments to a tool. -
Method Summary
Modifier and TypeMethodDescriptionargument()Gets the argument namestatic Stringstatic Stringstatic StringdeconstructOllamaFunctionArguments(OllamaFunctionArgument... arguments) final booleanIndicates whether some other object is "equal to" this one.<T extends Enum<T>>
Tfinal inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.value()Gets the argument value.
This needs to be cast to the correct type by the tool itself
-
Constructor Details
-
OllamaFunctionArgument
-
-
Method Details
-
argument
-
value
Gets the argument value.
This needs to be cast to the correct type by the tool itself- Returns:
- The argument value
-
getValue
-
deconstructOllamaFunctionArgument
-
deconstructOllamaFunctionArguments
-
deconstructOllamaFunctionArguments
public static String deconstructOllamaFunctionArguments(ArrayList<OllamaFunctionArgument> arguments) -
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).
-