Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/agents/realtime/handoffs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
from ..tracing.spans import SpanError
from ..util import _error_tracing, _json
from ..util._types import MaybeAwaitable
from . import RealtimeAgent

if TYPE_CHECKING:
from ..agent import AgentBase
from . import RealtimeAgent


# The handoff input type is the type of data passed when the agent is called via a handoff.
Expand Down
8 changes: 0 additions & 8 deletions tests/realtime/test_realtime_handoffs.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,6 @@ async def is_enabled(ctx, agent):

h = realtime_handoff(rt, is_enabled=is_enabled)

# Patch missing symbol in module to satisfy isinstance in closure
import agents.realtime.handoffs as rh

if not hasattr(rh, "RealtimeAgent"):
from agents.realtime import RealtimeAgent as _RT

rh.RealtimeAgent = _RT # type: ignore[attr-defined]

from collections.abc import Awaitable
from typing import cast as _cast

Expand Down