Annotation Interface AiNode


Mark a method, field or parameter as a diagram (Graph)Functional node resources in the engine.

@AiNode act as Graph Agent Dynamically allocated underlying resources. These resources are usually independent functional functions in interfaces or classes, registered to the graph engine through specific name identifiers. It is used for dependency search and scheduling organization during the execution of complex workflows.

  • Element Details

    • name

      String name
      Returns:
      A global name or ID that identifies this node resource for Graph Agent Perform dependency search and transfer scheduling.
      Default:
      ""
    • description

      String description
      Returns:
      A detailed description of the functional node resource can be used to assist the model in understanding the role of the resource.
      Default:
      ""
    • modelName

      String modelName
      Returns:
      The node-specific model name. exist Graph Agent In the scenario, this setting has higher priority than Graph Level model settings.
      Default:
      ""
    • belongTo

      String[] belongTo
      Returns:
      Specify which of the current classes the node belongs to Graph Agent。This attribute is required when using multiple annotations on a class.
      Default:
      {}
    • executePhase

      AiExecutePhase executePhase
      Returns:
      Should AI The timing of agent intervention in the life cycle of the target method
      Default:
      ALL