opencode/packages
Kyle Mistele 32ef11da1f feat: add structured output (JSON schema) support
Add outputFormat option to session.prompt() for requesting structured JSON
output. When type is 'json_schema', injects a StructuredOutput tool that
validates model output against the provided schema.

- Add OutputFormat schema types (text, json_schema) to message-v2.ts
- Add structured_output field to AssistantMessage
- Add StructuredOutputError for validation failures
- Implement createStructuredOutputTool helper in prompt.ts
- Integrate structured output into agent loop with retry support
- Regenerate OpenAPI spec with new types
- Add unit tests for schema validation
2026-01-12 20:09:51 -08:00
..
app release: v1.0.193 2025-12-23 15:16:20 +00:00
console zen: sync 2025-12-23 20:36:55 -05:00
desktop release: v1.0.193 2025-12-23 15:16:20 +00:00
docs ci 2025-12-07 21:51:22 -05:00
enterprise zen: sync 2025-12-23 20:36:55 -05:00
extensions/zed release: v1.0.193 2025-12-23 15:16:20 +00:00
function zen: sync 2025-12-23 20:36:55 -05:00
identity chore: identity cleanup, vscode ext images 2025-12-08 06:47:57 -06:00
opencode feat: add structured output (JSON schema) support 2026-01-12 20:09:51 -08:00
plugin chore: generate 2025-12-23 15:39:47 +00:00
script ci 2025-12-10 02:57:39 +00:00
sdk feat: add structured output (JSON schema) support 2026-01-12 20:09:51 -08:00
slack release: v1.0.193 2025-12-23 15:16:20 +00:00
ui "Did you know?" start screen tips (#5982) 2025-12-23 13:28:33 -06:00
util release: v1.0.193 2025-12-23 15:16:20 +00:00
web docs: tweak lsp.mdx 2025-12-23 22:38:17 -06:00