Create a reusable validator from LLM parameters schema.
When validation fails, format the failure with stringify for LLM auto-correction feedback.
LLM function parameters schema
Optional
If true, reject extraneous properties not defined in the schema. Otherwise, extra properties are ignored.
true
Validator function that checks data against the schema
Create a reusable validator from LLM parameters schema.
When validation fails, format the failure with stringify for LLM auto-correction feedback.