chore: Update platform types - #756
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d4f654ae80
ℹ️ 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".
| 'preprocessor', | ||
| 'classifier', | ||
| 'review', | ||
| 'log', |
There was a problem hiding this comment.
Add the new value to the public span enum
When a typed SDK caller tries to create this newly supported span type, SpanTypeAttribute.LOG raises AttributeError, while start_span(type="log") is rejected by its declared SpanTypeAttribute | None parameter type. py/src/braintrust/span_types.py still ends at REVIEW, and the public span-creation APIs continue to use that enum rather than this generated alias, so the new platform value is not exposed consistently; synchronize the enum or update those API annotations to accept SpanType.
Useful? React with 👍 / 👎.
Automated regeneration of SDK types.