feat(backend): deliver Phase 3 document and voice integration
Add authenticated upload, review, retry and knowledge-selection HTTP flows with bounded JSON processing and frozen OCR policy. Preserve Gemini/OpenAI provider selection and fenced lifecycle semantics; retain FAQ preambles and uncertain vision candidates, and expose opt-in uncalibrated voice transport diagnostics. Include frontend integration examples, aligned contracts and deterministic regressions. Validation: 1767 provider-free tests passed; all 404 PostgreSQL scenarios have passing evidence across the documented runs.
This commit is contained in:
@@ -144,7 +144,7 @@ def test_operator_uses_configured_gemini_with_actual_runtime_tool(settings,monke
|
||||
await self.inbound.put({'serverContent':{'outputTranscription':{'text':'fixture answer'},'turnComplete':True}})
|
||||
wire=Scripted()
|
||||
async def connection(*args):return wire
|
||||
monkeypatch.setattr('app.infrastructure.gemini_live.connect_gemini',connection)
|
||||
monkeypatch.setattr('app.infrastructure.voice_provider.connect_gemini',connection)
|
||||
config=VoiceSettings(_env_file=None,gemini_api_key='fake-only',gemini_model='configured-model')
|
||||
service=canonical_service(settings,monkeypatch,[row()])
|
||||
assert asyncio.run(voice_smoke.run(service,runner,uuid4(),config,'q',3,4))==0
|
||||
|
||||
Reference in New Issue
Block a user