[doc] fix invalid imports (#273)

This commit is contained in:
Rohan Mehta 2025-03-20 20:03:00 -04:00 committed by GitHub
commit a5f0646b9c
1 changed files with 5 additions and 3 deletions

View File

@ -91,7 +91,7 @@ agent = Agent(
We'll set up a simple voice pipeline, using [`SingleAgentVoiceWorkflow`][agents.voice.workflow.SingleAgentVoiceWorkflow] as the workflow.
```python
from agents import SingleAgentVoiceWorkflow, VoicePipeline,
from agents.voice import SingleAgentVoiceWorkflow, VoicePipeline,
pipeline = VoicePipeline(workflow=SingleAgentVoiceWorkflow(agent))
```
@ -128,11 +128,13 @@ import sounddevice as sd
from agents import (
Agent,
function_tool,
set_tracing_disabled,
)
from agents.voice import (
AudioInput,
SingleAgentVoiceWorkflow,
VoicePipeline,
function_tool,
set_tracing_disabled,
)
from agents.extensions.handoff_prompt import prompt_with_handoff_instructions