generate an internal json schema for RolloutLine#14434
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
RolloutLine|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
| // internal only (not a public stable interface) | ||
| let internal_out_dir = out_dir.join("internal"); | ||
| ensure_dir(&internal_out_dir)?; | ||
| write_json_schema::<RolloutLine>(&internal_out_dir, "RolloutLine")?; |
| }, | ||
| FunctionCallOutput { | ||
| call_id: String, | ||
| #[schemars(with = "FunctionCallOutputBody")] |
There was a problem hiding this comment.
codex/codex-rs/protocol/src/models.rs
Lines 351 to 355 in c7e847a
There was a problem hiding this comment.
@apanasenko-oai want to double-check the change in this PR is ok with codex cloud?
|
discussed with @owenlin0 offline -- going to switch this to a separate command |
4679910 to
a19f8cf
Compare
owenlin0
left a comment
There was a problem hiding this comment.
looks good, thanks! let's double-check the removal of FunctionCallOutputPayload with @apanasenko-oai though
Co-authored-by: Codex <noreply@openai.com>
Align TypeScript codegen with the existing JSON Schema wire override for function and custom tool call outputs. Co-authored-by: Codex <noreply@openai.com>
Align TypeScript codegen with the existing JSON Schema wire override for function and custom tool call outputs. Co-authored-by: Codex <noreply@openai.com>
Why
i'm working on something that parses and analyzes codex rollout logs, and i'd like to have a schema for generating a parser/validator.
codex app-server generate-internal-json-schemawrites anRolloutLine.jsonfilewhile doing this, i noticed we have a writer <> reader mismatch issue on
FunctionCallOutputPayloadand reasoning item ID -- added some schemars annotations to fix thoseTest
generates an
RolloutLine.jsonfile, which i validated against jsonl files on diskjust codex app-server --helpdoesn't expose thegenerate-internal-json-schemaoption by default, but you can dojust codex app-server generate-internal-json-schema --helpif you know the commandeverything else still works