opencode
opencode copied to clipboard
feat: Add support for json schema in run command: `opencode run --json <json schema>`
Fixes #9320
What does this PR do?
Allows you to constrain run commands output to a specific JSON schema.
- Inspired by llama.cpp's functionality
- Utilizes passed in model
- Throws error if used with "--format json"