Expand description
Conversion of JSON Schema (draft 7) to the OpenAPI 3.0 schema subset
accepted by the Gemini API (responseSchema, function parameters).
Derived from the Vercel AI SDK (Apache-2.0, Copyright 2023 Vercel, Inc.),
translated from TypeScript to Rust and modified; see NOTICE.
Constants§
- RECURSIVE_
REFERENCE_ PREFIX - Prefix of the functionality of a recursive-reference error.
Functions§
- convert_
json_ schema_ to_ openapi_ schema - Converts
schemato an OpenAPI schema. - is_
recursive_ reference_ error - Whether
errorreports a recursive$ref(callers fall back toparametersJsonSchema).