-
Notifications
You must be signed in to change notification settings - Fork 578
ref: Replace set_data_normalized() with Span.set_data() for system instructions
#5374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: webb/openai-agents-chat-system-instructions
Are you sure you want to change the base?
ref: Replace set_data_normalized() with Span.set_data() for system instructions
#5374
Conversation
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Openai Agents
Other
Bug Fixes 🐛
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
set_data_noramlized() with Span.set_data() for system instructionsset_data_normalized() with Span.set_data() for system instructions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
…set-data-no-normalization
| system_instructions = config.get("system_instruction") | ||
|
|
||
| if system_instructions is not None: | ||
| set_data_normalized( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i generally dislike this function, garbage signature, just creates clutter
Description
Avoid unreachable code paths by calling
Span.set_data()directly. The_transform_system_instructions()functions in the respective integrations enforce a consistent format.Issues
Reminders
tox -e linters.feat:,fix:,ref:,meta:)