MediaContentBuilder
Base DSL builder for constructing MediaContent instances.
This abstract class provides common functionality for all media content builders:
annotations - Optional metadata annotations
meta - Optional additional metadata
Concrete implementations:
TextContentBuilder - For text content
ImageContentBuilder - For image content (base64-encoded)
AudioContentBuilder - For audio content (base64-encoded)
See also
Inheritors
Functions
Link copied to clipboard
Sets optional annotations for the content.
fun annotations(audience: List<Role>? = null, priority: Double? = null, lastModified: String? = null)
Sets optional annotations for the content with individual parameters.
Link copied to clipboard
Sets optional metadata for the content using a DSL builder.