Skip to content

Initial version

Compare
Choose a tag to compare
@sergeyzenchenko sergeyzenchenko released this 13 Jan 13:26
· 7 commits to main since this release

Initial release of zod-to-vertex-schema, a TypeScript library that converts Zod schemas to Vertex AI/Gemini compatible schemas. This library helps you define your Vertex AI/Gemini function parameters using Zod's powerful schema definition system.

Features

Type Support

  • Basic Types: String (with date/datetime), Number (int/float), Boolean
  • Complex Types: Arrays, Objects, Enums, Unions, Discriminated Unions
  • Modifiers: Optional fields, Nullable fields, Number constraints
  • Metadata: Property ordering preservation, Description preservation