Package com.axelor.ai.tool
Record Class ToolExecutor.Call
java.lang.Object
java.lang.Record
com.axelor.ai.tool.ToolExecutor.Call
- Record Components:
toolCallId- the call's id, or null when there is noneanswer-trueto carry on,falseto decline, null when not answering onequestion- the id of the question answered, from the server's record of what it asked; null when not answering one
- Enclosing interface:
ToolExecutor
public static record ToolExecutor.Call(String toolCallId, Boolean answer, String question)
extends Record
One call of a tool: its id in the conversation and, when it carries on after a confirmation it
asked for (
ToolResult.PendingConfirmation), the user's answer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanswer()Returns the value of theanswerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.question()Returns the value of thequestionrecord component.Returns the value of thetoolCallIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Call
Creates an instance of aCallrecord class.- Parameters:
toolCallId- the value for thetoolCallIdrecord componentanswer- the value for theanswerrecord componentquestion- the value for thequestionrecord 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). -
toolCallId
Returns the value of thetoolCallIdrecord component.- Returns:
- the value of the
toolCallIdrecord component
-
answer
Returns the value of theanswerrecord component.- Returns:
- the value of the
answerrecord component
-
question
Returns the value of thequestionrecord component.- Returns:
- the value of the
questionrecord component
-