-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
The trivial Hello World example uses an event loop via run_sync, which immediately gives error in Jupyter notebook because there's already an event loop - another example may be better, e.g. this works
result = await Runner.run(agent, "Write a haiku about recursion in programming.")
The problem is documented somewhere, but quite offputting for new user trying to get started:
openai-agents-python/src/agents/run.py
Line 286 in c8f3cdd
| """Run a workflow synchronously, starting at the given agent. Note that this just wraps the |
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation