Repository navigation
chore: Update platform types - #1074
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c3f71b2013
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "Codex (@codex) review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "Codex (@codex) address that feedback".
| PromptBlockDataPromptBlockData | PromptBlockDataPromptBlockData1 | ||
| PromptBlockDataPromptBlockData | ||
| | PromptBlockDataPromptBlockData1 | ||
| | PromptBlockDataPromptBlockData2 |
There was a problem hiding this comment.
Add runtime support for decisions prompt blocks
When load_prompt() returns the newly accepted "decisions" variant, PromptData.from_dict_deep() cannot deserialize it because py/src/braintrust/prompt.py still defines PromptBlockData as only PromptCompletionBlock | PromptChatBlock; it therefore leaves the block as a plain dictionary. Calling Prompt.build() then accesses self.prompt.type and raises AttributeError, so decisions prompts advertised by this public type cannot be loaded and built by the SDK. Add the corresponding runtime dataclasses/build handling and focused round-trip coverage before exposing this variant.
Useful? React with 👍 / 👎.
Automated regeneration of SDK types.