|
6 | 6 | import json |
7 | 7 | import logging |
8 | 8 | import threading |
9 | | -from typing import Any, Awaitable, Callable, Dict, Literal, Optional, Tuple, Union |
| 9 | +from typing import Any, Awaitable, Callable, Dict, List, Literal, Optional, Tuple, Union |
10 | 10 | import urllib.parse |
11 | 11 |
|
12 | 12 | import websockets |
@@ -322,15 +322,17 @@ def __init__( |
322 | 322 | post_call_transcription_webhook_url: Optional[str] = None, |
323 | 323 | post_call_audio_webhook_url: Optional[str] = None, |
324 | 324 | agent_config_dict: Optional[dict] = None, |
325 | | - override_agent_config_list: Optional[dict] = None, |
326 | | - tools_config_list: Optional[dict] = None, |
| 325 | + override_agent_config_list: Optional[List[dict]] = None, |
| 326 | + tools_config_list: Optional[List[dict]] = None, |
| 327 | + prompt_knowledge_base: Optional[List[str]] = None, |
327 | 328 | ): |
328 | 329 | self.on_prem_conversation_url = on_prem_conversation_url |
329 | 330 | self.post_call_transcription_webhook_url = post_call_transcription_webhook_url |
330 | 331 | self.post_call_audio_webhook_url = post_call_audio_webhook_url |
331 | | - self.agent_config_dict = agent_config_dict or {} |
332 | | - self.override_agent_config_list = override_agent_config_list or {} |
333 | | - self.tools_config_list = tools_config_list or {} |
| 332 | + self.agent_config_dict = agent_config_dict |
| 333 | + self.override_agent_config_list = override_agent_config_list |
| 334 | + self.tools_config_list = tools_config_list |
| 335 | + self.prompt_knowledge_base = prompt_knowledge_base |
334 | 336 |
|
335 | 337 | class BaseConversation: |
336 | 338 | """Base class for conversation implementations with shared parameters and logic.""" |
@@ -386,6 +388,7 @@ def _create_on_prem_initiation_message(self): |
386 | 388 | "tools_config_list": self.on_prem_config.tools_config_list, |
387 | 389 | "post_call_transcription_webhook_url": self.on_prem_config.post_call_transcription_webhook_url, |
388 | 390 | "post_call_audio_webhook_url": self.on_prem_config.post_call_audio_webhook_url, |
| 391 | + "prompt_knowledge_base": self.on_prem_config.prompt_knowledge_base, |
389 | 392 | } |
390 | 393 | ) |
391 | 394 |
|
|
0 commit comments