Anvia
Core

Schema

Zod schema type used by public core APIs.

Import ZodSchema from @anvia/core.

ZodSchema

type ZodSchema<T = unknown> = z.ZodType<T>;

Purpose: shared type alias for schema inputs accepted by tools, agents, and extractors.

Return behavior: type-only export.

Notable errors: schema parsing errors are thrown by the APIs that use the schema.

The internal JSON schema conversion helper is not a public package export. Use outputSchema(...), createTool(...), or ExtractorBuilder instead of calling conversion code directly.