Package io.agentscope.core.agui.event
Record Class AguiEvent.Interrupt
java.lang.Object
java.lang.Record
io.agentscope.core.agui.event.AguiEvent.Interrupt
- Enclosing interface:
- AguiEvent
public static record AguiEvent.Interrupt(String id, String reason, String message, String toolCallId, Map<String,Object> responseSchema, String expiresAt, Map<String,Object> metadata)
extends Record
Represents an interrupt that occurred during agent execution, requiring
user input to resolve before the agent can continue.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.message()Returns the value of themessagerecord component.metadata()Returns the value of themetadatarecord component.reason()Returns the value of thereasonrecord component.Returns the value of theresponseSchemarecord component.Returns the value of thetoolCallIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Interrupt
public Interrupt(String id, String reason, String message, String toolCallId, Map<String, Object> responseSchema, String expiresAt, Map<String, Object> metadata) Creates an instance of aInterruptrecord class.- Parameters:
id- the value for theidrecord componentreason- the value for thereasonrecord componentmessage- the value for themessagerecord componenttoolCallId- the value for thetoolCallIdrecord componentresponseSchema- the value for theresponseSchemarecord componentexpiresAt- the value for theexpiresAtrecord componentmetadata- the value for themetadatarecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
toolCallId
Returns the value of thetoolCallIdrecord component.- Returns:
- the value of the
toolCallIdrecord component
-
responseSchema
Returns the value of theresponseSchemarecord component.- Returns:
- the value of the
responseSchemarecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-