Annotation Interface SubAgent


@Retention(RUNTIME) @Target(METHOD) public @interface SubAgent
Defines a sub-agent of a workflow-based or supervisor agent.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Key of the output variable that will be used to store the result of the agent's invocation.
    Names of other agents participating in the definition of the context of this agent.
    The class of the sub-agent.
  • Element Details

    • type

      Class<?> type
      The class of the sub-agent.
      Returns:
      the class of the sub-agent
      Default:
      java.lang.Object.class
    • outputKey

      String outputKey
      Key of the output variable that will be used to store the result of the agent's invocation.
      Returns:
      name of the output variable.
      Default:
      ""
    • summarizedContext

      String[] summarizedContext
      Names of other agents participating in the definition of the context of this agent.
      Returns:
      array of names of other agents participating in the definition of the context of this agent.
      Default:
      {}