Class GraphEngine
java.lang.Object
com.aispect.core.engine.runtime.executor.graph.GraphEngine
- All Implemented Interfaces:
AiGraphEngine
Basic graph engine (Graph Engine)Implementation class, belonging torunning phase (Runtime)Responsibilities.
Realized AiGraphEngine interface, at runtime for directed acyclic graphs (DAG)or state machine node
Workflow scheduling and orchestration. By calling AI Large model to decide the next node to be executed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetermineNextNode(Object currentState, Map<String, ?> availableNodes, AiInvocationContext<?> ctx) According to the current status and AI The inference results determine the next node that should be executed.
-
Constructor Details
-
GraphEngine
public GraphEngine()
-
-
Method Details
-
determineNextNode
public String determineNextNode(Object currentState, Map<String, ?> availableNodes, AiInvocationContext<?> ctx) throws AiAgentExecutionExceptionDescription copied from interface:AiGraphEngineAccording to the current status and AI The inference results determine the next node that should be executed.- Specified by:
determineNextNodein interfaceAiGraphEngine- Parameters:
currentState- The data and state context of the current system or agent operationavailableNodes- The set of registered and available function nodes in the current graphctx- Global method proxy calling context- Returns:
- The determined node ID that will be executed next (IDor name)
- Throws:
AiAgentExecutionException
-