Files
anomalyco_opencode/packages/opencode/test
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
..
ci
2025-12-09 19:53:50 -05:00
2025-11-08 01:59:02 +00:00
2025-11-06 13:03:12 -05:00
2025-12-09 16:03:33 -05:00
2025-11-08 01:59:02 +00:00
2025-09-09 23:44:04 -04:00
2025-12-11 19:20:23 +01:00
2025-12-19 17:00:23 -06:00