[doc] fix invalid imports (#273)

This commit is contained in:
Rohan Mehta 2025-03-20 20:03:00 -04:00 committed by GitHub
commit ea63a99b61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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