Image data wrapper for visual side-information in GEPA.OptimizeAnything.
Include %GEPA.Image{} values anywhere inside evaluator side-info or
reflective-dataset records. GEPA.Proposer.InstructionProposal detects these
values, replaces them with [IMAGE-N] placeholders in the textual prompt, and
appends OpenAI-compatible multimodal content parts to the reflection LLM call.
Provide exactly one of :url, :path, or :base64_data.
Summary
Functions
Create an image wrapper from raw base64 bytes and a MIME type.
Create an image wrapper from a local path.
Create an image wrapper from a URL or data URI.
Return the MIME type for a path-backed image, defaulting to image/png.
Create an image wrapper from keyword or map options.
Convert to an OpenAI-compatible multimodal image_url content part.
Validate an image wrapper, raising on invalid source combinations.
Types
Functions
Create an image wrapper from raw base64 bytes and a MIME type.
Create an image wrapper from a local path.
Create an image wrapper from a URL or data URI.
Return the MIME type for a path-backed image, defaulting to image/png.
Create an image wrapper from keyword or map options.
Convert to an OpenAI-compatible multimodal image_url content part.
Validate an image wrapper, raising on invalid source combinations.