[doc] fix invalid imports (#273)
This commit is contained in:
commit
ea63a99b61
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.
|
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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue