You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you searched for related issues? Others may have faced similar issues. ✅
Describe the bug
uv run examples/voice/streamed/main.py
Traceback (most recent call last):
File "/Users/aviralgarg/code/openai-agents-python/examples/voice/streamed/main.py", line 14, in <module>
from agents.voice import StreamedAudioInput, VoicePipeline
File "/Users/aviralgarg/code/examples/voice/streamed/main.py", line 5, in <module>
from agents import Agent, Runner, TResponseInputItem, function_tool
ImportError: cannot import name 'Agent' from partially initialized module 'agents' (most likely due to a circular import) (/Users/aviralgarg/code/examples/voice/streamed/agents.py)
…291 (#292)
Fix circular dependency in voice streamed example by renaming agents.py
to my_workflow.py
Fix circular dependency in voice streamed example by renaming agents
#291
Please read this first
Describe the bug
circular import issue.
fix:
and replace
from .agents import MyWorkflow
withfrom my_workflow import MyWorkflow
in examples/voice/streamed/main.pyDebug information
Repro steps
Expected behavior
voice streamed example should have run.
The text was updated successfully, but these errors were encountered: