klyn.llm.LLMImage.LLMImage
constructor
public LLMImage(path as Path, mimeType as String)
Description

Creates an image reference; the caller owns the source's lifetime.

Parameters
ParameterDescription
pathRegular local file; symbolic-link components are refused.
mimeTypePNG, JPEG, GIF or WebP media type.
Throws
  • ValueException for an unsupported media type or null path. Example: image = LLMImage(Path("screen.png"), "image/png").