Record Class ExecutionLimits
java.lang.Object
java.lang.Record
ai.agentscentral.core.session.config.ExecutionLimits
- Record Components:
maxToolCallsPerMessage-maxHandOffsPerMessage-
ExecutionLimits
- Author:
- Rizwan Idrees
-
Constructor Summary
ConstructorsConstructorDescriptionExecutionLimits(int maxToolCallsPerMessage, int maxHandOffsPerMessage) Creates an instance of aExecutionLimitsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutionLimitsfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxHandOffsPerMessagerecord component.intReturns the value of themaxToolCallsPerMessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExecutionLimits
public ExecutionLimits(int maxToolCallsPerMessage, int maxHandOffsPerMessage) Creates an instance of aExecutionLimitsrecord class.- Parameters:
maxToolCallsPerMessage- the value for themaxToolCallsPerMessagerecord componentmaxHandOffsPerMessage- the value for themaxHandOffsPerMessagerecord component
-
-
Method Details
-
defaultExecutionLimits
-
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 with '=='. -
maxToolCallsPerMessage
public int maxToolCallsPerMessage()Returns the value of themaxToolCallsPerMessagerecord component.- Returns:
- the value of the
maxToolCallsPerMessagerecord component
-
maxHandOffsPerMessage
public int maxHandOffsPerMessage()Returns the value of themaxHandOffsPerMessagerecord component.- Returns:
- the value of the
maxHandOffsPerMessagerecord component
-