-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add exec output-schema parameter #4079
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
# Conflicts: # codex-rs/core/tests/common/Cargo.toml
… and schema validation
@codex review this |
Codex Review: Didn't find any major issues. 👍 About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some unrelated changes that would be best in a different PR. Some comments about the test assertion. Beside this, awesome work!
Some(&serde_json::Value::String("json_schema".into())) | ||
); | ||
assert_eq!(format.get("strict"), Some(&serde_json::Value::Bool(true))); | ||
assert_eq!(format.get("schema"), Some(&schema)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wdut about serializing it and having one assert_eq
function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather have detailed asserts here. Will assert the entire thing in exec tests.
…schema-parameter # Conflicts: # codex-rs/core/src/codex/compact.rs
exec/tests/suite/output_schema.rs: refactor to build schema with serde_json, write as pretty json, and assert full format object equality
Adds structured output to
exec
via the--structured-output
parameter.