feat: Add support for json schema in run command: opencode run --json <json schema> #9319
feat: Add support for json schema in run command: opencode run --json <json schema> #9319richardanaya wants to merge 1 commit intoanomalyco:devfrom
opencode run --json <json schema> #9319Conversation
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate Found:feat: support claude agent SDK-style structured outputs in the OpenCode SDK (#8161) This PR appears related as it deals with structured outputs/schema support, which is similar in scope to the JSON schema constraint feature in PR #9319. Both are about constraining model output to specific formats/schemas. Possibly Related (Different Scope): feat: add JSON Schema as source of truth for type definitions (#6987) This PR also mentions JSON Schema but appears to be focused on using JSON Schema for type definitions rather than runtime output constraints. |
opencode run opencode run --json <json schema>
opencode run --json <json schema> opencode run --json <json schema>
opencode run --json <json schema> opencode run --json <json schema>
opencode run --json <json schema> opencode run --json <json schema>
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
Fixes #9320
What does this PR do?
Allows you to constrain run commands output to a specific JSON schema.
How did you verify your code works?