Package-level declarations

Types

Link copied to clipboard
data class DataUrl(val mediaType: String, val parameters: Map<String, List<String>>, val base64: Boolean, val data: String)

Parts of the data URL.

Link copied to clipboard
data class MediaContent(val parts: List<MediaContentPart>)

Represents a collection of media content parts.

Link copied to clipboard

Extracts media content (e.g., images, audio, files) from a JSON array (likely, requests to/responses of LLM-specific APIs, e.g., OpenAI APIs) and attaches it to the span under certain keys described by UploadableMediaContentAttributeKeys.

Link copied to clipboard

Implementation of a media content extractor.

Link copied to clipboard
data class MediaContentPart(val resource: Resource)

Represents a part of media content, consisting of a resource and an optional content type.

Link copied to clipboard
sealed class Resource

Represents a sealed hierarchy of different resource types used to represent media content.

Link copied to clipboard

Supported media content types for uploadable media attributes.

Link copied to clipboard

OpenTelemetry attribute key generator for uploadable media content metadata.

Functions

Link copied to clipboard

Tries to parse the given string as URL.