Package com.aispect.api
Interface AiGraphEngine
- All Known Implementing Classes:
GraphEngine
public interface AiGraphEngine
Basic graph engine (Graph Engine)interface.
Responsible for directed acyclic graph (DAG)Or the workflow of state machine nodes can be scheduled and orchestrated. by combining AI Inference logic and the current data state can dynamically determine the next execution node in complex processing links. This is to achieve multi-agent collaboration (Multi-Agent Collaboration)and core engine components of complex chain calls.
-
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.
-
Method Details
-
determineNextNode
String determineNextNode(Object currentState, Map<String, ?> availableNodes, AiInvocationContext<?> ctx) throws AiAgentExecutionExceptionAccording to the current status and AI The inference results determine the next node that should be executed.- 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
-