/** * SchemaUtils — Shared Schema Inspection & Validation Utilities * * Extracted helpers for inspecting Zod schema metadata and * asserting JSON Schema field compatibility across actions. * * Used by: SchemaGenerator, DescriptionGenerator, ToonDescriptionGenerator. * * Pure-function module: no state, no side effects. */ import { type ZodObject, type ZodRawShape } from 'zod'; import { type InternalAction } from '../types.js'; /** * Check if a value is a Zod schema (has `_def` property). * * Used by `defineTool` and `definePrompt` to distinguish * Zod schemas from JSON descriptor objects. */ export declare function isZodSchema(value: unknown): value is ZodObject; /** * Get the list of required field names from an action's Zod schema. * Returns an empty array if the action has no schema. */ export declare function getActionRequiredFields(action: InternalAction): string[]; export declare function assertFieldCompatibility(existing: object, incoming: object, field: string, actionKey: string): object | undefined; //# sourceMappingURL=SchemaUtils.d.ts.map