Skip to content

feat(llm): export FallbackRealtimeSession as a public class (#6553) - #6784

Open
krishna3006b wants to merge 3 commits into
livekit:mainfrom
krishna3006b:feat/make-fallback-realtime-session-public
Open

feat(llm): export FallbackRealtimeSession as a public class (#6553)#6784
krishna3006b wants to merge 3 commits into
livekit:mainfrom
krishna3006b:feat/make-fallback-realtime-session-public

Conversation

@krishna3006b

Copy link
Copy Markdown

Description

Resolves #6553.

Exported \FallbackRealtimeSession\ as a public class in \livekit.agents.llm\ and \livekit.agents.llm.realtime_fallback_adapter.

This enables callers and plugins to perform \isinstance(rt_session, FallbackRealtimeSession)\ checks directly when attaching provider-specific realtime session event handlers.

For backward compatibility, _FallbackRealtimeSession\ is preserved as an alias.

Related Issue

Fixes #6553

Tests

  • Added \ est_fallback_realtime_session_is_public\ in \ est_realtime_fallback.py\ to verify public export and \isinstance\ checks.
  • Verified unit tests pass via \pytest tests/test_realtime_fallback.py\ (39 tests passed).

@krishna3006b
krishna3006b requested a review from a team as a code owner August 11, 2026 08:43
Copilot AI lite review requested due to automatic review settings August 11, 2026 08:43
devin-ai-integration[bot]

This comment was marked as resolved.

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should make livekit.agents.llm._FallbackRealtimeSession as public class for implementing instance check easily

2 participants