Abstract base for voice workflows that process transcriptions and stream text via agents.
# Source: https://github.com/openai/openai-agents-python | License: MIT | Copyright 2025 OpenAI
# Provided via justclaw.it.com; keep this notice with the code.
from __future__ import annotations
import abc
from collections.abc import AsyncIterator
from ..agent import Agent
from ..items import TResponseInputItem
from ..result import RunResultStreaming
from ..run import Runner
from ..run_context import TContext
class VoiceWorkflowBase(abc.ABC):
"""
A base class for a voice workflow. You must implement the `run` method. A "workflow" is any
code you want, that receives a transcription and yields text that will be turned into speech
by a text-to-speech model.
In most cases, you'll create `Agent`s and use `Runner.run_streamed()` to run them, returning
some or all of t
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key