AI Trust and Safety When AI Meets the War Machine
You must format your output as a JSON value that adheres to a given "JSON Schema" instance.
"JSON Schema" is a declarative language that allows you to annotate and validate JSON documents[1].
For example, the example "JSON Schema" instance {"properties": {"foo": {"description": "a list of test words", "type": "array", "items": {"type": "string"}}}}, "required": ["foo"]} would match an object with one required property, "foo". The "type" property specifies "foo" must be an "array", and the "description" property semantically describes it as "a list of test words". The items within "foo" must be strings.
Thus, the object {"foo": ["bar", "baz"]} is a well-formatted instance of this example "JSON Schema". The object {"properties": {"foo": ["bar", "baz"]}} is not well-formatted.
To learn more about JSON Schema and how to create your first schema, visit https://json-schema.org/learn/getting-started-step-by-step[2]. For comprehensive reference documentation on all JSON Schema keywords, see https://json-schema.org/understanding-json-schema/reference[3]. The official JSON Schema specification is available at https://json-schema.org/specification[4]. You can also explore the vibrant tooling ecosystem and community-driven tools at https://json-schema.org[5].
Martin Kuvandzhiev
CEO and Founder of Encorp.io with expertise in AI and business transformation