igbot-base 0.0.12__tar.gz → 0.0.13__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {igbot_base-0.0.12 → igbot_base-0.0.13}/PKG-INFO +1 -1
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/llm.py +3 -3
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base.egg-info/PKG-INFO +1 -1
- {igbot_base-0.0.12 → igbot_base-0.0.13}/pyproject.toml +1 -1
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/__init__.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/agent.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/agent_response.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/exception/agent_exception.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/exception/base_exception.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/exception/llm_exception.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/exception/memory_exception.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/exception/prompt_exception.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/exception/retriever_exception.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/exception/tool_exception.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/exception_handler.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/llmmemory.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/logging_adapter.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/models.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/persistable_memory.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/prompt_template.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/response_formats.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/retriever.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/tool.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base/vectorstore.py +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base.egg-info/SOURCES.txt +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base.egg-info/dependency_links.txt +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base.egg-info/requires.txt +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/igbot_base.egg-info/top_level.txt +0 -0
- {igbot_base-0.0.12 → igbot_base-0.0.13}/setup.cfg +0 -0
@@ -26,7 +26,7 @@ class Llm(ABC):
|
|
26
26
|
self._exception_handler = llm_exception_handler
|
27
27
|
|
28
28
|
def __str__(self):
|
29
|
-
return f"Llm({self._name} {self._model.get_name()})"
|
29
|
+
return f"Llm({self._name} {self._model.value.get_name()})"
|
30
30
|
|
31
31
|
@abstractmethod
|
32
32
|
def _call(self, user_query: str, history: LlmMemory, params: dict) -> str:
|
@@ -40,11 +40,11 @@ class Llm(ABC):
|
|
40
40
|
history.set_snapshot()
|
41
41
|
try:
|
42
42
|
response = self._call(user_query, history, params)
|
43
|
-
logger.debug("LLM %s %s responded: %s", self._name, self._model.get_name(), response)
|
43
|
+
logger.debug("LLM %s %s responded: %s", self._name, self._model.value.get_name(), response)
|
44
44
|
return response
|
45
45
|
except Exception as e:
|
46
46
|
logger.error("Error occurred in LLM %s, Model %s at calling the API: %s",
|
47
|
-
self._name, self._model.get_name(), e)
|
47
|
+
self._name, self._model.value.get_name(), e)
|
48
48
|
self._revert_memory(history)
|
49
49
|
self._exception_handler.handle(e)
|
50
50
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|