alita-sdk 0.3.312__py3-none-any.whl → 0.3.314__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.
- alita_sdk/runtime/toolkits/tools.py +0 -2
- alita_sdk/tools/memory/__init__.py +5 -2
- {alita_sdk-0.3.312.dist-info → alita_sdk-0.3.314.dist-info}/METADATA +1 -1
- {alita_sdk-0.3.312.dist-info → alita_sdk-0.3.314.dist-info}/RECORD +7 -7
- {alita_sdk-0.3.312.dist-info → alita_sdk-0.3.314.dist-info}/WHEEL +0 -0
- {alita_sdk-0.3.312.dist-info → alita_sdk-0.3.314.dist-info}/licenses/LICENSE +0 -0
- {alita_sdk-0.3.312.dist-info → alita_sdk-0.3.314.dist-info}/top_level.txt +0 -0
@@ -59,8 +59,6 @@ def get_tools(tools_list: list, alita_client, llm, memory_store: BaseStore = Non
|
|
59
59
|
llm=llm
|
60
60
|
))
|
61
61
|
elif tool['type'] == 'memory':
|
62
|
-
if memory_store is None:
|
63
|
-
raise ToolException(f"Memory store is not provided for memory tool: {tool.get('name', tool.get('toolkit_name', 'unknown'))}")
|
64
62
|
tools += MemoryToolkit.get_toolkit(
|
65
63
|
namespace=tool['settings'].get('namespace', str(tool['id'])),
|
66
64
|
pgvector_configuration=tool['settings'].get('pgvector_configuration', {}),
|
@@ -1,6 +1,6 @@
|
|
1
|
-
from typing import
|
1
|
+
from typing import List, Literal
|
2
2
|
|
3
|
-
from langchain_core.tools import BaseToolkit, BaseTool
|
3
|
+
from langchain_core.tools import BaseToolkit, BaseTool, ToolException
|
4
4
|
|
5
5
|
from alita_sdk.configurations.pgvector import PgVectorConfiguration
|
6
6
|
|
@@ -39,6 +39,7 @@ def get_tools(tools_list: list, memory_store=None):
|
|
39
39
|
namespace=tool['settings'].get('namespace', str(tool['id'])),
|
40
40
|
# username=tool['settings'].get('username', ''),
|
41
41
|
store=tool['settings'].get('store', memory_store),
|
42
|
+
pgvector_configuration=tool['settings'].get('pgvector_configuration', {}),
|
42
43
|
toolkit_name=tool.get('toolkit_name', '')
|
43
44
|
)
|
44
45
|
all_tools.extend(toolkit_instance.get_tools())
|
@@ -100,6 +101,8 @@ class MemoryToolkit(BaseToolkit):
|
|
100
101
|
# The store is not provided, attempt to create it from configuration
|
101
102
|
from ...runtime.langchain.store_manager import get_manager
|
102
103
|
conn_str = (kwargs.get('pgvector_configuration') or {}).get('connection_string', '')
|
104
|
+
if not conn_str:
|
105
|
+
raise ToolException("Connection string is required to create PostgresStore for memory toolkit.")
|
103
106
|
store = get_manager().get_store(conn_str)
|
104
107
|
|
105
108
|
# Validate store type
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: alita_sdk
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.314
|
4
4
|
Summary: SDK for building langchain agents using resources from Alita
|
5
5
|
Author-email: Artem Rozumenko <artyom.rozumenko@gmail.com>, Mikalai Biazruchka <mikalai_biazruchka@epam.com>, Roman Mitusov <roman_mitusov@epam.com>, Ivan Krakhmaliuk <lifedj27@gmail.com>, Artem Dubrovskiy <ad13box@gmail.com>
|
6
6
|
License-Expression: Apache-2.0
|
@@ -101,7 +101,7 @@ alita_sdk/runtime/toolkits/configurations.py,sha256=kIDAlnryPQfbZyFxV-9SzN2-Vefz
|
|
101
101
|
alita_sdk/runtime/toolkits/datasource.py,sha256=qk78OdPoReYPCWwahfkKLbKc4pfsu-061oXRryFLP6I,2498
|
102
102
|
alita_sdk/runtime/toolkits/prompt.py,sha256=WIpTkkVYWqIqOWR_LlSWz3ug8uO9tm5jJ7aZYdiGRn0,1192
|
103
103
|
alita_sdk/runtime/toolkits/subgraph.py,sha256=wwUK8JjPXkGzyVZ3tAukmvST6eGbqx_U11rpnmbrvtg,2105
|
104
|
-
alita_sdk/runtime/toolkits/tools.py,sha256=
|
104
|
+
alita_sdk/runtime/toolkits/tools.py,sha256=Ea3LO6voPNysdzVB7jYMZIqSMtda7LCq_6fkVfb8C54,7764
|
105
105
|
alita_sdk/runtime/toolkits/vectorstore.py,sha256=BGppQADa1ZiLO17fC0uCACTTEvPHlodEDYEzUcBRbAA,2901
|
106
106
|
alita_sdk/runtime/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
107
107
|
alita_sdk/runtime/tools/agent.py,sha256=m98QxOHwnCRTT9j18Olbb5UPS8-ZGeQaGiUyZJSyFck,3162
|
@@ -269,7 +269,7 @@ alita_sdk/tools/llm/llm_utils.py,sha256=6P2j-42JGbyqpO8lNRuEP8GEhja-LC9E-98jTelK
|
|
269
269
|
alita_sdk/tools/localgit/__init__.py,sha256=NScO0Eu-wl-rc63jjD5Qv1RXXB1qukSIJXx-yS_JQLI,2529
|
270
270
|
alita_sdk/tools/localgit/local_git.py,sha256=gsAftNcK7nMCd8VsIkwDLs2SoG0MgpYdkQG5tmoynkA,18074
|
271
271
|
alita_sdk/tools/localgit/tool.py,sha256=It_B24rMvFPurB355Oy5IShg2BsZTASsEoSS8hu2SXw,998
|
272
|
-
alita_sdk/tools/memory/__init__.py,sha256=
|
272
|
+
alita_sdk/tools/memory/__init__.py,sha256=aOF0-PAAqBZS3rI2IOezyLhZpn-WpV--ABy4J_eIAKo,4789
|
273
273
|
alita_sdk/tools/ocr/__init__.py,sha256=pvslKVXyJmK0q23FFDNieuc7RBIuzNXTjTNj-GqhGb0,3335
|
274
274
|
alita_sdk/tools/ocr/api_wrapper.py,sha256=08UF8wj1sR8DcW0z16pw19bgLatLkBF8dySW-Ds8iRk,29649
|
275
275
|
alita_sdk/tools/ocr/text_detection.py,sha256=1DBxt54r3_HdEi93QynSIVta3rH3UpIvy799TPtDTtk,23825
|
@@ -349,8 +349,8 @@ alita_sdk/tools/zephyr_scale/api_wrapper.py,sha256=A6CUEKjENt3mZlPU9lai88WV9esCD
|
|
349
349
|
alita_sdk/tools/zephyr_squad/__init__.py,sha256=0ne8XLJEQSLOWfzd2HdnqOYmQlUliKHbBED5kW_Vias,2895
|
350
350
|
alita_sdk/tools/zephyr_squad/api_wrapper.py,sha256=kmw_xol8YIYFplBLWTqP_VKPRhL_1ItDD0_vXTe_UuI,14906
|
351
351
|
alita_sdk/tools/zephyr_squad/zephyr_squad_cloud_client.py,sha256=R371waHsms4sllHCbijKYs90C-9Yu0sSR3N4SUfQOgU,5066
|
352
|
-
alita_sdk-0.3.
|
353
|
-
alita_sdk-0.3.
|
354
|
-
alita_sdk-0.3.
|
355
|
-
alita_sdk-0.3.
|
356
|
-
alita_sdk-0.3.
|
352
|
+
alita_sdk-0.3.314.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
353
|
+
alita_sdk-0.3.314.dist-info/METADATA,sha256=zmL9d8KWnZmuKvbhUXrbLn4HfljL2bvYyilxieU63Ys,18897
|
354
|
+
alita_sdk-0.3.314.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
355
|
+
alita_sdk-0.3.314.dist-info/top_level.txt,sha256=0vJYy5p_jK6AwVb1aqXr7Kgqgk3WDtQ6t5C-XI9zkmg,10
|
356
|
+
alita_sdk-0.3.314.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|