Package io.agentscope.core.agui.event
Record Class AguiEvent.ReasoningMessageChunk
java.lang.Object
java.lang.Record
io.agentscope.core.agui.event.AguiEvent.ReasoningMessageChunk
- All Implemented Interfaces:
AguiEvent
- Enclosing interface:
AguiEvent
public static record AguiEvent.ReasoningMessageChunk(String threadId, String runId, String messageId, String delta)
extends Record
implements AguiEvent
A convenience event to auto start/close reasoning messages.
According to AG-UI Reasoning draft specification.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.agentscope.core.agui.event.AguiEvent
AguiEvent.Custom, AguiEvent.JsonPatchOperation, AguiEvent.Raw, AguiEvent.ReasoningEnd, AguiEvent.ReasoningMessageChunk, AguiEvent.ReasoningMessageContent, AguiEvent.ReasoningMessageEnd, AguiEvent.ReasoningMessageStart, AguiEvent.ReasoningStart, AguiEvent.RunFinished, AguiEvent.RunStarted, AguiEvent.StateDelta, AguiEvent.StateSnapshot, AguiEvent.TextMessageContent, AguiEvent.TextMessageEnd, AguiEvent.TextMessageStart, AguiEvent.ToolCallArgs, AguiEvent.ToolCallEnd, AguiEvent.ToolCallResult, AguiEvent.ToolCallStart -
Constructor Summary
ConstructorsConstructorDescriptionReasoningMessageChunk(String threadId, String runId, String messageId, String delta) Creates an instance of aReasoningMessageChunkrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondelta()Returns the value of thedeltarecord component.final booleanIndicates whether some other object is "equal to" this one.getRunId()Get the run ID associated with this event.Get the thread ID associated with this event.getType()Get the event type.final inthashCode()Returns a hash code value for this object.Returns the value of themessageIdrecord component.runId()Returns the value of therunIdrecord component.threadId()Returns the value of thethreadIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReasoningMessageChunk
Creates an instance of aReasoningMessageChunkrecord class.- Parameters:
threadId- the value for thethreadIdrecord componentrunId- the value for therunIdrecord componentmessageId- the value for themessageIdrecord componentdelta- the value for thedeltarecord component
-
-
Method Details
-
getType
Description copied from interface:AguiEventGet the event type. -
getThreadId
Description copied from interface:AguiEventGet the thread ID associated with this event.- Specified by:
getThreadIdin interfaceAguiEvent- Returns:
- The thread ID
-
getRunId
Description copied from interface:AguiEventGet the run ID associated with this event. -
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). -
threadId
Returns the value of thethreadIdrecord component.- Returns:
- the value of the
threadIdrecord component
-
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
delta
Returns the value of thedeltarecord component.- Returns:
- the value of the
deltarecord component
-