Documentation
¶
Overview ¶
Package jsonschema contains JSON Schema helpers shared by Genkit provider plugins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnforceStrict ¶
EnforceStrict returns a deep copy of schema with additionalProperties: false set on every object subschema, recursing through "properties" and "items". This is the shape OpenAI and Anthropic require for strict tool schemas.
The input is not mutated. If the schema is not JSON-marshalable, the original map is returned unchanged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.