Interface AiNodeStatusHook

All Known Subinterfaces:
AiGraphAgentHandler<T,R,F>
All Known Implementing Classes:
AbstractGraphAgent, DynamicWorkflowGraphAgent
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AiNodeStatusHook
Node status detection callback interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    when Node When the status of PENDING become RUNNING,or SUCCESS/FAILED)trigger.
  • Method Details

    • onNodeStatusChange

      void onNodeStatusChange(String nodeName, String status, AiInvocationContext<?> ctx)
      when Node When the status of PENDING become RUNNING,or SUCCESS/FAILED)trigger.
      Parameters:
      nodeName - Node name
      status - The new state of the node
      ctx - current execution context