[doc] fix invalid imports

This commit is contained in:
Yoshinori Sano 2025-03-21 08:37:45 +09:00
parent 1e8930d6ae
commit 0dd5b37936

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