Record Class AguiRequestProcessor.ProcessResult
java.lang.Object
java.lang.Record
io.agentscope.core.agui.processor.AguiRequestProcessor.ProcessResult
- Record Components:
agent- The resolved agent instanceevents- The event stream
- Enclosing class:
AguiRequestProcessor
public static record AguiRequestProcessor.ProcessResult(io.agentscope.core.agent.Agent agent, reactor.core.publisher.Flux<AguiEvent> events)
extends Record
Result of processing an AG-UI request.
Contains the resolved agent (for interrupt handling) and the event stream.
-
Constructor Summary
ConstructorsConstructorDescriptionProcessResult(io.agentscope.core.agent.Agent agent, reactor.core.publisher.Flux<AguiEvent> events) Creates an instance of aProcessResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.agentscope.core.agent.Agentagent()Returns the value of theagentrecord component.final booleanIndicates whether some other object is "equal to" this one.reactor.core.publisher.Flux<AguiEvent> events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
agent
public io.agentscope.core.agent.Agent agent()Returns the value of theagentrecord component.- Returns:
- the value of the
agentrecord component
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-