File content data.
Either base64-encoded file data or a reference ID to a previously uploaded file.
Type discriminator for identifying the specific content modality.
Provides type-safe discrimination between different content types such as "text", "audio", "image", and "file". This discriminator enables proper type narrowing and ensures that each content type is processed according to its specific characteristics and requirements.
The type field is essential for the multimodal content processing pipeline, allowing the system to route different content types to appropriate handlers while maintaining type safety throughout the conversation flow.
User message content for file uploads.
Handles file attachments in user messages, supporting both direct file data and file references. Used when users need to share documents, specifications, code files, or other resources as part of their development requirements.
Author
Samchon