# openai-agents-python/examples/agent_patterns/forcing_tool_use.py at main · openai/openai-agents-python · GitHub ## Metadata | Field | Value | |---|---| | Institute | Molodetz Institute — Research & Retrieval Division | | Subject | agentic-tool-loop-design | | Document type | Source Citation Card | | Tier | 2 | | Source title | openai-agents-python/examples/agent_patterns/forcing_tool_use.py at main · openai/openai-agents-python · GitHub | | Source URL | https://github.com/openai/openai-agents-python/blob/main/examples/agent_patterns/forcing_tool_use.py | | Source type | repository | | Date researched | 2026-10-11 | | Researched by | tai (agent), model: Muse Spark, on behalf of retoor | | Research method | Search aggregator result listing (not independently opened or quoted) | | Confidence | Not independently verified | | Status | Active | ## Why it's here Surfaced by the harness-validation search; looked relevant for the tool_choice-required infinite-loop warning (forced tool use every turn never terminates). ## Changelog | Date | Change | |---|---| | 2026-10-11 | Logged as consulted-but-not-analyzed. |