Package com.axelor.ai.chat
Record Class UIPart.Tool.ToolApproval
java.lang.Object
java.lang.Record
com.axelor.ai.chat.UIPart.Tool.ToolApproval
- Enclosing class:
UIPart.Tool
-
Constructor Summary
ConstructorsConstructorDescriptionToolApproval(String id, Boolean approved, Object descriptor, String requestReason, String reason, Boolean isAutomatic, String signature) Creates an instance of aToolApprovalrecord class.ToolApproval(String id, Boolean approved, String reason) The fields this server sets; the rest are the SDK's, echoed back untouched. -
Method Summary
Modifier and TypeMethodDescriptionapproved()Returns the value of theapprovedrecord component.Returns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theisAutomaticrecord component.reason()Returns the value of thereasonrecord component.Returns the value of therequestReasonrecord component.Returns the value of thesignaturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ToolApproval
The fields this server sets; the rest are the SDK's, echoed back untouched. -
ToolApproval
public ToolApproval(String id, Boolean approved, Object descriptor, String requestReason, String reason, Boolean isAutomatic, String signature) Creates an instance of aToolApprovalrecord class.- Parameters:
id- the value for theidrecord componentapproved- the value for theapprovedrecord componentdescriptor- the value for thedescriptorrecord componentrequestReason- the value for therequestReasonrecord componentreason- the value for thereasonrecord componentisAutomatic- the value for theisAutomaticrecord componentsignature- the value for thesignaturerecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
approved
Returns the value of theapprovedrecord component.- Returns:
- the value of the
approvedrecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
requestReason
Returns the value of therequestReasonrecord component.- Returns:
- the value of the
requestReasonrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
isAutomatic
Returns the value of theisAutomaticrecord component.- Returns:
- the value of the
isAutomaticrecord component
-
signature
Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-