Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Class References
Function References
Interface References
Type Alias References
Variable References

isStandardSchema

Function: isStandardSchema()

ts
function isStandardSchema(schema): schema is StandardSchemaV1<unknown, unknown>;
function isStandardSchema(schema): schema is StandardSchemaV1<unknown, unknown>;

Defined in: packages/ai/src/activities/chat/tools/schema-converter.ts:72

Check if a value is a Standard Schema compliant schema (for validation). Standard Schema compliant libraries implement the '~standard' property with a validate function.

Parameters

schema

unknown

Returns

schema is StandardSchemaV1<unknown, unknown>