Skip to content

Allow modifying the input sent to the model #1483

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

Merged
merged 1 commit into from
Aug 15, 2025
Merged

Allow modifying the input sent to the model #1483

merged 1 commit into from
Aug 15, 2025

Conversation

rm-openai
Copy link
Collaborator

@rm-openai rm-openai commented Aug 14, 2025

Some customers have reported that the agent loop can go on for a long time and use up the entire context window. This PR allows modifying the data sent to the model.

Copy link
Member

@seratch seratch left a comment

Choose a reason for hiding this comment

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

We may want to have some unit tests for the patterns, but the changes look good to me

@rm-openai
Copy link
Collaborator Author

We may want to have some unit tests for the patterns, but the changes look good to me

Whoops, did have tests but forgot to add them. included now.

@rm-openai rm-openai merged commit c913454 into main Aug 15, 2025
10 checks passed
@rm-openai rm-openai deleted the rm/pr1483 branch August 15, 2025 00:06
vcshih pushed a commit to veris-ai/openai-agents-python that referenced this pull request Aug 15, 2025
Some customers have reported that the agent loop can go on for a long
time and use up the entire context window. This PR allows modifying the
data sent to the model.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature:core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants