Class ToolResponseBuilder

java.lang.Object
org.bsc.langgraph4j.agent.ToolResponseBuilder
Direct Known Subclasses:
LC4jToolResponseBuilder, SpringAIToolResponseBuilder

public class ToolResponseBuilder extends Object
A builder class to construct a Command and update the execution context.

This builder is used within a tool/action to specify the next node to execute (gotoNode(String)) and any state updates (update(Map)). The resulting Command is then placed into the shared context, typically within an AtomicReference, for the graph execution engine to process.