Class AGUINodeOutput<State extends AgentState>

java.lang.Object
org.bsc.langgraph4j.NodeOutput<State>
org.bsc.langgraph4j.agui.sdk.AGUINodeOutput<State>
Type Parameters:
State - the type of the agent state carried by this output
All Implemented Interfaces:
HasMetadata

public class AGUINodeOutput<State extends AgentState> extends NodeOutput<State>
Custom LangGraph4j NodeOutput implementation that acts as a bridge between the LangGraph4j output streaming and the AG-UI event model.

Besides the standard node/state information carried by NodeOutput, an AGUINodeOutput also carries a list of AG-UI Events that a node execution wants to emit (e.g. text message events, step lifecycle events). Consumers of the graph's streaming output (see AGUIAgentBase.onNextEvents(com.agui.community.core.agent.RunAgentInput, NodeOutput)) can recognize instances of this class and forward its events() directly to the AG-UI subscriber.