feat(voice): specialize prompt for Isfahan Industrial Parks, emit source excerpts, and bound generation
- Specialize voice assistant identity and agent system prompt for «شرکت شهرکهای صنعتی اصفهان» (English instructions with Persian proper names) - Emit bounded chunk text excerpts (up to 2000 chars) and identify primary_source in realtime sources events - Bound OpenAI output generation via OPENAI_REALTIME_MAX_OUTPUT_TOKENS and add answer_limited event - Handle old-turn search cancellation safely on turn supersession - Add end-to-end search tracing pipeline and diagnostic CLI - Add database organization title and settings update script
This commit is contained in:
@@ -183,7 +183,7 @@ class GeminiLiveAdapter:
|
||||
'realtimeInputConfig': {'activityHandling':'NO_INTERRUPTION'},
|
||||
'inputAudioTranscription': {}, 'outputAudioTranscription': {},
|
||||
'tools':[{'functionDeclarations':[{'name':'search_knowledge',
|
||||
'description':'Retrieve authorized evidence.', 'parameters':_schema(SearchInput.model_json_schema())}]}]}})
|
||||
'description':'Retrieve authorized evidence. Provide ONLY clean search keywords in query. Set context to null.', 'parameters':_schema(SearchInput.model_json_schema())}]}]}})
|
||||
self._pump_task = asyncio.create_task(self._read_provider_loop())
|
||||
return
|
||||
if not self._confirmed:
|
||||
|
||||
Reference in New Issue
Block a user