igbot-base 0.0.33__tar.gz → 0.0.35__tar.gz
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-0.0.33 → igbot_base-0.0.35}/PKG-INFO +1 -1
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/agent.py +11 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/llmmemory.py +1 -1
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base.egg-info/PKG-INFO +1 -1
- {igbot_base-0.0.33 → igbot_base-0.0.35}/pyproject.toml +1 -1
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/__init__.py +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/agent_response.py +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/base_exception.py +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/exception_handler.py +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/llm.py +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/logging_adapter.py +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/models.py +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/notifier.py +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/persistable_memory.py +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/prompt_template.py +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/response_formats.py +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/retriever.py +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/tokenizer.py +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/tool.py +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base/vectorstore.py +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base.egg-info/SOURCES.txt +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base.egg-info/dependency_links.txt +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base.egg-info/requires.txt +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/igbot_base.egg-info/top_level.txt +0 -0
- {igbot_base-0.0.33 → igbot_base-0.0.35}/setup.cfg +0 -0
@@ -22,10 +22,21 @@ class Agent(ABC):
|
|
22
22
|
logger.exception("Exception occurred at %s for query %s: %s", self.describe(), query, e)
|
23
23
|
return self.__ex_handler.handle(e)
|
24
24
|
|
25
|
+
def add_llm_message(self, llm_message, memory: LlmMemory) -> AgentResponse:
|
26
|
+
try:
|
27
|
+
return self._add_llm_message(llm_message, memory)
|
28
|
+
except Exception as e:
|
29
|
+
logger.exception("Exception occurred at %s for llm_message %s: %s", self.describe(), llm_message, e)
|
30
|
+
return self.__ex_handler.handle(e)
|
31
|
+
|
25
32
|
@abstractmethod
|
26
33
|
def _invoke(self, query, memory: LlmMemory) -> AgentResponse:
|
27
34
|
pass
|
28
35
|
|
36
|
+
@abstractmethod
|
37
|
+
def _add_llm_message(self, llm_message, memory: LlmMemory) -> AgentResponse:
|
38
|
+
pass
|
39
|
+
|
29
40
|
@abstractmethod
|
30
41
|
def describe(self):
|
31
42
|
pass
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|