Thanks to visit codestin.com
Credit goes to github.com

Skip to content

adopted float instead of timedelta for timeout parameters #874

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 2 commits into from
Jun 16, 2025

Conversation

DanieleMorotti
Copy link
Contributor

I replaced the timedelta parameters for MCP timeouts with float values, addressing issue #845 .

Given that the MCP official repository has incorporated these changes in this PR, updating the MCP version in openai-agents and specifying the timeouts as floats should be enough.

@rm-openai
Copy link
Collaborator

Hmm this would be a breaking change for existing users right? Do you think we can leave backwards compatibility, is that possible?

@DanieleMorotti
Copy link
Contributor Author

DanieleMorotti commented Jun 16, 2025

If I'm not wrong, it doesn't seem a breaking change, it’s a type-hinting issue, because streamablehttp_client can take parameters of both types as input and it will not fail.

I added both timedelta and float as possible types, in order to match the mcp package’s expected inputs.

Copy link
Collaborator

@rm-openai rm-openai left a comment

Choose a reason for hiding this comment

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

cool thank you

@rm-openai rm-openai merged commit 281a7b2 into openai:main Jun 16, 2025
5 checks passed
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.

2 participants