Skip to content

feat(api): expand Live Decision item and question types - #4175

Queued
dpiet-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-341
Queued

dpiet-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-341

Conversation

@dpiet-oai

Copy link
Copy Markdown
Contributor

Summary

Support more message, tool call, and question input types in Live Decisions.

Changes

  • Accept user, developer, system, and assistant messages in Live Decision items.
  • Add function and custom tool call and output types.
  • Allow strings or structured instruction parts in Live Decision questions.

@dpiet-oai
dpiet-oai requested a review from a team as a code owner October 25, 2026 15:37
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T20:32:33.243363Z 8d4e08c New commits
🔒 Security Review ✅ Completed 2026-10-25T20:30:31.633064Z 8d4e08c New commits

Security findings

Advisory findings (1)

ℹ️ About Codex in GitHub

Your 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
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Castiron custom code

Evaluated main: 718aee979a9c334d37302aeff21cee6cbff4d43c.

Trusted main policy: 718aee979a9c334d37302aeff21cee6cbff4d43c.

✅ No new custom-code files detected.

0 mixed files remain; 0 existing customizations changed.

Compared 718aee979a9c → 8d4e08cd23e7. Generated baselines verified.

A changed generated baseline means this report cannot reliably identify which handwritten lines changed.

Inspect the custom-code diff

Download the exact patch produced by this run (requires repository access):

gh run download 40230954600 --repo openai/openai-python \
  --name castiron-custom-code-40230954600-1 --dir /tmp/castiron-custom-code-40230954600-1
git apply --stat /tmp/castiron-custom-code-40230954600-1/custom-code.patch
cat /tmp/castiron-custom-code-40230954600-1/custom-code.patch

Or reproduce it from an SDK checkout containing the vendored reporter:

git fetch --no-tags origin 718aee979a9c334d37302aeff21cee6cbff4d43c 8d4e08cd23e796a2dee564eef221112f03c96ed5
python3 scripts/castiron/custom_code_report.py report \
  --base 718aee979a9c334d37302aeff21cee6cbff4d43c \
  --head 8d4e08cd23e796a2dee564eef221112f03c96ed5 --target-branch main --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-8d4e08cd23e7
cat /tmp/castiron-custom-code-8d4e08cd23e7/custom-code.patch

This is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR.

Full report and patch

Comment thread src/openai/resources/responses/responses.py
Comment thread src/openai/resources/responses/responses.py
Comment thread src/openai/resources/responses/responses.py
Comment thread src/openai/resources/responses/responses.py
Comment thread src/openai/resources/responses/responses.py
Comment thread src/openai/resources/responses/responses.py
Comment thread src/openai/resources/beta/agents/sessions/sessions.py Fixed
Comment thread src/openai/resources/beta/agents/sessions/sessions.py Fixed
Comment thread src/openai/resources/beta/agents/sessions/sessions.py Fixed
Comment thread src/openai/resources/beta/agents/sessions/sessions.py Fixed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛡️ Codex Security Review · Automatically triggered

Here are some automated security review suggestions for this pull request.

Reviewed commit: a3d79f2906

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

Comment thread src/openai/resources/webhooks/webhooks.py Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a3d79f2906

ℹ️ About Codex in GitHub

Your 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
  • 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 address that feedback".

Comment thread src/openai/resources/webhooks/webhooks.py
Comment thread src/openai/resources/chat/completions/completions.py
Comment thread src/openai/resources/responses/responses.py
Comment thread src/openai/resources/beta/agents/sessions/sessions.py
Comment thread src/openai/resources/beta/threads/runs/runs.py
Comment thread src/openai/types/decision_input_text_param.py Outdated
Comment thread src/openai/resources/realtime/translations/translations.py
Comment thread src/openai/resources/realtime/realtime.py Outdated
Comment thread src/openai/resources/embeddings.py Outdated
Comment thread src/openai/resources/audio/transcriptions.py
@dpiet-oai
dpiet-oai force-pushed the castiron/promotions/pr-341 branch from a3d79f2 to 6041a55 Compare October 25, 2026 15:46
Comment thread src/openai/resources/beta/threads/runs/runs.py Fixed
Comment thread src/openai/resources/beta/threads/runs/runs.py Fixed
Comment thread src/openai/resources/beta/threads/runs/runs.py

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6041a55fec

