Class ExtensionConfig.AiTasks.Task.SelectTags.Builder
-
- All Implemented Interfaces:
public final class ExtensionConfig.AiTasks.Task.SelectTags.BuilderA builder for SelectTags.
-
-
Method Summary
-
-
Method Detail
-
instruction
final ExtensionConfig.AiTasks.Task.SelectTags.Builder instruction(String instruction)
The question or instruction for the AI to analyze the image.
-
instruction
final ExtensionConfig.AiTasks.Task.SelectTags.Builder instruction(JsonField<String> instruction)
Sets Builder.instruction to an arbitrary JSON value.
You should usually call Builder.instruction with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ExtensionConfig.AiTasks.Task.SelectTags.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("select_tags")This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxSelections
final ExtensionConfig.AiTasks.Task.SelectTags.Builder maxSelections(Long maxSelections)
Maximum number of tags to select from the vocabulary.
-
maxSelections
final ExtensionConfig.AiTasks.Task.SelectTags.Builder maxSelections(JsonField<Long> maxSelections)
Sets Builder.maxSelections to an arbitrary JSON value.
You should usually call Builder.maxSelections with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
minSelections
final ExtensionConfig.AiTasks.Task.SelectTags.Builder minSelections(Long minSelections)
Minimum number of tags to select from the vocabulary.
-
minSelections
final ExtensionConfig.AiTasks.Task.SelectTags.Builder minSelections(JsonField<Long> minSelections)
Sets Builder.minSelections to an arbitrary JSON value.
You should usually call Builder.minSelections with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
vocabulary
final ExtensionConfig.AiTasks.Task.SelectTags.Builder vocabulary(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.
-
vocabulary
final ExtensionConfig.AiTasks.Task.SelectTags.Builder vocabulary(JsonField<List<String>> vocabulary)
Sets Builder.vocabulary to an arbitrary JSON value.
You should usually call Builder.vocabulary with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addVocabulary
final ExtensionConfig.AiTasks.Task.SelectTags.Builder addVocabulary(String vocabulary)
Adds a single String to Builder.vocabulary.
-
additionalProperties
final ExtensionConfig.AiTasks.Task.SelectTags.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ExtensionConfig.AiTasks.Task.SelectTags.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ExtensionConfig.AiTasks.Task.SelectTags.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ExtensionConfig.AiTasks.Task.SelectTags.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ExtensionConfig.AiTasks.Task.SelectTags.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ExtensionConfig.AiTasks.Task.SelectTags build()
Returns an immutable instance of SelectTags.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.instruction()
-
-
-
-