Extract Python SDK message router

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-05-08 19:42:01 +03:00
parent 064d4b4937
commit 0ea082ab66
2 changed files with 122 additions and 98 deletions

View File

@@ -135,7 +135,7 @@ def test_turn_notification_router_demuxes_registered_turns() -> None:
client.register_turn_notifications("turn-1")
client.register_turn_notifications("turn-2")
client._route_notification(
client._router.route_notification(
client._coerce_notification(
"item/agentMessage/delta",
{
@@ -146,7 +146,7 @@ def test_turn_notification_router_demuxes_registered_turns() -> None:
},
)
)
client._route_notification(
client._router.route_notification(
client._coerce_notification(
"item/agentMessage/delta",
{
@@ -172,7 +172,7 @@ def test_turn_notification_router_demuxes_registered_turns() -> None:
def test_turn_notification_router_buffers_events_before_registration() -> None:
client = AppServerClient()
client._route_notification(
client._router.route_notification(
client._coerce_notification(
"turn/completed",
{