Record Class AguiEvent.ActivitySnapshot

java.lang.Object
java.lang.Record
io.agentscope.core.agui.event.AguiEvent.ActivitySnapshot
All Implemented Interfaces:
AguiEvent
Enclosing interface:
AguiEvent

public static record AguiEvent.ActivitySnapshot(String threadId, String runId, String messageId, String activityType, Map<String,Object> content, Boolean replace, Long timestamp, Object rawEvent) extends Record implements AguiEvent
Event containing a snapshot of activity state. This event provides structured activity data that replaces the entire client-side activity state for the given message.
  • Constructor Details

    • ActivitySnapshot

      public ActivitySnapshot(String threadId, String runId, String messageId, String activityType, Map<String,Object> content, Boolean replace, Long timestamp, Object rawEvent)
      Creates an instance of a ActivitySnapshot record class.
      Parameters:
      threadId - the value for the threadId record component
      runId - the value for the runId record component
      messageId - the value for the messageId record component
      activityType - the value for the activityType record component
      content - the value for the content record component
      replace - the value for the replace record component
      timestamp - the value for the timestamp record component
      rawEvent - the value for the rawEvent record component
    • ActivitySnapshot

      public ActivitySnapshot(String threadId, String runId, String messageId, String activityType, Map<String,Object> content, Boolean replace)
    • ActivitySnapshot

      public ActivitySnapshot(String threadId, String runId, String messageId, String activityType, Map<String,Object> content)
  • Method Details

    • getType

      public AguiEventType getType()
      Description copied from interface: AguiEvent
      Get the event type.
      Specified by:
      getType in interface AguiEvent
      Returns:
      The event type
    • getThreadId

      public String getThreadId()
      Description copied from interface: AguiEvent
      Get the thread ID associated with this event.
      Specified by:
      getThreadId in interface AguiEvent
      Returns:
      The thread ID
    • getRunId

      public String getRunId()
      Description copied from interface: AguiEvent
      Get the run ID associated with this event.
      Specified by:
      getRunId in interface AguiEvent
      Returns:
      The run ID
    • 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.
    • threadId

      public String threadId()
      Returns the value of the threadId record component.
      Returns:
      the value of the threadId record component
    • runId

      public String runId()
      Returns the value of the runId record component.
      Returns:
      the value of the runId record component
    • messageId

      public String messageId()
      Returns the value of the messageId record component.
      Returns:
      the value of the messageId record component
    • activityType

      public String activityType()
      Returns the value of the activityType record component.
      Returns:
      the value of the activityType record component
    • content

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

      public Boolean replace()
      Returns the value of the replace record component.
      Returns:
      the value of the replace record component
    • timestamp

      public Long timestamp()
      Returns the value of the timestamp record component.
      Specified by:
      timestamp in interface AguiEvent
      Returns:
      the value of the timestamp record component
    • rawEvent

      public Object rawEvent()
      Returns the value of the rawEvent record component.
      Specified by:
      rawEvent in interface AguiEvent
      Returns:
      the value of the rawEvent record component