alita-sdk 0.3.310__py3-none-any.whl → 0.3.311__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 +1 -1
- alita_sdk/tools/base_indexer_toolkit.py +3 -1
- alita_sdk/tools/confluence/api_wrapper.py +2 -1
- alita_sdk/tools/figma/api_wrapper.py +7 -1
- alita_sdk/tools/memory/__init__.py +8 -2
- {alita_sdk-0.3.310.dist-info → alita_sdk-0.3.311.dist-info}/METADATA +1 -1
- {alita_sdk-0.3.310.dist-info → alita_sdk-0.3.311.dist-info}/RECORD +10 -10
- {alita_sdk-0.3.310.dist-info → alita_sdk-0.3.311.dist-info}/WHEEL +0 -0
- {alita_sdk-0.3.310.dist-info → alita_sdk-0.3.311.dist-info}/licenses/LICENSE +0 -0
- {alita_sdk-0.3.310.dist-info → alita_sdk-0.3.311.dist-info}/top_level.txt +0 -0
@@ -176,7 +176,7 @@ def _init_single_mcp_tool(toolkit_name, available_tool, alita, toolkit_settings)
|
|
176
176
|
tool_name = available_tool["name"]
|
177
177
|
return McpServerTool(
|
178
178
|
name=tool_name,
|
179
|
-
description=available_tool.get("description", ""),
|
179
|
+
description=f"MCP for a tool '{tool_name}': {available_tool.get("description", "")}",
|
180
180
|
args_schema=McpServerTool.create_pydantic_model_from_schema(
|
181
181
|
available_tool.get("inputSchema", {})
|
182
182
|
),
|
@@ -161,7 +161,7 @@ class BaseIndexerToolkit(VectorStoreWrapperBase):
|
|
161
161
|
self._log_tool_event(f"Indexing data into collection with suffix '{collection_suffix}'. It can take some time...")
|
162
162
|
self._log_tool_event(f"Loading the documents to index...{kwargs}")
|
163
163
|
documents = self._base_loader(**kwargs)
|
164
|
-
self._log_tool_event(f"Base documents were loaded. "
|
164
|
+
self._log_tool_event(f"Base documents were pre-loaded. "
|
165
165
|
f"Search for possible document duplicates and remove them from the indexing list...")
|
166
166
|
documents = self._reduce_duplicates(documents, collection_suffix)
|
167
167
|
self._log_tool_event(f"Duplicates were removed. "
|
@@ -216,6 +216,8 @@ class BaseIndexerToolkit(VectorStoreWrapperBase):
|
|
216
216
|
|
217
217
|
def _collect_dependencies(self, documents: Generator[Document, None, None]):
|
218
218
|
for document in documents:
|
219
|
+
self._log_tool_event(message=f"Collecting the dependencies for document ID "
|
220
|
+
f"'{document.metadata.get('id', 'N/A')}' to collect dependencies if any...")
|
219
221
|
dependencies = self._process_document(document)
|
220
222
|
yield document
|
221
223
|
for dep in dependencies:
|
@@ -848,7 +848,8 @@ class ConfluenceAPIWrapper(BaseVectorStoreToolApiWrapper):
|
|
848
848
|
logger.info(f" {document.metadata.get('id')}: {attachments}")
|
849
849
|
return
|
850
850
|
for attachment in attachments:
|
851
|
-
|
851
|
+
# TODO need to retrive content from other fields/sources if both attachment.get('content', '') and attachment.get('llm_analysis', '') are None
|
852
|
+
yield Document(page_content=attachment.get('content', '') or attachment.get('llm_analysis', '') or '', metadata=attachment.get('metadata', {}))
|
852
853
|
|
853
854
|
def _download_image(self, image_url):
|
854
855
|
"""
|
@@ -301,6 +301,12 @@ class FigmaApiWrapper(NonCodeIndexerToolkit):
|
|
301
301
|
figma_pages = [node for node in figma_pages if ('id' in node and node['id'].replace(':', '-') in node_ids_include)]
|
302
302
|
elif node_ids_exclude:
|
303
303
|
figma_pages = [node for node in figma_pages if ('id' in node and node['id'].replace(':', '-') not in node_ids_exclude)]
|
304
|
+
|
305
|
+
# if node_types_include is not provided, default to 'frame'
|
306
|
+
# to avoid downloading too many images and nodes which co=annot be rendered as images
|
307
|
+
if not node_types_include:
|
308
|
+
node_types_include = ['frame']
|
309
|
+
|
304
310
|
node_ids = [
|
305
311
|
child['id']
|
306
312
|
for page in figma_pages
|
@@ -371,7 +377,7 @@ class FigmaApiWrapper(NonCodeIndexerToolkit):
|
|
371
377
|
default=None)),
|
372
378
|
'node_types_include': (Optional[List[str]], Field(
|
373
379
|
description="List type of nodes to include in index: i.e. ['FRAME', 'COMPONENT', 'RECTANGLE', 'COMPONENT_SET', 'INSTANCE', 'VECTOR', ...].",
|
374
|
-
default=
|
380
|
+
default=['frame'])),
|
375
381
|
'node_types_exclude': (Optional[List[str]], Field(
|
376
382
|
description="List type of nodes to exclude from index. It is applied only if node_types_include is not provided: i.e. ['FRAME', 'COMPONENT', 'RECTANGLE', 'COMPONENT_SET', 'INSTANCE', 'VECTOR', ...]",
|
377
383
|
default=None))
|
@@ -61,7 +61,7 @@ class MemoryToolkit(BaseToolkit):
|
|
61
61
|
return create_model(
|
62
62
|
'memory',
|
63
63
|
namespace=(str, Field(description="Memory namespace", json_schema_extra={'toolkit_name': True})),
|
64
|
-
pgvector_configuration=(
|
64
|
+
pgvector_configuration=(PgVectorConfiguration, Field(description="PgVector Configuration",
|
65
65
|
json_schema_extra={
|
66
66
|
'configuration_types': ['pgvector']})),
|
67
67
|
selected_tools=(List[Literal[tuple(selected_tools)]],
|
@@ -79,7 +79,7 @@ class MemoryToolkit(BaseToolkit):
|
|
79
79
|
)
|
80
80
|
|
81
81
|
@classmethod
|
82
|
-
def get_toolkit(cls, namespace: str, store=None):
|
82
|
+
def get_toolkit(cls, namespace: str, store=None, **kwargs):
|
83
83
|
"""
|
84
84
|
Get toolkit with memory tools.
|
85
85
|
|
@@ -95,6 +95,12 @@ class MemoryToolkit(BaseToolkit):
|
|
95
95
|
"PostgreSQL dependencies (psycopg) are required for MemoryToolkit. "
|
96
96
|
"Install with: pip install psycopg[binary]"
|
97
97
|
)
|
98
|
+
|
99
|
+
if store is None:
|
100
|
+
# The store is not provided, attempt to create it from configuration
|
101
|
+
from ...runtime.langchain.store_manager import get_manager
|
102
|
+
conn_str = (kwargs.get('pgvector_configuration') or {}).get('connection_string', '')
|
103
|
+
store = get_manager().get_store(conn_str)
|
98
104
|
|
99
105
|
# Validate store type
|
100
106
|
if store is not None and not isinstance(store, PostgresStore):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: alita_sdk
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.311
|
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=5qCX_u9vUbhFcbS7uJ9h1EtsM7sGFhzj6LXFmPTHNMI,7852
|
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
|
@@ -133,7 +133,7 @@ alita_sdk/runtime/utils/toolkit_runtime.py,sha256=MU63Fpxj0b5_r1IUUc0Q3-PN9VwL7r
|
|
133
133
|
alita_sdk/runtime/utils/toolkit_utils.py,sha256=I9QFqnaqfVgN26LUr6s3XlBlG6y0CoHURnCzG7XcwVs,5311
|
134
134
|
alita_sdk/runtime/utils/utils.py,sha256=VXNLsdeTmf6snn9EtUyobv4yL-xzLhUcH8P_ORMifYc,675
|
135
135
|
alita_sdk/tools/__init__.py,sha256=jUj1ztC2FbkIUB-YYmiqaz_rqW7Il5kWzDPn1mJmj5w,10545
|
136
|
-
alita_sdk/tools/base_indexer_toolkit.py,sha256=
|
136
|
+
alita_sdk/tools/base_indexer_toolkit.py,sha256=3mQcSkc1w07PpRBdBW6oEmEGC_qFhBHHbWQCOVxS2-E,20363
|
137
137
|
alita_sdk/tools/elitea_base.py,sha256=3o59N8qcyguqakVIuPVgqIizvoURLQ7HOMPH8du2RZo,34558
|
138
138
|
alita_sdk/tools/non_code_indexer_toolkit.py,sha256=v9uq1POE1fQKCd152mbqDtF-HSe0qoDj83k4E5LAkMI,1080
|
139
139
|
alita_sdk/tools/ado/__init__.py,sha256=NnNYpNFW0_N_v1td_iekYOoQRRB7PIunbpT2f9ZFJM4,1201
|
@@ -227,7 +227,7 @@ alita_sdk/tools/code/loaders/codesearcher.py,sha256=XoXXZtIQZhvjIwZlnl_4wVGHC-3s
|
|
227
227
|
alita_sdk/tools/code/sonar/__init__.py,sha256=iPqj2PnUY4-btJjaDeWIPdn-c9L_uCr_qOoP_uwRoXw,3360
|
228
228
|
alita_sdk/tools/code/sonar/api_wrapper.py,sha256=nNqxcWN_6W8c0ckj-Er9HkNuAdgQLoWBXh5UyzNutis,2653
|
229
229
|
alita_sdk/tools/confluence/__init__.py,sha256=zRnPBM1c7VTRTS955HNc7AEGV5t8ACc2f9wBXmmeXao,6845
|
230
|
-
alita_sdk/tools/confluence/api_wrapper.py,sha256=
|
230
|
+
alita_sdk/tools/confluence/api_wrapper.py,sha256=3TOFmISMpheydXPbhURgXbEStpzTRadQ_5iPxmT90M8,84995
|
231
231
|
alita_sdk/tools/confluence/loader.py,sha256=4bf5qrJMEiJzuZp2NlxO2XObLD1w7fxss_WyMUpe8sg,9290
|
232
232
|
alita_sdk/tools/confluence/utils.py,sha256=Lxo6dBD0OlvM4o0JuK6qeB_4LV9BptiwJA9e1vqNcDw,435
|
233
233
|
alita_sdk/tools/custom_open_api/__init__.py,sha256=9aT5SPNPWcJC6jMZEM-3rUCXVULj_3-qJLQKmnreKNo,2537
|
@@ -235,7 +235,7 @@ alita_sdk/tools/custom_open_api/api_wrapper.py,sha256=sDSFpvEqpSvXHGiBISdQQcUecf
|
|
235
235
|
alita_sdk/tools/elastic/__init__.py,sha256=iwnSRppRpzvJ1da2K3Glu8Uu41MhBDCYbguboLkEbW0,2818
|
236
236
|
alita_sdk/tools/elastic/api_wrapper.py,sha256=pl8CqQxteJAGwyOhMcld-ZgtOTFwwbv42OITQVe8rM0,1948
|
237
237
|
alita_sdk/tools/figma/__init__.py,sha256=W6vIMMkZI2Lmpg6_CRRV3oadaIbVI-qTLmKUh6enqWs,4509
|
238
|
-
alita_sdk/tools/figma/api_wrapper.py,sha256=
|
238
|
+
alita_sdk/tools/figma/api_wrapper.py,sha256=s7AR6janhehyZi2_u3-I90_8MG_VO_LHo4WQucR3zHI,26103
|
239
239
|
alita_sdk/tools/github/__init__.py,sha256=2rHu0zZyZGnLC5CkHgDIhe14N9yCyaEfrrt7ydH8478,5191
|
240
240
|
alita_sdk/tools/github/api_wrapper.py,sha256=uDwYckdnpYRJtb0uZnDkaz2udvdDLVxuCh1tSwspsiU,8411
|
241
241
|
alita_sdk/tools/github/github_client.py,sha256=nxnSXsDul2PPbWvYZS8TmAFFmR-5ALyakNoV5LN2D4U,86617
|
@@ -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=is8JnOpFru_ifI8FISK1PYrYYd42Rq5IcOQgiHmTkxM,4547
|
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.311.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
353
|
+
alita_sdk-0.3.311.dist-info/METADATA,sha256=cqNLJH4Me1qHr-14ZXB5fAjn6ACgara6LEKrXuUBSvQ,18897
|
354
|
+
alita_sdk-0.3.311.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
355
|
+
alita_sdk-0.3.311.dist-info/top_level.txt,sha256=0vJYy5p_jK6AwVb1aqXr7Kgqgk3WDtQ6t5C-XI9zkmg,10
|
356
|
+
alita_sdk-0.3.311.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|