Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/openai/openai-agents-python
/ auto_demo
Function
auto_demo
examples/agent_patterns/forcing_tool_use.py:85–89 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
83
84
85
async
def
auto_demo() -> None:
86
for
behavior in (
"default"
,
"first_tool"
,
"custom"
):
87
print(f
"=== {behavior} ==="
)
88
await main(behavior)
89
print()
90
91
92
if
__name__ ==
"__main__"
:
Callers
1
forcing_tool_use.py
File · 0.85
Calls
1
main
Function · 0.70
Tested by
no test coverage detected