Package ai.agentscentral.core.tool
Record Class ToolCallExecutionError
java.lang.Object
java.lang.Record
ai.agentscentral.core.tool.ToolCallExecutionError
- Record Components:
toolCallId-toolName-error-
- All Implemented Interfaces:
Error
public record ToolCallExecutionError(String toolCallId, String toolName, String error)
extends Record
implements Error
ToolCallExecutionError
- Author:
- Rizwan Idrees
-
Constructor Summary
ConstructorsConstructorDescriptionToolCallExecutionError(String toolCallId, String toolName, String error) Creates an instance of aToolCallExecutionErrorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thetoolCallIdrecord component.toolName()Returns the value of thetoolNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ToolCallExecutionError
Creates an instance of aToolCallExecutionErrorrecord class.- Parameters:
toolCallId- the value for thetoolCallIdrecord componenttoolName- the value for thetoolNamerecord componenterror- the value for theerrorrecord 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
-
toolName
Returns the value of thetoolNamerecord component.- Returns:
- the value of the
toolNamerecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-