Enum Class AgentExecutorConfig.OutputMode

java.lang.Object
java.lang.Enum<AgentExecutorConfig.OutputMode>
com.google.adk.a2a.executor.AgentExecutorConfig.OutputMode
All Implemented Interfaces:
Serializable, Comparable<AgentExecutorConfig.OutputMode>, Constable
Enclosing class:
AgentExecutorConfig

public static enum AgentExecutorConfig.OutputMode extends Enum<AgentExecutorConfig.OutputMode>
代理执行器的输出模式。

ARTIFACT_PER_RUN:代理执行器每次运行会返回一个结果文件(即一个“artifact”)。

ARTIFACT_PER_EVENT:代理执行器会为每个事件返回一个结果(即一个“artifact”)。

  • 枚举常量详细信息

  • 方法详细信息(Method Details)

    • values

      public static AgentExecutorConfig.OutputMode[] values()
      返回一个数组,其中包含该枚举类中的所有常量,并按照它们被声明的顺序排列。
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AgentExecutorConfig.OutputMode valueOf(String name)
      返回该类中具有指定名称的枚举常量。 该字符串必须与指定的名称完全匹配。 确切地;准确地 这是一个用于在该类中声明枚举常量的标识符。(不允许使用多余的空白字符。)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null