alita-sdk 0.3.396__py3-none-any.whl → 0.3.398__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.
Potentially problematic release.
This version of alita-sdk might be problematic. Click here for more details.
- alita_sdk/runtime/toolkits/tools.py +1 -0
- alita_sdk/runtime/tools/llm.py +2 -0
- alita_sdk/tools/__init__.py +4 -0
- alita_sdk/tools/base_indexer_toolkit.py +1 -1
- {alita_sdk-0.3.396.dist-info → alita_sdk-0.3.398.dist-info}/METADATA +1 -1
- {alita_sdk-0.3.396.dist-info → alita_sdk-0.3.398.dist-info}/RECORD +9 -9
- {alita_sdk-0.3.396.dist-info → alita_sdk-0.3.398.dist-info}/WHEEL +0 -0
- {alita_sdk-0.3.396.dist-info → alita_sdk-0.3.398.dist-info}/licenses/LICENSE +0 -0
- {alita_sdk-0.3.396.dist-info → alita_sdk-0.3.398.dist-info}/top_level.txt +0 -0
|
@@ -96,6 +96,7 @@ def get_tools(tools_list: list, alita_client, llm, memory_store: BaseStore = Non
|
|
|
96
96
|
pgvector_configuration=tool['settings'].get('pgvector_configuration', {}),
|
|
97
97
|
embedding_model=tool['settings'].get('embedding_model'),
|
|
98
98
|
collection_name=f"{tool.get('toolkit_name')}",
|
|
99
|
+
collection_schema = str(tool['id'])
|
|
99
100
|
).get_tools())
|
|
100
101
|
elif tool['type'] == 'vectorstore':
|
|
101
102
|
tools.extend(VectorStoreToolkit.get_toolkit(
|
alita_sdk/runtime/tools/llm.py
CHANGED
|
@@ -149,6 +149,8 @@ class LLMNode(BaseTool):
|
|
|
149
149
|
|
|
150
150
|
output_msgs = {"messages": new_messages}
|
|
151
151
|
if self.output_variables:
|
|
152
|
+
if self.output_variables[0] == 'messages':
|
|
153
|
+
return output_msgs
|
|
152
154
|
output_msgs[self.output_variables[0]] = current_completion.content if current_completion else None
|
|
153
155
|
|
|
154
156
|
return output_msgs
|
alita_sdk/tools/__init__.py
CHANGED
|
@@ -113,6 +113,10 @@ def get_tools(tools_list, alita, llm, store: Optional[BaseStore] = None, *args,
|
|
|
113
113
|
elif tool_type in AVAILABLE_TOOLS and 'get_tools' in AVAILABLE_TOOLS[tool_type]:
|
|
114
114
|
try:
|
|
115
115
|
get_tools_func = AVAILABLE_TOOLS[tool_type]['get_tools']
|
|
116
|
+
if tool['settings'].get('pgvector_configuration'):
|
|
117
|
+
# Set collection schema to toolkit_id and put it to pgvector configuration
|
|
118
|
+
# to propagate it to the all toolkits level from single place
|
|
119
|
+
tool['settings']['pgvector_configuration']['collection_schema'] = str(tool['id'])
|
|
116
120
|
tools.extend(get_tools_func(tool))
|
|
117
121
|
|
|
118
122
|
except Exception as e:
|
|
@@ -110,7 +110,7 @@ class BaseIndexerToolkit(VectorStoreWrapperBase):
|
|
|
110
110
|
def __init__(self, **kwargs):
|
|
111
111
|
conn = kwargs.get('connection_string', None)
|
|
112
112
|
connection_string = conn.get_secret_value() if isinstance(conn, SecretStr) else conn
|
|
113
|
-
collection_name = kwargs.get('
|
|
113
|
+
collection_name = kwargs.get('collection_schema')
|
|
114
114
|
|
|
115
115
|
if 'vectorstore_type' not in kwargs:
|
|
116
116
|
kwargs['vectorstore_type'] = 'PGVector'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: alita_sdk
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.398
|
|
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
|
|
@@ -102,7 +102,7 @@ alita_sdk/runtime/toolkits/configurations.py,sha256=kIDAlnryPQfbZyFxV-9SzN2-Vefz
|
|
|
102
102
|
alita_sdk/runtime/toolkits/datasource.py,sha256=qk78OdPoReYPCWwahfkKLbKc4pfsu-061oXRryFLP6I,2498
|
|
103
103
|
alita_sdk/runtime/toolkits/prompt.py,sha256=WIpTkkVYWqIqOWR_LlSWz3ug8uO9tm5jJ7aZYdiGRn0,1192
|
|
104
104
|
alita_sdk/runtime/toolkits/subgraph.py,sha256=wwUK8JjPXkGzyVZ3tAukmvST6eGbqx_U11rpnmbrvtg,2105
|
|
105
|
-
alita_sdk/runtime/toolkits/tools.py,sha256=
|
|
105
|
+
alita_sdk/runtime/toolkits/tools.py,sha256=C2Y2_58H4gaiBt8SHyxql7a3gRYVGYYe0W98Huf3vMs,9373
|
|
106
106
|
alita_sdk/runtime/toolkits/vectorstore.py,sha256=BGppQADa1ZiLO17fC0uCACTTEvPHlodEDYEzUcBRbAA,2901
|
|
107
107
|
alita_sdk/runtime/tools/__init__.py,sha256=Fx7iHqkzA90-KfjdcUUzMUI_7kDarjuTsSpSzOW2pN0,568
|
|
108
108
|
alita_sdk/runtime/tools/agent.py,sha256=m98QxOHwnCRTT9j18Olbb5UPS8-ZGeQaGiUyZJSyFck,3162
|
|
@@ -114,7 +114,7 @@ alita_sdk/runtime/tools/function.py,sha256=jk_JrtuYByR9Df5EFOGFheB9HktNPJcOwf4js
|
|
|
114
114
|
alita_sdk/runtime/tools/graph.py,sha256=7jImBBSEdP5Mjnn2keOiyUwdGDFhEXLUrgUiugO3mgA,3503
|
|
115
115
|
alita_sdk/runtime/tools/image_generation.py,sha256=Kls9D_ke_SK7xmVr7I9SlQcAEBJc86gf66haN0qIj9k,7469
|
|
116
116
|
alita_sdk/runtime/tools/indexer_tool.py,sha256=whSLPevB4WD6dhh2JDXEivDmTvbjiMV1MrPl9cz5eLA,4375
|
|
117
|
-
alita_sdk/runtime/tools/llm.py,sha256=
|
|
117
|
+
alita_sdk/runtime/tools/llm.py,sha256=rn7gYn__yLyKyou61SN3DadtWzY3pcYR1G2IBbrtL9M,15452
|
|
118
118
|
alita_sdk/runtime/tools/loop.py,sha256=uds0WhZvwMxDVFI6MZHrcmMle637cQfBNg682iLxoJA,8335
|
|
119
119
|
alita_sdk/runtime/tools/loop_output.py,sha256=U4hO9PCQgWlXwOq6jdmCGbegtAxGAPXObSxZQ3z38uk,8069
|
|
120
120
|
alita_sdk/runtime/tools/mcp_server_tool.py,sha256=MhLxZJ44LYrB_0GrojmkyqKoDRaqIHkEQAsg718ipog,4277
|
|
@@ -135,8 +135,8 @@ alita_sdk/runtime/utils/streamlit.py,sha256=GQ69CsjfRMcGXcCrslL0Uoj24Cl07Jeji0rZ
|
|
|
135
135
|
alita_sdk/runtime/utils/toolkit_runtime.py,sha256=MU63Fpxj0b5_r1IUUc0Q3-PN9VwL7rUxp2MRR4tmYR8,5136
|
|
136
136
|
alita_sdk/runtime/utils/toolkit_utils.py,sha256=I9QFqnaqfVgN26LUr6s3XlBlG6y0CoHURnCzG7XcwVs,5311
|
|
137
137
|
alita_sdk/runtime/utils/utils.py,sha256=PJK8A-JVIzY1IowOjGG8DIqsIiEFe65qDKvFcjJCKWA,1041
|
|
138
|
-
alita_sdk/tools/__init__.py,sha256=
|
|
139
|
-
alita_sdk/tools/base_indexer_toolkit.py,sha256=
|
|
138
|
+
alita_sdk/tools/__init__.py,sha256=6g3Y2zI88IEgVu3BhmsBJfqrV0DFuFehkpID_ip0Eus,11038
|
|
139
|
+
alita_sdk/tools/base_indexer_toolkit.py,sha256=7UTcrmvGvmIBF3WGKrsEp7zJL-XB1JIgaRkbE1ZSS9A,26439
|
|
140
140
|
alita_sdk/tools/code_indexer_toolkit.py,sha256=p3zVnCnQTUf7JUGra9Rl6GEK2W1-hvvz0Xsgz0v0muM,7292
|
|
141
141
|
alita_sdk/tools/elitea_base.py,sha256=34fmVdYgd2YXifU5LFNjMQysr4OOIZ6AOZjq4GxLgSw,34417
|
|
142
142
|
alita_sdk/tools/non_code_indexer_toolkit.py,sha256=6Lrqor1VeSLbPLDHAfg_7UAUqKFy1r_n6bdsc4-ak98,1315
|
|
@@ -353,8 +353,8 @@ alita_sdk/tools/zephyr_scale/api_wrapper.py,sha256=kT0TbmMvuKhDUZc0i7KO18O38JM9S
|
|
|
353
353
|
alita_sdk/tools/zephyr_squad/__init__.py,sha256=0ne8XLJEQSLOWfzd2HdnqOYmQlUliKHbBED5kW_Vias,2895
|
|
354
354
|
alita_sdk/tools/zephyr_squad/api_wrapper.py,sha256=kmw_xol8YIYFplBLWTqP_VKPRhL_1ItDD0_vXTe_UuI,14906
|
|
355
355
|
alita_sdk/tools/zephyr_squad/zephyr_squad_cloud_client.py,sha256=R371waHsms4sllHCbijKYs90C-9Yu0sSR3N4SUfQOgU,5066
|
|
356
|
-
alita_sdk-0.3.
|
|
357
|
-
alita_sdk-0.3.
|
|
358
|
-
alita_sdk-0.3.
|
|
359
|
-
alita_sdk-0.3.
|
|
360
|
-
alita_sdk-0.3.
|
|
356
|
+
alita_sdk-0.3.398.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
357
|
+
alita_sdk-0.3.398.dist-info/METADATA,sha256=6rAbg6LkGWFmyw9vRpvzBhP1C3C4NStMiLeAb-oiDVY,19071
|
|
358
|
+
alita_sdk-0.3.398.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
359
|
+
alita_sdk-0.3.398.dist-info/top_level.txt,sha256=0vJYy5p_jK6AwVb1aqXr7Kgqgk3WDtQ6t5C-XI9zkmg,10
|
|
360
|
+
alita_sdk-0.3.398.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|