Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(realtime): add jarvis.realtime plugin group + provider Protocol + event union

Ruben Lütkedcd7cbfc179d
diff --git a/jarvis/realtime/protocol.py b/jarvis/realtime/protocol.py
index 79b5b44660..eb012c5e43 100644
--- a/jarvis/realtime/protocol.py
+++ b/jarvis/realtime/protocol.py
@@ -10,7 +10,7 @@ from __future__ import annotations
from collections.abc import AsyncIterator
from dataclasses import dataclass
-from typing import Any, Literal, Protocol, runtime_checkable
+from typing import Literal, Protocol, runtime_checkable
from jarvis.core.protocols import AudioChunk
@@ -58,7 +58,11 @@ class RealtimeSession(Protocol):
async def send_audio(self, chunk: AudioChunk) -> None: ...
def receive(self) -> AsyncIterator[RealtimeEvent]: ...
- async def update_session(self, *, instructions: str | None = None, language: str | None = None) -> None: ...
+
+ async def update_session(
+ self, *, instructions: str | None = None, language: str | None = None
+ ) -> None: ...
+
async def truncate(self, audio_end_ms: int) -> None: ...
async def interrupt(self) -> None: ...
async def close(self) -> None: ...
diff --git a/pyproject.toml b/pyproject.toml
index 36b13fd757..08e51bd98b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -336,6 +336,11 @@ telegram = "jarvis.channels.telegram:TelegramChannel"
# / ENV DISCORD_BOT_TOKEN). Enable [Message Content Intent] in the bot settings.
discord = "jarvis.channels.discord:DiscordChannel"
+[project.entry-points."jarvis.realtime"]
+# Full-duplex speech-to-speech providers (Phase realtime-voice). OpenAI GA
+# gpt-realtime is the first; Gemini Live follows in Phase 4.
+openai-realtime = "jarvis.plugins.realtime.openai_realtime:OpenAIRealtimeProvider"
+
[project.entry-points."jarvis.tool"]
open-app = "jarvis.plugins.tool.open_app:OpenAppTool"
type-text = "jarvis.plugins.tool.type_text:TypeTextTool"