Enum Class OutputFormat
- All Implemented Interfaces:
Serializable,Comparable<OutputFormat>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputFormatstatic OutputFormatReturns the enum constant of this class with the specified name.static OutputFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
url
URL/URI reference. Default, model-friendly. -
base64
Inline base64 data URL. Use for client display; increases token usage when sent to model.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
from
-