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 Details

  • Method Details

    • type

      public MessagePartType type()
      Returns the value of the type record component.
      Specified by:
      type in interface MessagePart
      Returns:
      the value of the type record component
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • toolCallId

      public String toolCallId()
      Returns the value of the toolCallId record component.
      Returns:
      the value of the toolCallId record component
    • interruptName

      public String interruptName()
      Returns the value of the interruptName record component.
      Returns:
      the value of the interruptName record component
    • renderer

      public String renderer()
      Returns the value of the renderer record component.
      Returns:
      the value of the renderer record component
    • toolCallParameters

      public Map<String,Object> toolCallParameters()
      Returns the value of the toolCallParameters record component.
      Returns:
      the value of the toolCallParameters record component
    • interruptParameters

      public List<ToolInterruptParameter> interruptParameters()
      Returns the value of the interruptParameters record component.
      Returns:
      the value of the interruptParameters record component