Annotation Interface AiUnitAgent


Mark a method or class as an independent unit AI proxy method (Unit Agent/Skill)。

Unit Agent core responsibility is to collaborate Java program, and maintain existing design and code logic. It does not destroy the overall process structure, but only performs intelligent collaborative enhancement during the execution of local methods. The framework will automatically intercept the method modified by this annotation and forward the context to the specific AiUnitAgentHandler deal with.

  • Element Details

    • value

      Class<? extends AiUnitAgentHandler<?,?>> value
      Returns:
      The specific agent class responsible for handling this execution unit (such as a custom AbstractUnitAgent subclass).
    • description

      String description
      Returns:
      Agent Functional description of the node, available as prompt part for larger models to understand this Skill role
      Default:
      ""
    • fallback

      String fallback
      Returns:
      Fallback The name of the downgrade handling method
      Default:
      ""
    • executePhase

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

      String modelName
      Returns:
      The model name to be used first. If it is empty, the model name in the configuration file will be used. default model
      Default:
      ""