igbot-base 0.0.23__py3-none-any.whl → 0.0.25__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 CHANGED
@@ -4,7 +4,7 @@ from igbot_base.agent_response import AgentResponse
4
4
 
5
5
  from igbot_base.exception_handler import ExceptionHandler, ReturnFailedResponseGracefully
6
6
  from igbot_base.logging_adapter import get_logger
7
- from llmmemory import LlmMemory
7
+ from igbot_base.llmmemory import LlmMemory
8
8
 
9
9
  logger = get_logger("application")
10
10
 
igbot_base/notifier.py ADDED
@@ -0,0 +1,21 @@
1
+ from abc import ABC, abstractmethod
2
+
3
+ from pydantic import BaseModel, field_validator
4
+
5
+
6
+ class Notification(BaseModel):
7
+ message: str
8
+
9
+ @field_validator("message")
10
+ @classmethod
11
+ def validate_message(cls, v: str) -> str:
12
+ if not v or not v.strip():
13
+ raise ValueError("Message cannot be empty or blank")
14
+ return v
15
+
16
+
17
+ class Notifier(ABC):
18
+
19
+ @abstractmethod
20
+ def notify(self, notification: Notification):
21
+ pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: igbot_base
3
- Version: 0.0.23
3
+ Version: 0.0.25
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
@@ -1,5 +1,5 @@
1
1
  igbot_base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- igbot_base/agent.py,sha256=MJX6gzS3Ch6bHZO_qQmfquBXUNhyUxsFaEmlkxj11Ms,1010
2
+ igbot_base/agent.py,sha256=pDpJ6DkzgAAli9T53bDSqzo6bWB6IxczfZYi9LjkDzM,1021
3
3
  igbot_base/agent_response.py,sha256=fmZLaPlpnolXWrPVtNah20nI3Cble21DMQybPJxMvrs,1041
4
4
  igbot_base/base_exception.py,sha256=uRZXwYdsER2y_Rlah1TaSXwR6Kb9t2lNyngar0p5YFk,2146
5
5
  igbot_base/exception_handler.py,sha256=Er5LbNt2ga2-e0GSzkJw66E-NS1dN_2msTRyyac1qX8,536
@@ -7,6 +7,7 @@ igbot_base/llm.py,sha256=0zul2Q3aiCpdhcLbTcpdSPkLdX7Dvwhhiv2V_KH7YRo,2157
7
7
  igbot_base/llmmemory.py,sha256=fhHrqYi3VTDsCc5riK0pbcIUH4rC_xYOJdFKZ_9zndM,1099
8
8
  igbot_base/logging_adapter.py,sha256=kMuAaQPCba2luk0-WPxAbPNJaBL1yZsaff35ltKWgww,256
9
9
  igbot_base/models.py,sha256=cgZwQ2GEeM_hCUxSwyls0b9CsjIsgImjzq7b3c289g4,1226
10
+ igbot_base/notifier.py,sha256=iZLU76LFQzNcz1A4fnsogdUSL_G3pP9XGT8ETlztlYU,455
10
11
  igbot_base/persistable_memory.py,sha256=867Z4l_awD23QSTFDK3uN9TEttKfDpxx9g19c7ULG1Y,167
11
12
  igbot_base/prompt_template.py,sha256=q7bnU2Rp2Cvm4ixEmKHCyuolTPan6CHfYVAomT5kp10,1573
12
13
  igbot_base/response_formats.py,sha256=Sp679VfkcyxsR19ddFEHTOM7Ox0u2WBhdji_Y9pVc2M,94
@@ -14,7 +15,7 @@ igbot_base/retriever.py,sha256=YHBHxiuPttsIAtjwwIz0fa9q2uFtsg0WoMRCorCt1PM,635
14
15
  igbot_base/tokenizer.py,sha256=WSR0GFc1eoMmyL58RAxtpb2iWCrqu9vQ2Ui-hqs4plw,1032
15
16
  igbot_base/tool.py,sha256=ghjuU3cK_VElHGStUl3IYf9dlRDOGM_aQucUQNUH3mU,431
16
17
  igbot_base/vectorstore.py,sha256=f-S9DmOuehC0rtVAPGz22Guo7ddb1jVw7BygzFJM624,928
17
- igbot_base-0.0.23.dist-info/METADATA,sha256=I3skWzfixIyRxLZ2RgPuJaghLt0gKjNAnaLz9oM_YYo,235
18
- igbot_base-0.0.23.dist-info/WHEEL,sha256=GHB6lJx2juba1wDgXDNlMTyM13ckjBMKf-OnwgKOCtA,91
19
- igbot_base-0.0.23.dist-info/top_level.txt,sha256=RGpEN0pLsnfNLoLfpw1D_nLSyZwi3ggSaDq07o4ZEAI,11
20
- igbot_base-0.0.23.dist-info/RECORD,,
18
+ igbot_base-0.0.25.dist-info/METADATA,sha256=fi5_8agHP32isSvyfipOUNME3wwR5tlhqynpyJYbzUM,235
19
+ igbot_base-0.0.25.dist-info/WHEEL,sha256=GHB6lJx2juba1wDgXDNlMTyM13ckjBMKf-OnwgKOCtA,91
20
+ igbot_base-0.0.25.dist-info/top_level.txt,sha256=RGpEN0pLsnfNLoLfpw1D_nLSyZwi3ggSaDq07o4ZEAI,11
21
+ igbot_base-0.0.25.dist-info/RECORD,,