aient 1.1.96__tar.gz → 1.1.97__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.
- {aient-1.1.96 → aient-1.1.97}/PKG-INFO +1 -1
- {aient-1.1.96 → aient-1.1.97}/aient/architext/architext/core.py +4 -4
- {aient-1.1.96 → aient-1.1.97}/aient.egg-info/PKG-INFO +1 -1
- {aient-1.1.96 → aient-1.1.97}/pyproject.toml +1 -1
- {aient-1.1.96 → aient-1.1.97}/LICENSE +0 -0
- {aient-1.1.96 → aient-1.1.97}/README.md +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/__init__.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/architext/architext/__init__.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/architext/test/openai_client.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/architext/test/test.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/architext/test/test_save_load.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/core/__init__.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/core/log_config.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/core/models.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/core/request.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/core/response.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/core/test/test_base_api.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/core/test/test_geminimask.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/core/test/test_image.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/core/test/test_payload.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/core/utils.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/models/__init__.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/models/audio.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/models/base.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/models/chatgpt.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/plugins/__init__.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/plugins/arXiv.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/plugins/config.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/plugins/excute_command.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/plugins/get_time.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/plugins/image.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/plugins/list_directory.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/plugins/read_file.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/plugins/read_image.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/plugins/readonly.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/plugins/registry.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/plugins/run_python.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/plugins/websearch.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/plugins/write_file.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/utils/__init__.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/utils/prompt.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient/utils/scripts.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient.egg-info/SOURCES.txt +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient.egg-info/dependency_links.txt +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient.egg-info/requires.txt +0 -0
- {aient-1.1.96 → aient-1.1.97}/aient.egg-info/top_level.txt +0 -0
- {aient-1.1.96 → aient-1.1.97}/setup.cfg +0 -0
- {aient-1.1.96 → aient-1.1.97}/test/test_Web_crawler.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/test/test_ddg_search.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/test/test_google_search.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/test/test_ollama.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/test/test_plugin.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/test/test_search.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/test/test_url.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/test/test_whisper.py +0 -0
- {aient-1.1.96 → aient-1.1.97}/test/test_yjh.py +0 -0
@@ -93,8 +93,8 @@ class Texts(ContextProvider):
|
|
93
93
|
return self._text if self._text is not None else ""
|
94
94
|
|
95
95
|
class Tools(ContextProvider):
|
96
|
-
def __init__(self, tools_json: Optional[List[Dict]] = None):
|
97
|
-
super().__init__(
|
96
|
+
def __init__(self, tools_json: Optional[List[Dict]] = None, name: str = "tools"):
|
97
|
+
super().__init__(name)
|
98
98
|
self._tools_json = tools_json or []
|
99
99
|
def update(self, tools_json: List[Dict]):
|
100
100
|
self._tools_json = tools_json
|
@@ -105,8 +105,8 @@ class Tools(ContextProvider):
|
|
105
105
|
return f"<tools>{str(self._tools_json)}</tools>"
|
106
106
|
|
107
107
|
class Files(ContextProvider):
|
108
|
-
def __init__(self, *paths: Union[str, List[str]]):
|
109
|
-
super().__init__(
|
108
|
+
def __init__(self, *paths: Union[str, List[str]], name: str = "files"):
|
109
|
+
super().__init__(name)
|
110
110
|
self._files: Dict[str, str] = {}
|
111
111
|
|
112
112
|
file_paths: List[str] = []
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|