Skip to content

fix(openai): materialize decisions instructions and tool outputs - #1009

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi/sdk-632-openai-decisions-materialize-generator-valued-instructions
Oct 26, 2026
Merged

Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi/sdk-632-openai-decisions-materialize-generator-valued-instructions

Conversation

@AbhiPrasad

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

🤖 This text was AI-generated.

Decisions logged generator-valued question instructions and tool outputs
as generator representations instead of their input parts.

before: instructions/output -> "<generator object ...>"
after:  instructions/output -> [{"type": "input_text", "text": "..."}]

Materialize these fields once so tracing and OpenAI receive the same
values without replacing fields on the caller's dictionaries. Extend the
existing sync/async iterable-input coverage and refresh its cassettes.

Fixes #1006
Refs: SDK-632

> 🤖 **This text was AI-generated.**

Decisions logged generator-valued question instructions and tool outputs
as generator representations instead of their input parts.

```text
before: instructions/output -> "<generator object ...>"
after:  instructions/output -> [{"type": "input_text", "text": "..."}]
```

Materialize these fields once so tracing and OpenAI receive the same
values without replacing fields on the caller's dictionaries. Extend the
existing sync/async iterable-input coverage and refresh its cassettes.

Fixes #1006
Refs: https://linear.app/braintrustdata/issue/SDK-632
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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-26T13:19:59.945516Z 6ce18e7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

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

@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit d747b96 into main Oct 26, 2026
98 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the abhi/sdk-632-openai-decisions-materialize-generator-valued-instructions branch October 26, 2026 15:34
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.

openai Decisions: materialize generator-valued instructions and tool outputs

1 participant