ℹ️ About Codex in GitHub

Your 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
  • 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 address that feedback".

Comment thread src/openai/resources/chat/completions/completions.py
@dpiet-oai
dpiet-oai force-pushed the castiron/promotions/pr-341 branch from 6041a55 to f2bf70f Compare October 25, 2026 15:53
@dpiet-oai
dpiet-oai marked this pull request as draft October 25, 2026 15:53
Comment thread src/openai/resources/responses/responses.py
@dpiet-oai
dpiet-oai force-pushed the castiron/promotions/pr-341 branch from f2bf70f to b06de62 Compare October 25, 2026 15:58
@dpiet-oai

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: b06de62a30

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b06de62a30

ℹ️ About Codex in GitHub

Your 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
  • 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 address that feedback".

Comment thread src/openai/resources/beta/agents/sessions/sessions.py Outdated
@dpiet-oai
dpiet-oai force-pushed the castiron/promotions/pr-341 branch 3 times, most recently from 8796d77 to 631a1f6 Compare October 25, 2026 17:15
@dpiet-oai

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 631a1f6f68

ℹ️ About Codex in GitHub

Your 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
  • 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 address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 631a1f6f68

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@dpiet-oai
dpiet-oai force-pushed the castiron/promotions/pr-341 branch from 631a1f6 to f531a99 Compare October 25, 2026 17:19
Comment thread src/openai/resources/beta/threads/runs/runs.py
Comment thread src/openai/resources/beta/threads/runs/runs.py
@dpiet-oai
dpiet-oai force-pushed the castiron/promotions/pr-341 branch from f531a99 to ff71469 Compare October 25, 2026 19:39
@dpiet-oai
dpiet-oai marked this pull request as ready for review October 25, 2026 19:40

@markstuart-oai markstuart-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed ff7146992740 against 718aee979a9c across all 77 changed files. The Live item and question types match the expanded schema, and the existing runtime helpers are preserved. One compatibility issue remains: both input-part modules remove PromptCacheBreakpoint from __all__. Existing wildcard imports then lose that name. Please restore both explicit exports, as noted inline.

Source-only review; I did not run candidate code or tests. All 42 exact-head hosted checks passed or were skipped, including the Python test jobs, build, lint, and custom-code checks.

Comment thread src/openai/types/decision_input_image_param.py Outdated
Castiron-Internal-PR: openai/openai-python-internal#341
Castiron-Source-SHA: c49eeb71d31a1381909f69abc6dec247aa466779
Castiron-Public-Base-SHA: 718aee9
@dpiet-oai
dpiet-oai force-pushed the castiron/promotions/pr-341 branch from ff71469 to 8d4e08c Compare October 25, 2026 20:27

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8d4e08cd23

ℹ️ About Codex in GitHub

Your 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
  • 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 address that feedback".

Comment thread src/openai/resources/responses/responses.py

@markstuart-oai markstuart-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 8d4e08cd23e796a2dee564eef221112f03c96ed5. Both Decision input modules again export PromptCacheBreakpoint, fixing my prior finding. I reviewed all 77 changed files, reusing verified unchanged source from the earlier review and checking every new difference. No remaining actionable findings.

I also checked the new _make_tools comment. The README treats undocumented underscore-prefixed names as private; the removed wrapper alone does not establish a supported API regression.

Source-only review; I did not run code or tests. Hosted checks on this head passed, including lint, build, Python 3.10/3.14, HTTPX2, and the Castiron checks.

@dpiet-oai
dpiet-oai added this pull request to the merge queue Oct 25, 2026
Any commits made after this event will not be merged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants