Files
tai/research/agentic-tool-loop-design/openai-agents-python-forcing-tool-use.md
T
retoor afc88b8087 ask_user tool, prompt-JSON CLI repair loop, tool-loop research archive
- New ask_user core tool: mid-turn user question with option picking,
  refusing cleanly in autonomous mode, for background workers, and
  without a tty; system prompt points at it instead of prose questions.
- Structural loop control for prompt-JSON CLI backends (opencode,
  grok, claude, codex, gemini): shared cli_json_turn repairs a
  missing JSON envelope exactly once, then accepts prose; prompt
  contract hardened against narrate-without-calling.
- research/agentic-tool-loop-design: 74 sources plus 2 conclusions
  backing the loop-control decisions; INDEX updated to 6 subjects.
2026-10-11 02:54:17 +02:00

29 lines
1.1 KiB
Markdown

# 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. |