Class ExtensionConfig.AiTasks.Task.SelectTags
-
- All Implemented Interfaces:
public final class ExtensionConfig.AiTasks.Task.SelectTags
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classExtensionConfig.AiTasks.Task.SelectTags.BuilderA builder for SelectTags.
-
Method Summary
Modifier and Type Method Description final Stringinstruction()The question or instruction for the AI to analyze the image. final JsonValue_type()Task type that analyzes the image and adds matching tags from a vocabulary. final Optional<Long>maxSelections()Maximum number of tags to select from the vocabulary. final Optional<Long>minSelections()Minimum number of tags to select from the vocabulary. final Optional<List<String>>vocabulary()Array of possible tag values. final JsonField<String>_instruction()Returns the raw JSON value of instruction. final JsonField<Long>_maxSelections()Returns the raw JSON value of maxSelections. final JsonField<Long>_minSelections()Returns the raw JSON value of minSelections. final JsonField<List<String>>_vocabulary()Returns the raw JSON value of vocabulary. final Map<String, JsonValue>_additionalProperties()final ExtensionConfig.AiTasks.Task.SelectTags.BuildertoBuilder()final ExtensionConfig.AiTasks.Task.SelectTagsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ExtensionConfig.AiTasks.Task.SelectTags.Builderbuilder()Returns a mutable builder for constructing an instance of SelectTags. -
-
Method Detail
-
instruction
final String instruction()
The question or instruction for the AI to analyze the image.
-
_type
final JsonValue _type()
Task type that analyzes the image and adds matching tags from a vocabulary.
Expected to always return the following:
JsonValue.from("select_tags")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
maxSelections
final Optional<Long> maxSelections()
Maximum number of tags to select from the vocabulary.
-
minSelections
final Optional<Long> minSelections()
Minimum number of tags to select from the vocabulary.
-
vocabulary
final Optional<List<String>> vocabulary()
Array of possible tag values. The combined length of all strings must not exceed 500 characters, and values cannot include the
%character. When providing large vocabularies (more than 30 items), the AI may not follow the list strictly.
-
_instruction
final JsonField<String> _instruction()
Returns the raw JSON value of instruction.
Unlike instruction, this method doesn't throw if the JSON field has an unexpected type.
-
_maxSelections
final JsonField<Long> _maxSelections()
Returns the raw JSON value of maxSelections.
Unlike maxSelections, this method doesn't throw if the JSON field has an unexpected type.
-
_minSelections
final JsonField<Long> _minSelections()
Returns the raw JSON value of minSelections.
Unlike minSelections, this method doesn't throw if the JSON field has an unexpected type.
-
_vocabulary
final JsonField<List<String>> _vocabulary()
Returns the raw JSON value of vocabulary.
Unlike vocabulary, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ExtensionConfig.AiTasks.Task.SelectTags.Builder toBuilder()
-
validate
final ExtensionConfig.AiTasks.Task.SelectTags validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ExtensionConfig.AiTasks.Task.SelectTags.Builder builder()
Returns a mutable builder for constructing an instance of SelectTags.
The following fields are required:
.instruction()
-
-
-
-