igbot-base 0.0.5__py3-none-any.whl → 0.0.7__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/__init__.py CHANGED
@@ -1,28 +0,0 @@
1
- from agent import Agent as Agent
2
-
3
- from agent_response import AgentResponse as AgentResponse
4
-
5
- from exception_handler import ExceptionHandler as ExceptionHandler
6
- from exception_handler import PrintingExceptionHandler as PrintingExceptionHandler
7
- from exception_handler import NoopExceptionHandler as NoopExceptionHandler
8
-
9
- from llm import Llm as Llm
10
-
11
- from llmmemory import LlmMemory as LlmMemory
12
-
13
- from models import Model as Model
14
- from models import ModelInfo as ModelInfo
15
-
16
- from persistable_memory import PersistableMemory as PersistableMemory
17
-
18
- from prompt_template import Prompt as Prompt
19
-
20
- from response_formats import ResponseFormat as ResponseFormat
21
-
22
- from retriever import Retriever as Retriever
23
-
24
- from tool import Tool as Tool
25
-
26
- from vectorstore import Vectorstore as Vectorstore
27
- from vectorstore import Metadata as Metadata
28
-
igbot_base/agent.py CHANGED
@@ -1,6 +1,6 @@
1
1
  from abc import ABC, abstractmethod
2
2
 
3
- from igbot_base.igbot_base.agent_response import AgentResponse
3
+ from igbot_base.agent_response import AgentResponse
4
4
 
5
5
 
6
6
  class Agent(ABC):
igbot_base/llm.py CHANGED
@@ -2,9 +2,9 @@ from abc import ABC, abstractmethod
2
2
  from builtins import dict
3
3
  from typing import Optional
4
4
 
5
- from igbot_base.igbot_base.exception_handler import ExceptionHandler, NoopExceptionHandler
6
- from igbot_base.igbot_base.llmmemory import LlmMemory
7
- from igbot_base.igbot_base.models import Model
5
+ from igbot_base.exception_handler import ExceptionHandler, NoopExceptionHandler
6
+ from igbot_base.llmmemory import LlmMemory
7
+ from igbot_base.models import Model
8
8
 
9
9
 
10
10
  class Llm(ABC):
@@ -30,7 +30,7 @@ class Llm(ABC):
30
30
  history.revert_to_snapshot()
31
31
 
32
32
  def call(self, user_query: str, history: LlmMemory, params: dict) -> str:
33
- history.set_snapshot()
33
+ #history.set_snapshot()
34
34
  try:
35
35
  return self._call(user_query, history, params)
36
36
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  from abc import abstractmethod
2
2
 
3
- from igbot_base.igbot_base.llmmemory import LlmMemory
3
+ from igbot_base.llmmemory import LlmMemory
4
4
 
5
5
 
6
6
  class PersistableMemory(LlmMemory):
@@ -1,7 +1,7 @@
1
1
  import re
2
2
  from typing import Optional
3
3
 
4
- from igbot_base.igbot_base.exception_handler import ExceptionHandler, PrintingExceptionHandler
4
+ from igbot_base.exception_handler import ExceptionHandler, PrintingExceptionHandler
5
5
 
6
6
 
7
7
  class Prompt:
igbot_base/vectorstore.py CHANGED
@@ -1,6 +1,6 @@
1
1
  from abc import ABC, abstractmethod
2
2
 
3
- from igbot_base.igbot_base.retriever import Retriever
3
+ from igbot_base.retriever import Retriever
4
4
 
5
5
 
6
6
  class Metadata:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: igbot_base
