igbot-base 0.0.17__py3-none-any.whl → 0.0.18__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/base_exception.py +13 -18
- {igbot_base-0.0.17.dist-info → igbot_base-0.0.18.dist-info}/METADATA +1 -1
- {igbot_base-0.0.17.dist-info → igbot_base-0.0.18.dist-info}/RECORD +5 -5
- {igbot_base-0.0.17.dist-info → igbot_base-0.0.18.dist-info}/WHEEL +0 -0
- {igbot_base-0.0.17.dist-info → igbot_base-0.0.18.dist-info}/top_level.txt +0 -0
igbot_base/base_exception.py
CHANGED
@@ -1,9 +1,4 @@
|
|
1
|
-
|
2
|
-
from igbot_base.llm import Llm
|
3
|
-
from igbot_base.llmmemory import LlmMemory
|
4
|
-
from igbot_base.prompt_template import Prompt
|
5
|
-
from igbot_base.retriever import Retriever
|
6
|
-
from igbot_base.tool import Tool
|
1
|
+
|
7
2
|
|
8
3
|
|
9
4
|
class IgBotBaseException(Exception):
|
@@ -22,9 +17,9 @@ class IgBotBaseException(Exception):
|
|
22
17
|
|
23
18
|
class BaseAgentException(IgBotBaseException):
|
24
19
|
|
25
|
-
def __init__(self, message, agent:
|
20
|
+
def __init__(self, message, agent: object, cause: Exception = None):
|
26
21
|
super().__init__(message, cause)
|
27
|
-
self.agent = agent
|
22
|
+
self.agent = agent.__str__()
|
28
23
|
|
29
24
|
def __str__(self):
|
30
25
|
result = super().__str__()
|
@@ -33,9 +28,9 @@ class BaseAgentException(IgBotBaseException):
|
|
33
28
|
|
34
29
|
class BaseLlmException(IgBotBaseException):
|
35
30
|
|
36
|
-
def __init__(self, message, llm:
|
31
|
+
def __init__(self, message, llm: object, cause: Exception = None):
|
37
32
|
super().__init__(message, cause)
|
38
|
-
self.llm = llm
|
33
|
+
self.llm = llm.__str__()
|
39
34
|
|
40
35
|
def __str__(self):
|
41
36
|
result = super().__str__()
|
@@ -44,9 +39,9 @@ class BaseLlmException(IgBotBaseException):
|
|
44
39
|
|
45
40
|
class BaseMemoryException(IgBotBaseException):
|
46
41
|
|
47
|
-
def __init__(self, message, memory:
|
42
|
+
def __init__(self, message, memory: object, cause: Exception = None):
|
48
43
|
super().__init__(message, cause)
|
49
|
-
self.memory = memory
|
44
|
+
self.memory = memory.__str__()
|
50
45
|
|
51
46
|
def __str__(self):
|
52
47
|
result = super().__str__()
|
@@ -55,9 +50,9 @@ class BaseMemoryException(IgBotBaseException):
|
|
55
50
|
|
56
51
|
class BasePromptException(IgBotBaseException):
|
57
52
|
|
58
|
-
def __init__(self, message, prompt:
|
53
|
+
def __init__(self, message, prompt: object, cause: Exception = None):
|
59
54
|
super().__init__(message, cause)
|
60
|
-
self.prompt = prompt
|
55
|
+
self.prompt = prompt.__str__()
|
61
56
|
|
62
57
|
def __str__(self):
|
63
58
|
result = super().__str__()
|
@@ -66,9 +61,9 @@ class BasePromptException(IgBotBaseException):
|
|
66
61
|
|
67
62
|
class BaseRetrieverException(IgBotBaseException):
|
68
63
|
|
69
|
-
def __init__(self, message, retriever:
|
64
|
+
def __init__(self, message, retriever: object, cause: Exception = None):
|
70
65
|
super().__init__(message, cause)
|
71
|
-
self.retriever = retriever
|
66
|
+
self.retriever = retriever.__str__()
|
72
67
|
|
73
68
|
def __str__(self):
|
74
69
|
result = super().__str__()
|
@@ -77,9 +72,9 @@ class BaseRetrieverException(IgBotBaseException):
|
|
77
72
|
|
78
73
|
class BaseToolException(IgBotBaseException):
|
79
74
|
|
80
|
-
def __init__(self, message, tool:
|
75
|
+
def __init__(self, message, tool: object, cause: Exception = None):
|
81
76
|
super().__init__(message, cause)
|
82
|
-
self.tool = tool
|
77
|
+
self.tool = tool.__str__()
|
83
78
|
|
84
79
|
def __str__(self):
|
85
80
|
result = super().__str__()
|
@@ -1,7 +1,7 @@
|
|
1
1
|
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
|
-
igbot_base/base_exception.py,sha256=
|
4
|
+
igbot_base/base_exception.py,sha256=uRZXwYdsER2y_Rlah1TaSXwR6Kb9t2lNyngar0p5YFk,2146
|
5
5
|
igbot_base/exception_handler.py,sha256=Er5LbNt2ga2-e0GSzkJw66E-NS1dN_2msTRyyac1qX8,536
|
6
6
|
igbot_base/llm.py,sha256=0zul2Q3aiCpdhcLbTcpdSPkLdX7Dvwhhiv2V_KH7YRo,2157
|
7
7
|
igbot_base/llmmemory.py,sha256=I6eSBPW1DK8UNiHhayon-DLbSbWSinO_EwM5S8C3tHA,1090
|
@@ -13,7 +13,7 @@ igbot_base/response_formats.py,sha256=Sp679VfkcyxsR19ddFEHTOM7Ox0u2WBhdji_Y9pVc2
|
|
13
13
|
igbot_base/retriever.py,sha256=YHBHxiuPttsIAtjwwIz0fa9q2uFtsg0WoMRCorCt1PM,635
|
14
14
|
igbot_base/tool.py,sha256=ghjuU3cK_VElHGStUl3IYf9dlRDOGM_aQucUQNUH3mU,431
|
15
15
|
igbot_base/vectorstore.py,sha256=f-S9DmOuehC0rtVAPGz22Guo7ddb1jVw7BygzFJM624,928
|
16
|
-
igbot_base-0.0.
|
17
|
-
igbot_base-0.0.
|
18
|
-
igbot_base-0.0.
|
19
|
-
igbot_base-0.0.
|
16
|
+
igbot_base-0.0.18.dist-info/METADATA,sha256=Zmc1RwJdLrk6fRN8ZC3k7YejC071HuQDMUr8TXJtQXU,211
|
17
|
+
igbot_base-0.0.18.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
18
|
+
igbot_base-0.0.18.dist-info/top_level.txt,sha256=RGpEN0pLsnfNLoLfpw1D_nLSyZwi3ggSaDq07o4ZEAI,11
|
19
|
+
igbot_base-0.0.18.dist-info/RECORD,,
|
File without changes
|
File without changes
|