Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

isStandardSchema.md

25 lines626 Bytes

Function: isStandardSchema()

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

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

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>