igbot-base 0.0.38__tar.gz → 0.0.39__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.38 → igbot_base-0.0.39}/PKG-INFO +1 -1
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/tool.py +8 -1
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base.egg-info/PKG-INFO +1 -1
- {igbot_base-0.0.38 → igbot_base-0.0.39}/pyproject.toml +1 -1
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/__init__.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/additional_data.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/agent.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/agent_response.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/base_exception.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/exception_handler.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/llm.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/llmmemory.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/logging_adapter.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/models.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/notifier.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/persistable_memory.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/prompt_template.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/response_formats.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/retriever.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/tokenizer.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base/vectorstore.py +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base.egg-info/SOURCES.txt +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base.egg-info/dependency_links.txt +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base.egg-info/requires.txt +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/igbot_base.egg-info/top_level.txt +0 -0
- {igbot_base-0.0.38 → igbot_base-0.0.39}/setup.cfg +0 -0
@@ -1,5 +1,12 @@
|
|
1
1
|
from abc import ABC, abstractmethod
|
2
|
+
from typing import Any, Optional, Callable
|
2
3
|
|
4
|
+
from pydantic import BaseModel
|
5
|
+
|
6
|
+
|
7
|
+
class ToolResponse(BaseModel):
|
8
|
+
message: Optional[str] = None
|
9
|
+
data: Optional[Any] = None
|
3
10
|
|
4
11
|
class Tool(ABC):
|
5
12
|
|
@@ -12,7 +19,7 @@ class Tool(ABC):
|
|
12
19
|
return self._name
|
13
20
|
|
14
21
|
@abstractmethod
|
15
|
-
def get_function(self):
|
22
|
+
def get_function(self) -> Callable[..., ToolResponse]:
|
16
23
|
pass
|
17
24
|
|
18
25
|
@abstractmethod
|
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
|
File without changes
|
File without changes
|