ADK for TypeScript: API Reference
    Preparing search index...

    Function toJsonSchema

    • Renders a SchemaLike as a plain JSON Schema object.

      Zod v3 and v4 schemas are converted with their respective serializers. A genai Schema is translated out of the genai/OpenAPI dialect (uppercase type names, stringified bounds, nullable) so that every schema form produces the same JSON Schema shape for a consumer to read.

      Parameters

      Returns Record<string, unknown>