igbot-base 0.0.43__py3-none-any.whl → 0.0.44__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/agent.py +2 -0
- igbot_base/tool_merger_chain.py +3 -0
- igbot_base/tool_pre_merger_chain.py +4 -0
- {igbot_base-0.0.43.dist-info → igbot_base-0.0.44.dist-info}/METADATA +1 -1
- {igbot_base-0.0.43.dist-info → igbot_base-0.0.44.dist-info}/RECORD +7 -7
- {igbot_base-0.0.43.dist-info → igbot_base-0.0.44.dist-info}/WHEEL +0 -0
- {igbot_base-0.0.43.dist-info → igbot_base-0.0.44.dist-info}/top_level.txt +0 -0
igbot_base/agent.py
CHANGED
@@ -17,6 +17,7 @@ class Agent(ABC):
|
|
17
17
|
self.__ex_handler = exception_handler
|
18
18
|
|
19
19
|
def invoke(self, query, memory: LlmMemory) -> AgentResponse:
|
20
|
+
logger.debug("Invoke %s with query: %s", self.describe(), query)
|
20
21
|
try:
|
21
22
|
return self._invoke(query, memory)
|
22
23
|
except Exception as e:
|
@@ -24,6 +25,7 @@ class Agent(ABC):
|
|
24
25
|
return self.__ex_handler.handle(e)
|
25
26
|
|
26
27
|
def add_llm_message(self, llm_message, memory: LlmMemory) -> AgentResponse:
|
28
|
+
logger.debug("Invoke %s with llm_message: %s", self.describe(), llm_message)
|
27
29
|
try:
|
28
30
|
return self._add_llm_message(llm_message, memory)
|
29
31
|
except Exception as e:
|
igbot_base/tool_merger_chain.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
from igbot_base.tool_merger import ToolMerger
|
2
2
|
from igbot_base.tool import ToolResponse
|
3
|
+
from igbot_base.logging_adapter import get_logger
|
3
4
|
|
5
|
+
logger = get_logger("application")
|
4
6
|
|
5
7
|
class ToolMergerChain:
|
6
8
|
def __init__(self, mergers: list[ToolMerger]):
|
@@ -11,4 +13,5 @@ class ToolMergerChain:
|
|
11
13
|
supported_tools = merger.supports_tools()
|
12
14
|
matching_responses = [r for r in tool_responses if r.tool_name in supported_tools]
|
13
15
|
if len(matching_responses) != 0:
|
16
|
+
logger.debug("Merging responses with %s for tools: %s", merger, supported_tools)
|
14
17
|
merger.process_tool_results(matching_responses)
|
@@ -1,6 +1,9 @@
|
|
1
1
|
from igbot_base.tool_pre_merger import ToolPreMerger
|
2
2
|
from igbot_base.tool import ToolCall
|
3
3
|
|
4
|
+
from igbot_base.logging_adapter import get_logger
|
5
|
+
|
6
|
+
logger = get_logger("application")
|
4
7
|
|
5
8
|
class ToolPreMergerChain:
|
6
9
|
def __init__(self, mergers: list[ToolPreMerger]):
|
@@ -11,4 +14,5 @@ class ToolPreMergerChain:
|
|
11
14
|
supported_tools = merger.supports_tools()
|
12
15
|
matching_responses = [r for r in tool_responses if r.tool_name in supported_tools]
|
13
16
|
if len(matching_responses) != 0:
|
17
|
+
logger.debug("Merging responses with %s for tools: %s", merger, supported_tools)
|
14
18
|
merger.process_tool_results(matching_responses)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
igbot_base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
igbot_base/additional_data.py,sha256=CbuT4m4l4Kw_7yUVAyPpMMct0ED3yF91JVo79vqnXik,479
|
3
|
-
igbot_base/agent.py,sha256=
|
3
|
+
igbot_base/agent.py,sha256=Hhafojy0rU8XkMBhMm4twO_noxQc-Y-yudL-Wqoi8Lg,1734
|
4
4
|
igbot_base/agent_response.py,sha256=ujLaFkIw9he-X1YFIICTJvq_4pmzTvTF4txEfeZtKSA,1041
|
5
5
|
igbot_base/base_exception.py,sha256=uRZXwYdsER2y_Rlah1TaSXwR6Kb9t2lNyngar0p5YFk,2146
|
6
6
|
igbot_base/exception_handler.py,sha256=Er5LbNt2ga2-e0GSzkJw66E-NS1dN_2msTRyyac1qX8,536
|
@@ -16,11 +16,11 @@ igbot_base/retriever.py,sha256=YHBHxiuPttsIAtjwwIz0fa9q2uFtsg0WoMRCorCt1PM,635
|
|
16
16
|
igbot_base/tokenizer.py,sha256=WSR0GFc1eoMmyL58RAxtpb2iWCrqu9vQ2Ui-hqs4plw,1032
|
17
17
|
igbot_base/tool.py,sha256=Nc491Dp78g2uQLKqjHjIlFV_gzbtr9k1FM36LaUE2f8,732
|
18
18
|
igbot_base/tool_merger.py,sha256=_skJwyz8yuYjJ6oIvIp8QQlcgjdId3HtofUGLZgp-6s,322
|
19
|
-
igbot_base/tool_merger_chain.py,sha256=
|
19
|
+
igbot_base/tool_merger_chain.py,sha256=XOgoHCQ421TPGJ_R57A7VuQJ-TpltTSJtS3IDDpTCew,734
|
20
20
|
igbot_base/tool_pre_merger.py,sha256=wgBy-Wny8cxsNJR5biaVdYjBjAC91C9owbLaGddKD7g,313
|
21
|
-
igbot_base/tool_pre_merger_chain.py,sha256=
|
21
|
+
igbot_base/tool_pre_merger_chain.py,sha256=BG8wqKlND5U8CJ6KuYgcG9nPmWwPeiuYCWnjqmW3LKM,740
|
22
22
|
igbot_base/vectorstore.py,sha256=f-S9DmOuehC0rtVAPGz22Guo7ddb1jVw7BygzFJM624,928
|
23
|
-
igbot_base-0.0.
|
24
|
-
igbot_base-0.0.
|
25
|
-
igbot_base-0.0.
|
26
|
-
igbot_base-0.0.
|
23
|
+
igbot_base-0.0.44.dist-info/METADATA,sha256=FQ0u4wsp8szbL_JNfGPwpBbfPhhIraB6ZoVYTVjgpYg,235
|
24
|
+
igbot_base-0.0.44.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
25
|
+
igbot_base-0.0.44.dist-info/top_level.txt,sha256=RGpEN0pLsnfNLoLfpw1D_nLSyZwi3ggSaDq07o4ZEAI,11
|
26
|
+
igbot_base-0.0.44.dist-info/RECORD,,
|
File without changes
|
File without changes
|