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
    Name of the output variable that will hold the result of the agent 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
    • outputName

      String outputName
      Name of the output variable that will hold the result of the agent 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:
      {}