LLMImage
classin packageklyn.llm
public class LLMImage
LLMImage

A local image loaded only when a provider serializes a request. No remote URL is fetched. At most 20 MiB are accepted per image. Example: message.images.add(LLMImage(Path("screen.png"), "image/png")).

Properties
Modifier and Type Member Description
public readonly property mimeType
mimeType as String
No summary.
public readonly property path
path as Path
No summary.
Constructors
Modifier and Type Member Description
public LLMImage
LLMImage(path as Path, mimeType as String)
Creates an image reference; the caller owns the source's lifetime.
Methods
Modifier and Type Member Description
public dataUrl
dataUrl() as String
Encodes bytes without interpreting them as text.