VariableModality
Enumeration of the supported modality types for prompt variables.Import
Definition
Values
| Value | String | Description |
|---|---|---|
Text | 'text' | Plain text content. The most common modality — used for names, instructions, or any string value. |
Image | 'image' | Image content, provided as a URL or base64-encoded data. |
Pdf | 'pdf' | PDF document content, provided as a URL or base64-encoded data. |
Api | 'api' | External API data source. The variable value is fetched from a configured API endpoint at runtime. |
Prompt | 'prompt' | Nested prompt reference. Allows composing prompts by embedding one prompt inside another. |
Usage
Inspecting deployment variables
See Also
- PromptVariable — uses
VariableModalityfor themodalityfield