Record Class LLMToolDescription
java.lang.Object
java.lang.Record
org.mule.weave.extension.api.llm.tools.LLMToolDescription
- Record Components:
actionMessage- A customized progress message to show while the tool runsconfirmation- The information that is shown to the user to confirm that the tool will be executed
public record LLMToolDescription(Optional<String> actionMessage, Optional<LLMToolConfirmation> confirmation)
extends Record
Messages shown to the user when calling the tool
-
Constructor Summary
ConstructorsConstructorDescriptionLLMToolDescription(Optional<String> actionMessage, Optional<LLMToolConfirmation> confirmation) Creates an instance of aLLMToolDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionMessagerecord component.Returns the value of theconfirmationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LLMToolDescription
public LLMToolDescription(Optional<String> actionMessage, Optional<LLMToolConfirmation> confirmation) Creates an instance of aLLMToolDescriptionrecord class.- Parameters:
actionMessage- the value for theactionMessagerecord componentconfirmation- the value for theconfirmationrecord component
-
-
Method Details
-
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. -
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. -
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). -
actionMessage
Returns the value of theactionMessagerecord component.- Returns:
- the value of the
actionMessagerecord component
-
confirmation
Returns the value of theconfirmationrecord component.- Returns:
- the value of the
confirmationrecord component
-