3
- Version: 0.0.5
3
+ Version: 0.0.7
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
@@ -0,0 +1,17 @@
1
+ igbot_base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ igbot_base/agent.py,sha256=186kf599wrK4z41RVddeh0dH_iJ-_fCTqxM7J00P8IE,188
3
+ igbot_base/agent_response.py,sha256=eAps47djL_aWYn8P_BMpVGkPwO6m8nhltWWyh8qSG6E,1042
4
+ igbot_base/exception_handler.py,sha256=BMzQpgP4jnnRuTcEItx0oMljTZmKgMRCHzpybHn88Ig,341
5
+ igbot_base/llm.py,sha256=vUw0IFz5Q5T4QhF5_7J0eNlDxw8L482KmclVmq4DkbY,1462
6
+ igbot_base/llmmemory.py,sha256=KslOeTSZwvHVyFglbFhPcb6_GCCXZOqHz5YBTzJ2mew,977
7
+ igbot_base/models.py,sha256=15bitUZy4Z4JhZbLd_SMx5pD7m8YuZiIq-wYGumf0ws,622
8
+ igbot_base/persistable_memory.py,sha256=867Z4l_awD23QSTFDK3uN9TEttKfDpxx9g19c7ULG1Y,167
9
+ igbot_base/prompt_template.py,sha256=YHJDbe-33Zs202DMh6gLY_lLDejcyqB9xmek6xnyE0Q,1106
10
+ igbot_base/response_formats.py,sha256=Sp679VfkcyxsR19ddFEHTOM7Ox0u2WBhdji_Y9pVc2M,94
11
+ igbot_base/retriever.py,sha256=lwQhJbPtlWxiRMoRzqz2VI6WFv-60B8jPvKQc8hdeeY,177
12
+ igbot_base/tool.py,sha256=8QwzQuokkVSITCjZuZJeEbCvJU-n2yh9D-QauQex4Ko,319
13
+ igbot_base/vectorstore.py,sha256=Q1ZRlsJ45ckgFZuPPQVMWuYl3W_L-HiX9VJIJ0wnjU8,842
14
+ igbot_base-0.0.7.dist-info/METADATA,sha256=W96JS19Y3KiRBHL3wHQYJtaMNjNccajqGsZjDkBmjx8,210
15
+ igbot_base-0.0.7.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
16
+ igbot_base-0.0.7.dist-info/top_level.txt,sha256=RGpEN0pLsnfNLoLfpw1D_nLSyZwi3ggSaDq07o4ZEAI,11
17
+ igbot_base-0.0.7.dist-info/RECORD,,
@@ -1,17 +0,0 @@
1
- igbot_base/__init__.py,sha256=c1e_ZUiuWoW-3o1kzHYZGIRivXRxDxF6hPX92yEt6DY,824
2
- igbot_base/agent.py,sha256=12ubgE_Vr7gtkRCwRQsE2pRHPyFHut8Ib1bN6FkUayU,199
3
- igbot_base/agent_response.py,sha256=eAps47djL_aWYn8P_BMpVGkPwO6m8nhltWWyh8qSG6E,1042
4
- igbot_base/exception_handler.py,sha256=BMzQpgP4jnnRuTcEItx0oMljTZmKgMRCHzpybHn88Ig,341
5
- igbot_base/llm.py,sha256=cdaGQchUcPI4E84u4Rc9HcmFpOfXvptjpR-wO9dBWs4,1494
6
- igbot_base/llmmemory.py,sha256=KslOeTSZwvHVyFglbFhPcb6_GCCXZOqHz5YBTzJ2mew,977
7
- igbot_base/models.py,sha256=15bitUZy4Z4JhZbLd_SMx5pD7m8YuZiIq-wYGumf0ws,622
8
- igbot_base/persistable_memory.py,sha256=fOrHPrWKXOULgyqVdNSshpccCZNnstYLYcoHCjQguOw,178
9
- igbot_base/prompt_template.py,sha256=kvbGEuKimY5-Lj024CvgBZSgnZCjaVd_RrTw8PxN0dQ,1117
10
- igbot_base/response_formats.py,sha256=Sp679VfkcyxsR19ddFEHTOM7Ox0u2WBhdji_Y9pVc2M,94
11
- igbot_base/retriever.py,sha256=lwQhJbPtlWxiRMoRzqz2VI6WFv-60B8jPvKQc8hdeeY,177
12
- igbot_base/tool.py,sha256=8QwzQuokkVSITCjZuZJeEbCvJU-n2yh9D-QauQex4Ko,319
13
- igbot_base/vectorstore.py,sha256=mQ-zoWDz6MiHDrJR5ZqB8HIxHAOrBtTBaj69XS-WoDw,853
14
- igbot_base-0.0.5.dist-info/METADATA,sha256=_nd1cUzD5C6xEu9FKEe9KZj5yLFAJaSo2oSAxOIU2Dg,210
15
- igbot_base-0.0.5.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
16
- igbot_base-0.0.5.dist-info/top_level.txt,sha256=RGpEN0pLsnfNLoLfpw1D_nLSyZwi3ggSaDq07o4ZEAI,11
17
- igbot_base-0.0.5.dist-info/RECORD,,