Type guard for Standard JSON Schema V1. Returns true if the value has a ~standard.jsonSchema
interface, indicating it can be converted to a JSON Schema object (e.g. for sending as a tool
definition to an LLM).
isStandardJsonSchema<Input = any, Output = Input>(
schema: unknown
): schema is StandardJSONSchemaV1<Input, Output>| Name | Type | Description |
|---|---|---|
schema* | unknown |