Class StreamingChatGenerator.Builder<State extends AgentState>
java.lang.Object
org.bsc.langgraph4j.spring.ai.generators.StreamingChatGenerator.Builder<State>
- Enclosing class:
StreamingChatGenerator<State extends AgentState>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bsc.async.AsyncGenerator<? extends NodeOutput<State>> build(reactor.core.publisher.Flux<org.springframework.ai.chat.model.ChatResponse> flux) Builds and returns an instance of LLMStreamingGenerator.emitStreamingOutputEnd(boolean emitStreamingOutputEnd) Sets the mapping function for the builder.startingNode(String node) Sets the starting node for the builder.startingState(State state) Sets the starting state for the builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
emitStreamingOutputEnd
-
mapResult
-
startingNode
Sets the starting node for the builder.- Parameters:
node- the starting node- Returns:
- the builder instance
-
startingState
Sets the starting state for the builder.- Parameters:
state- the initial state- Returns:
- the builder instance
-
build
public org.bsc.async.AsyncGenerator<? extends NodeOutput<State>> build(reactor.core.publisher.Flux<org.springframework.ai.chat.model.ChatResponse> flux) Builds and returns an instance of LLMStreamingGenerator.- Returns:
- a new instance of LLMStreamingGenerator
-