Quick Start
1
Simple Usage
2
With Configuration
Commands
Generate Structured Output
Schema File Format
Create a JSON schema file:Options
Examples
Data Extraction
Classification
Sentiment Analysis
sentiment.json:
Complex Nested Output
order.json:
Using Different Providers
Piping and Scripting
Pipe Input
Use in Scripts
JSON Lines Output
Error Handling
Environment Variables
Exit Codes
Best Practices
Guidelines
Guidelines
- Use schema files for complex schemas
- Set low temperature (0.1) for consistent output
- Validate output with
jqor similar tools - Handle errors in scripts
- Use
--jsonflag for machine-readable output
Related
Structured Output
Structured output SDK
Agent CLI
Agent commands

