Skip to main content

Module gemini_schema

Module gemini_schema 

Source
Expand description

Explicit Gemini OpenAPI-subset / JSON Schema mappings. This is a schema conversion, not a guarantee that a particular model enforces every keyword. Callers must separately check the selected endpoint’s supported schema subset.

Functions§

from_json
Convert the exact typed Gemini subset. Unknown validation keywords fail; callers can choose an endpoint’s raw JSON Schema field where supported.
to_json
Read only declared schema fields. Formal default and example JSON values retain all their members, including members named rest.