openai-agents-python/src/agents/models
Rohan Mehta 6fb5792b77 Make the reset behavior on tool use configurable
## Summary:

#263 added this behavior. The goal was to prevent infinite loops when tool choice was set. The key change I'm making is:
1. Making it configurable on the agent.
2. Doing bookkeeping in the Runner to track this, to prevent mutating agents.
3. Not resetting the global tool choice in RunConfig.

## Test Plan:
Unit tests.
.
2025-03-25 13:29:32 -04:00
..
__init__.py Initial commit 2025-03-11 09:42:28 -07:00
_openai_shared.py Initial commit 2025-03-11 09:42:28 -07:00
fake_id.py Initial commit 2025-03-11 09:42:28 -07:00
interface.py Initial commit 2025-03-11 09:42:28 -07:00
openai_chatcompletions.py fix typos in src/ 2025-03-20 11:24:08 +01:00
openai_provider.py feat: add voice pipeline support 2025-03-20 09:43:13 -07:00
openai_responses.py Make the reset behavior on tool use configurable 2025-03-25 13:29:32 -04:00