Enum Class OutputFormat

java.lang.Object
java.lang.Enum<OutputFormat>
com.alibaba.cloud.ai.graph.agent.tool.multimodal.OutputFormat
All Implemented Interfaces:
Serializable, Comparable<OutputFormat>, Constable

public enum OutputFormat extends Enum<OutputFormat>
Output format for multimodal tool results.

url (default): Returns URL/URI reference. Model-friendly, minimal token usage. Recommended when tool result is sent to the model as context.

base64: Returns inline base64 data URL. Use when the consumer needs inline data (e.g., returnDirect to client). Note: base64 significantly increases token usage when sent to the model; prefer url for agent reasoning loops.

  • Enum Constant Details

    • url

      public static final OutputFormat url
      URL/URI reference. Default, model-friendly.
    • base64

      public static final OutputFormat base64
      Inline base64 data URL. Use for client display; increases token usage when sent to model.
  • Method Details

    • values

      public static OutputFormat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OutputFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      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
    • from

      public static OutputFormat from(String value)