FilePurpose Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. openai. models. FilePurpose
- com.
- com.
public final class FilePurpose
extends ExpandableStringEnum<FilePurpose>
The possible values denoting the intended usage of a file.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
File |
ASSISTANTS
Indicates a file is used as input to assistants. |
static final
File |
ASSISTANTS_OUTPUT
Indicates a file is used as output by assistants. |
static final
File |
BATCH
Indicates a file is used as input to . |
static final
File |
BATCH_OUTPUT
Indicates a file is used as output by a vector store batch operation. |
static final
File |
FINE_TUNE
Indicates a file is used for fine tuning input. |
static final
File |
FINE_TUNE_RESULTS
Indicates a file is used for fine tuning results. |
static final
File |
VISION
Indicates a file is used as input to a vision operation. |
Constructor Summary
Constructor | Description |
---|---|
FilePurpose() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of File |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
File |
fromString(String name)
Creates or finds a File |
static
Collection<File |
values()
Gets known File |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
ASSISTANTS
public static final FilePurpose ASSISTANTS
Indicates a file is used as input to assistants.
ASSISTANTS_OUTPUT
public static final FilePurpose ASSISTANTS_OUTPUT
Indicates a file is used as output by assistants.
BATCH
public static final FilePurpose BATCH
Indicates a file is used as input to .
BATCH_OUTPUT
public static final FilePurpose BATCH_OUTPUT
Indicates a file is used as output by a vector store batch operation.
FINE_TUNE
public static final FilePurpose FINE_TUNE
Indicates a file is used for fine tuning input.
FINE_TUNE_RESULTS
public static final FilePurpose FINE_TUNE_RESULTS
Indicates a file is used for fine tuning results.
VISION
public static final FilePurpose VISION
Indicates a file is used as input to a vision operation.
Constructor Details
FilePurpose
@Deprecated
public FilePurpose()
Deprecated
Creates a new instance of FilePurpose value.
Method Details
fromString
public static FilePurpose fromString(String name)
Creates or finds a FilePurpose from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known FilePurpose values.
Returns:
Applies to
Azure SDK for Java