fix(voice): preserve interrupted searches and report used sources
Retain and revalidate interrupted searches, resolve abandoned provider calls, recover invalid source reports privately, and expose only declared sources. Improve Persian delivery and provider event replay capacity. Include regression coverage and contract updates.
This commit is contained in:
@@ -184,8 +184,10 @@ class GeminiLiveAdapter:
|
||||
'inputAudioTranscription': {}, 'outputAudioTranscription': {},
|
||||
'tools':[{'functionDeclarations':[{'name':'search_knowledge',
|
||||
'description':'Retrieve authorized evidence. Provide ONLY clean search keywords in query. Set context to null.', 'parameters':_schema(SearchInput.model_json_schema())},
|
||||
{'name':'reuse_last_evidence', 'description':'Revalidate the last same-topic evidence. No arguments; search freshly when insufficient.',
|
||||
'parameters': {'type':'OBJECT', 'properties':{}}}]}]}})
|
||||
{'name':'reuse_last_evidence', 'description':'Await/revalidate retained evidence for the same or repeated question after interruption. No arguments; search freshly when required.',
|
||||
'parameters': {'type':'OBJECT', 'properties':{}}},
|
||||
{'name':'report_used_sources', 'description':'Silently report only current-turn source_ref labels supporting the answer, after retrieval and before answering.',
|
||||
'parameters': {'type':'OBJECT', 'properties': {'source_refs': {'type':'ARRAY', 'items': {'type':'STRING'}}}, 'required': ['source_refs']}}]}]}})
|
||||
self._pump_task = asyncio.create_task(self._read_provider_loop())
|
||||
return
|
||||
if not self._confirmed:
|
||||
|
||||
Reference in New Issue
Block a user