Conversation
added 4 commits
November 6, 2025 18:20
…JSON) with schema inference\n\n- Decode structured output into Go types\n- Support streaming updates via typed snapshots\n- Infer JSON Schema from generic type using invopop/jsonschema\n- Surface schema violations as SchemaViolationError\n\nMotivation: simplify structured output flows and ensure type safety.
…n- Validate RunJSON happy-path decoding and schema path wiring\n- Assert SchemaViolationError classification on turn failure\n- Exercise RunStreamedJSON update lifecycle and error propagation
…- Add RunJSON / RunStreamedJSON section with sample\n- Link new structured_output example in examples list
…n\nDemonstrates RunJSON and RunStreamedJSON with a simple project update type.
Contributor
Codex Review SummaryRecommendation: ✅ Ready to merge – no blocking issues detected. Summary: Inline findings:
Generated at 2025-11-06T19:05:52.662Z. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
650a109 to
71b044e
Compare
71b044e to
ca324da
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RunJSON) and streaming (RunStreamedJSON) flows.Details
invopop/jsonschema(overridable via options).SchemaViolationErrorwhen the turn fails schema validation to allow precise handling.Docs & Examples
examples/structured_outputdemonstratesRunJSONandRunStreamedJSONusage.Tests
Chore
go.mod/go.sumto includegithub.com/invopop/jsonschemaand related indirect deps.Notes
RunJSON[T],RunStreamedJSON[T]) #11 .