igbot-base 0.0.12__py3-none-any.whl → 0.0.13__py3-none-any.whl

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/llm.py CHANGED
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: igbot_base
3
- Version: 0.0.12
3
+ Version: 0.0.13
4
4
  Summary: Base classes for igbot
5
5
  Author-email: Igor Kopeć <igor.kopec95@gmail.com>
6
6
  License: LGPL-3.0-or-later
@@ -2,7 +2,7 @@ igbot_base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  igbot_base/agent.py,sha256=FwQ5nvk5rLm5F-QaxsghhqDZcus_at7AehXIWDIk8dw,932
3
3
  igbot_base/agent_response.py,sha256=eAps47djL_aWYn8P_BMpVGkPwO6m8nhltWWyh8qSG6E,1042
4
4
  igbot_base/exception_handler.py,sha256=9DFAW0K0U7Y2vKGiUW-j1C0_zp48UCyO8jL3oRj9yJQ,535
5
- igbot_base/llm.py,sha256=wFHe-0bdONC2ZRzFzhR9FwZGuXGBdzdjlxwjYCekF7Y,1994
5
+ igbot_base/llm.py,sha256=_HVTrQcbIzUaGWfRWeD-Pgy1M7JkOybzogXiQSK-mH8,2012
6
6
  igbot_base/llmmemory.py,sha256=I6eSBPW1DK8UNiHhayon-DLbSbWSinO_EwM5S8C3tHA,1090
7
7
  igbot_base/logging_adapter.py,sha256=kMuAaQPCba2luk0-WPxAbPNJaBL1yZsaff35ltKWgww,256
8
8
  igbot_base/models.py,sha256=15bitUZy4Z4JhZbLd_SMx5pD7m8YuZiIq-wYGumf0ws,622
@@ -19,7 +19,7 @@ igbot_base/exception/memory_exception.py,sha256=ZGKw3dN2tMf9XHacYaVTXgvYpWi14z7u
19
19
  igbot_base/exception/prompt_exception.py,sha256=_u-O9E2Z1DK_OT4StyOmIDLfr_Mmk4k0GLe67kIoQNc,413
20
20
  igbot_base/exception/retriever_exception.py,sha256=A46sBV6_1N3jgBl-nFRw4KgEcz3oPb8d5Eb83YWDEPo,431
21
21
  igbot_base/exception/tool_exception.py,sha256=1EX7R90MplT4Vqv1-zzPslFrNvDwcrh7wgEWun2Ba6k,386
22
- igbot_base-0.0.12.dist-info/METADATA,sha256=_FLtvgekegWVYmfUjRCCqBIBReoqgqV3joe3bKE9oks,211
23
- igbot_base-0.0.12.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
24
- igbot_base-0.0.12.dist-info/top_level.txt,sha256=RGpEN0pLsnfNLoLfpw1D_nLSyZwi3ggSaDq07o4ZEAI,11
25
- igbot_base-0.0.12.dist-info/RECORD,,
22
+ igbot_base-0.0.13.dist-info/METADATA,sha256=uc9oNyCmuuP-qhhpEuqm8tYLLR6_aO1Y1oP7drjcnsA,211
23
+ igbot_base-0.0.13.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
24
+ igbot_base-0.0.13.dist-info/top_level.txt,sha256=RGpEN0pLsnfNLoLfpw1D_nLSyZwi3ggSaDq07o4ZEAI,11
25
+ igbot_base-0.0.13.dist-info/RECORD,,