java.lang.Object
com.aispect.core.engine.runtime.executor.graph.GraphEngine
All Implemented Interfaces:
AiGraphEngine

public class GraphEngine extends Object implements 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 Details

    • GraphEngine

      public GraphEngine()
  • Method Details

    • determineNextNode

      public String determineNextNode(Object currentState, Map<String,?> availableNodes, AiInvocationContext<?> ctx) throws AiAgentExecutionException
      Description copied from interface: AiGraphEngine
      According to the current status and AI The inference results determine the next node that should be executed.
      Specified by:
      determineNextNode in interface AiGraphEngine
      Parameters:
      currentState - The data and state context of the current system or agent operation
      availableNodes - The set of registered and available function nodes in the current graph
      ctx - Global method proxy calling context
      Returns:
      The determined node ID that will be executed next (IDor name)
      Throws:
      AiAgentExecutionException