Skip to main content
An artifact schema defines the structured output an agent produces. You write the schema once in JSON Schema and attach it to any agent that needs to return data in that shape.

Create an artifact schema

Create a schema by giving it a display name, a type, and the JSON Schema that specifies its fields, types, and validation rules.

Use a schema with an agent

Reference an artifact schema when creating or updating an agent so that its responses conform to the defined structure.
When an agent has an artifact schema attached, the chat response carries an artifacts list alongside the natural language message. Each entry is an artifact the agent produced in that turn, with its content, filename, and mime_type.