Shared schema and helpers for text or multimodal user queries.
Summary
Functions
Appends uploaded file references from request options to a text or content-part query.
Returns true when a term is a ReqLLM content part or compatible content-part map.
Returns a Zoi schema that accepts text or a non-empty list of ReqLLM content parts.
Builds a text summary for event metadata without discarding the original query.
Validates that a parsed multimodal query is a non-empty list of content parts.
Types
Functions
Appends uploaded file references from request options to a text or content-part query.
Supports :file_id, :file_ids, :file_reference, and :file_references.
File references can be strings, keyword lists, or maps with :file_id/"file_id"
plus optional :media_type, :filename, :metadata, :title, :context, or
:citations.
Returns an explicit unsupported error when the active ReqLLM version does not
expose ReqLLM.Message.ContentPart.file_id/3.
Returns true when a term is a ReqLLM content part or compatible content-part map.
@spec schema(keyword()) :: Zoi.schema()
Returns a Zoi schema that accepts text or a non-empty list of ReqLLM content parts.
Builds a text summary for event metadata without discarding the original query.
Validates that a parsed multimodal query is a non-empty list of content parts.