Google released jsonschema-go, a comprehensive JSON Schema package for Go that provides schema creation, serialization, validation, and inference from Go types. The package addresses the growing need for JSON Schema in LLM infrastructure, where it serves as the standard for defining structured interactions with language models. It features a straightforward Schema struct, validation with resolution, and the ability to generate schemas from Go types using struct tags. The package is already used in Google's MCP Go SDK and aims to become the canonical JSON Schema solution for Google's Go SDKs working with LLMs.
3 Comments
Sort: