Package org.bsc.langgraph4j.dsl
Class JsonDslGenerator<State extends AgentState>
java.lang.Object
org.bsc.langgraph4j.dsl.JsonDslGenerator<State>
- All Implemented Interfaces:
BiFunction<GraphDefinition.Nodes<State>,,GraphDefinition.Edges<State>, String> GraphDefinition.Reducer<State,String>
public class JsonDslGenerator<State extends AgentState>
extends Object
implements GraphDefinition.Reducer<State,String>
Generates a JSON graph DSL .
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(GraphDefinition.Nodes<State> graphNodes, GraphDefinition.Edges<State> graphEdges) static StringnodeIdFromNodePath(GraphPath nodePath) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
JsonDslGenerator
public JsonDslGenerator()
-
-
Method Details
-
nodeIdFromNodePath
-
apply
public String apply(GraphDefinition.Nodes<State> graphNodes, GraphDefinition.Edges<State> graphEdges) - Specified by:
applyin interfaceBiFunction<GraphDefinition.Nodes<State extends AgentState>,GraphDefinition.Edges<State extends AgentState>, String>
-