Record Class ToolInterruptPart
java.lang.Object
java.lang.Record
ai.agentscentral.core.session.message.ToolInterruptPart
- Record Components:
type-toolCallId-interruptName-renderer-toolCallParameters-interruptParameters-
- All Implemented Interfaces:
MessagePart
public record ToolInterruptPart(MessagePartType type, String toolCallId, String interruptName, String renderer, Map<String,Object> toolCallParameters, List<ToolInterruptParameter> interruptParameters)
extends Record
implements MessagePart
ToolInterruptPart
- Author:
- Rizwan Idrees
-
Constructor Summary
ConstructorsConstructorDescriptionToolInterruptPart(MessagePartType type, String toolCallId, String interruptName, String renderer, Map<String, Object> toolCallParameters, List<ToolInterruptParameter> interruptParameters) Creates an instance of aToolInterruptPartrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinterruptNamerecord component.Returns the value of theinterruptParametersrecord component.renderer()Returns the value of therendererrecord component.Returns the value of thetoolCallIdrecord component.Returns the value of thetoolCallParametersrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ToolInterruptPart
public ToolInterruptPart(MessagePartType type, String toolCallId, String interruptName, String renderer, Map<String, Object> toolCallParameters, List<ToolInterruptParameter> interruptParameters) Creates an instance of aToolInterruptPartrecord class.- Parameters:
type- the value for thetyperecord componenttoolCallId- the value for thetoolCallIdrecord componentinterruptName- the value for theinterruptNamerecord componentrenderer- the value for therendererrecord componenttoolCallParameters- the value for thetoolCallParametersrecord componentinterruptParameters- the value for theinterruptParametersrecord component
-
-
Method Details
-
type
Returns the value of thetyperecord component.- Specified by:
typein interfaceMessagePart- Returns:
- the value of the
typerecord component
-
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
-
interruptName
Returns the value of theinterruptNamerecord component.- Returns:
- the value of the
interruptNamerecord component
-
renderer
Returns the value of therendererrecord component.- Returns:
- the value of the
rendererrecord component
-
toolCallParameters
Returns the value of thetoolCallParametersrecord component.- Returns:
- the value of the
toolCallParametersrecord component
-
interruptParameters
Returns the value of theinterruptParametersrecord component.- Returns:
- the value of the
interruptParametersrecord component
-