feat(voice): add bounded Realtime knowledge runtime

Connect OpenAI Realtime to the existing async StructuredTool and shared
SearchToolRunner with backend-owned authority and per-turn source references.
Add an operator-only smoke harness with persisted actor and provider opt-in.

Enforce confirmed readiness delivery, strict function identity, canonical
results and once-only continuations. Bound and pace generated audio, preserve
turn correlation, and require acknowledged cleanup before response release.
Handle Unicode arguments, UTF-8 replay budgets and user-ASR completion replays.

Validate with 318 voice/runner/shutdown tests and 1563 provider-free tests.
Three Windows symlink tests skip; 311 PostgreSQL tests are deselected.
Real-provider, browser playback and PostgreSQL acceptance remain unrun.
This commit is contained in:
amirhosein mazaheri
2026-10-08 18:06:03 +03:30
parent b50c920bfc
commit 9dac244590
13 changed files with 5303 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@ dependencies = [
[project.optional-dependencies]
search = ["langchain-core>=1,<2"]
voice = ["langchain-core>=1,<2", "websockets>=15,<18"]
embedding = ["tiktoken>=0.8,<1"]
test = ["pytest>=8.3,<10"]
prototype = [