[doc] fix invalid imports
This commit is contained in:
parent
1e8930d6ae
commit
0dd5b37936
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue