alita-sdk 0.3.292__py3-none-any.whl → 0.3.293__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.
@@ -79,7 +79,7 @@ def parse_code_files_for_db(file_content_generator: Generator[str, None, None],
79
79
  for splitted_document in splitted_documents:
80
80
  metadata = {
81
81
  "filename": file_name,
82
- "method_name": node.name,
82
+ "method_name": node.name if node.name else 'unknown',
83
83
  "language": programming_language.value,
84
84
  }
85
85
  commit_hash = data.get("commit_hash")
@@ -628,7 +628,11 @@ class BaseCodeToolApiWrapper(BaseVectorStoreToolApiWrapper):
628
628
  for idx, file in enumerate(_files, 1):
629
629
  if is_whitelisted(file) and not is_blacklisted(file):
630
630
  # read file ONLY if it matches whitelist and does not match blacklist
631
- file_content = self._read_file(file, self.__get_branch(branch))
631
+ try:
632
+ file_content = self._read_file(file, self.__get_branch(branch))
633
+ except Exception as e:
634
+ logger.error(f"Failed to read file {file}: {e}")
635
+ file_content = ""
632
636
  if not file_content:
633
637
  # empty file, skip
634
638
  continue
@@ -1,7 +1,7 @@
1
1
  # api_wrapper.py
2
2
  from typing import Any, Dict, List, Optional
3
3
  import fnmatch
4
- from alita_sdk.tools.elitea_base import BaseCodeToolApiWrapper
4
+ from ...tools.elitea_base import BaseCodeToolApiWrapper
5
5
  from pydantic import create_model, Field, model_validator, SecretStr, PrivateAttr
6
6
 
7
7
  AppendFileModel = create_model(
@@ -110,7 +110,7 @@ class GitLabAPIWrapper(BaseCodeToolApiWrapper):
110
110
  @classmethod
111
111
  def validate_toolkit(cls, values: Dict) -> Dict:
112
112
  try:
113
- import gitlab
113
+ import gitlab
114
114
  except ImportError:
115
115
  raise ImportError(
116
116
  "python-gitlab is not installed. "
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: alita_sdk
3
- Version: 0.3.292
3
+ Version: 0.3.293
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 <lifedjik@gmail.com>, Artem Dubrovskiy <ad13box@gmail.com>
6
6
  License-Expression: Apache-2.0
@@ -133,7 +133,7 @@ alita_sdk/runtime/utils/toolkit_utils.py,sha256=I9QFqnaqfVgN26LUr6s3XlBlG6y0CoHU
133
133
  alita_sdk/runtime/utils/utils.py,sha256=VXNLsdeTmf6snn9EtUyobv4yL-xzLhUcH8P_ORMifYc,675
134
134
  alita_sdk/tools/__init__.py,sha256=8oFahbggsv8h7hEqqeQ4iF6g2m85Ki17iSeknviCNis,10613
135
135
  alita_sdk/tools/base_indexer_toolkit.py,sha256=3s8YRx_ambQQXGOKdlt_sRqREbrzFgm9zCWgxWsPHMU,20155
136
- alita_sdk/tools/elitea_base.py,sha256=EBCgrqfaHwyhq510svtDEB0i5pizazeIPHKD1acsKAk,33121
136
+ alita_sdk/tools/elitea_base.py,sha256=SqtXuRVCmM1HfCvz-1MaoCnk8caUgpvI6RrK6RYbwkY,33308
137
137
  alita_sdk/tools/non_code_indexer_toolkit.py,sha256=v9uq1POE1fQKCd152mbqDtF-HSe0qoDj83k4E5LAkMI,1080
138
138
  alita_sdk/tools/ado/__init__.py,sha256=u2tdDgufGuDb-7lIgKKQlqgStL9Wd1gzNmRNYems2c0,1267
139
139
  alita_sdk/tools/ado/utils.py,sha256=PTCludvaQmPLakF2EbCGy66Mro4-rjDtavVP-xcB2Wc,1252
@@ -187,7 +187,7 @@ alita_sdk/tools/chunkers/__init__.py,sha256=5Nq--vAyECTh85HhDr0qEB-2UPXHXZWefP8h
187
187
  alita_sdk/tools/chunkers/models.py,sha256=NNkLSljZboYDj6vbqeHmcjj9JrTHbkVWmoHGsL98q3k,3032
188
188
  alita_sdk/tools/chunkers/utils.py,sha256=gOyDHhXSH6Wlmxj_OsMOa2vydZuHD6HZql4PH-SYcTw,192
189
189
  alita_sdk/tools/chunkers/code/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
190
- alita_sdk/tools/chunkers/code/codeparser.py,sha256=tfLP_NlASOuHchXnGN5jYzMjl2-05NsGxzKScLLRxRg,4257
190
+ alita_sdk/tools/chunkers/code/codeparser.py,sha256=-cDixCIRsYCpIody1Ltwh-UGzYUzOmoFMgczwnBZ0M0,4285
191
191
  alita_sdk/tools/chunkers/code/constants.py,sha256=7U74oc2ce7d0KfaqmBdcFGOdfOGEdidhm1B9QsdyX8w,3457
192
192
  alita_sdk/tools/chunkers/code/treesitter/__init__.py,sha256=8EfwDHOG8l0DQCIU7XW5YnxwrhI7TTyE0ef_9m4CWEI,580
193
193
  alita_sdk/tools/chunkers/code/treesitter/treesitter.py,sha256=70mBH4Gg8Gl-iTEfT7eT28EBvnVaXmF_go5-d0YZ6zE,3519
@@ -243,7 +243,7 @@ alita_sdk/tools/github/schemas.py,sha256=yFsqivfjCPRk9GxFJrL8sTz6nnjFCZ0j5DIfPtG
243
243
  alita_sdk/tools/github/tool.py,sha256=Jnnv5lenV5ds8AAdyo2m8hSzyJ117HZBjzHC6T1ck-M,1037
244
244
  alita_sdk/tools/github/tool_prompts.py,sha256=y6ZW_FpUCE87Uop3WuQAZVRnzxO5t7xjBOI5bCqiluw,30194
245
245
  alita_sdk/tools/gitlab/__init__.py,sha256=_ZmoZaaxJ9qmkTSZ8xsAiXMqR075GHvW1w6USvEyKf8,4478
246
- alita_sdk/tools/gitlab/api_wrapper.py,sha256=x2AdR4CkqnMPxVOWwIAgxXuQuzel58drz8m2jyf2R0M,21833
246
+ alita_sdk/tools/gitlab/api_wrapper.py,sha256=opBIlIizZkBq0XKguTOr2EaIQVm_Ohk93LpMaIwgIlk,21825
247
247
  alita_sdk/tools/gitlab/tools.py,sha256=vOGTlSaGaFmWn6LS6YFP-FuTqUPun9vnv1VrUcUHAZQ,16500
248
248
  alita_sdk/tools/gitlab/utils.py,sha256=Z2XiqIg54ouqqt1to-geFybmkCb1I6bpE91wfnINH1I,2320
249
249
  alita_sdk/tools/gitlab_org/__init__.py,sha256=YnKmILGaaC-ws6xgh-DAbELxqwLwIIyBs2kqgX3GOf4,3765
@@ -348,8 +348,8 @@ alita_sdk/tools/zephyr_scale/api_wrapper.py,sha256=2M6yFoOmfH5BwxMwTLQO76yD0Ydfv
348
348
  alita_sdk/tools/zephyr_squad/__init__.py,sha256=0AI_j27xVO5Gk5HQMFrqPTd4uvuVTpiZUicBrdfEpKg,2796
349
349
  alita_sdk/tools/zephyr_squad/api_wrapper.py,sha256=kmw_xol8YIYFplBLWTqP_VKPRhL_1ItDD0_vXTe_UuI,14906
350
350
  alita_sdk/tools/zephyr_squad/zephyr_squad_cloud_client.py,sha256=R371waHsms4sllHCbijKYs90C-9Yu0sSR3N4SUfQOgU,5066
351
- alita_sdk-0.3.292.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
352
- alita_sdk-0.3.292.dist-info/METADATA,sha256=MDskVNgQodg7ergC1j4qH_nuw0W7bfnV1-sVIxkL8SA,18897
353
- alita_sdk-0.3.292.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
354
- alita_sdk-0.3.292.dist-info/top_level.txt,sha256=0vJYy5p_jK6AwVb1aqXr7Kgqgk3WDtQ6t5C-XI9zkmg,10
355
- alita_sdk-0.3.292.dist-info/RECORD,,
351
+ alita_sdk-0.3.293.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
352
+ alita_sdk-0.3.293.dist-info/METADATA,sha256=cUm5VnSlZBqfKbdlWpVQckMZtCRsQ2lynovRyjl513Q,18897
353
+ alita_sdk-0.3.293.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
354
+ alita_sdk-0.3.293.dist-info/top_level.txt,sha256=0vJYy5p_jK6AwVb1aqXr7Kgqgk3WDtQ6t5C-XI9zkmg,10
355
+ alita_sdk-0.3.293.dist-info/RECORD,,