Record Class SubCompiledGraphNodeAction<State extends AgentState>

java.lang.Object
java.lang.Record
org.bsc.langgraph4j.action.SubCompiledGraphNodeAction<State>
Type Parameters:
State - The type of state the subgraph operates on, which must extend AgentState.
Record Components:
subGraph - sub graph instance
All Implemented Interfaces:
BiFunction<State,RunnableConfig,CompletableFuture<Map<String,Object>>>, AsyncNodeActionWithConfig<State>

public record SubCompiledGraphNodeAction<State extends AgentState>(String nodeId, CompileConfig parentCompileConfig, CompiledGraph<State extends AgentState> subGraph) extends Record implements AsyncNodeActionWithConfig<State>
Represents an action to perform a subgraph on a given state with a specific configuration.

This record encapsulates the behavior required to execute a compiled graph using a provided state. It implements the AsyncNodeActionWithConfig interface, ensuring that the execution is handled asynchronously with the ability to configure settings.

See Also: