Enum UploadPurpose
Represents the intended use case assigned to an uploaded file by a provider API. Different purposes can affect validation rules, retention behavior, and where the file can be consumed.
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public enum UploadPurpose
Fields
| Name | Description |
|---|---|
| Assistants | File is intended for assistant-related features. Typically used as assistant input context or attached resources. |
| AssistantsOutput | File is generated as assistant output. Represents provider-produced artifacts from assistant runs. |
| Batch | File is used by batch request workflows. Usually contains queued request payloads for asynchronous execution. |
| BatchOutput | File is produced by a batch workflow as output. Typically includes results or status data for submitted batch jobs. |
| FineTune | File is used as fine-tuning input data. Provider REST value uses a hyphenated token by specification. |
| FineTuneResults | File contains outputs/results from a fine-tuning job. Provider REST value uses a hyphenated token by specification. |
| OCR | File is used for OCR (optical character recognition) workflows. Added for providers exposing OCR file-purpose contracts. |
| Unknown | Purpose is unknown or not specified. Use this as a safe fallback when provider metadata is missing. |
| Vision | File is intended for vision-related processing. Used by APIs that accept image understanding inputs. |