Prompts
Object Schema
Define structured output using JSON Schema
AgentMark supports structured output through JSON Schema. This allows you to define the exact shape of the data you want the model to return.
Basic Usage
Define the schema in your model settings:
Returns:
Complex Schemas
You can define nested objects and arrays:
Returns:
Schema Types
Supported JSON Schema types:
string
: Text valuesnumber
: Numeric valuesboolean
: True/false valuesarray
: Lists of itemsobject
: Nested structuresnull
: Null values
Best Practices
- Keep schemas as simple as possible
- Use clear property names and descriptions
- Specify required fields explicitly
- Test with various input scenarios
- Include type validations where needed
Have Questions?
We’re here to help! Choose the best way to reach us:
Join our Discord community for quick answers and discussions
Email us at hello@puzzlet.ai for support
Schedule an Enterprise Demo to learn about our business solutions
Was this page helpful?