alita-sdk 0.3.278__py3-none-any.whl → 0.3.279__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.
@@ -5,7 +5,7 @@ class SqlConfiguration(BaseModel):
5
5
  model_config = ConfigDict(
6
6
  json_schema_extra={
7
7
  "metadata": {
8
- "label": "SQL Database",
8
+ "label": "SQL",
9
9
  "icon_url": "sql.svg",
10
10
  "section": "credentials",
11
11
  "type": "sql",
@@ -15,6 +15,6 @@ class SqlConfiguration(BaseModel):
15
15
  }
16
16
  )
17
17
  host: str = Field(description="Database host")
18
- port: int = Field(description="Database port")
18
+ port: int = Field(description="Database port", default=None)
19
19
  username: str = Field(description="Database username")
20
20
  password: SecretStr = Field(description="Database password", json_schema_extra={'secret': True})
@@ -7,7 +7,7 @@ class XrayConfiguration(BaseModel):
7
7
  model_config = ConfigDict(
8
8
  json_schema_extra={
9
9
  "metadata": {
10
- "label": "Xray",
10
+ "label": "Xray Cloud",
11
11
  "icon_url": "xray.svg",
12
12
  "sections": {
13
13
  "auth": {
@@ -15,4 +15,4 @@ class ZephyrEssentialConfiguration(BaseModel):
15
15
  }
16
16
  )
17
17
  base_url: str = Field(description="Zephyr Essential Base URL", default=None)
18
- token: SecretStr = Field(description="Zephyr Essential API Token")
18
+ token: SecretStr = Field(description="Zephyr Essential API Token", default=None)
@@ -185,7 +185,11 @@ class BaseIndexerToolkit(VectorStoreWrapperBase):
185
185
  document=document,
186
186
  content=content,
187
187
  extension_source=content_type, llm=self.llm, chunking_config=chunking_config)
188
- elif chunking_tool and (content_in_bytes := document.metadata.pop(IndexerKeywords.CONTENT_IN_BYTES.value, None)):
188
+ elif chunking_tool and (content_in_bytes := document.metadata.pop(IndexerKeywords.CONTENT_IN_BYTES.value, None)) is not None:
189
+ if not content_in_bytes:
190
+ # content is empty, yield as is
191
+ yield document
192
+ continue
189
193
  # apply parsing based on content type resolved from chunking_tool
190
194
  content_type = file_extension_by_chunker(chunking_tool)
191
195
  yield from process_content_by_type(
@@ -17,6 +17,7 @@ from ..elitea_base import BaseVectorStoreToolApiWrapper, extend_with_vector_tool
17
17
  from ..llm.img_utils import ImageDescriptionCache
18
18
  from ..non_code_indexer_toolkit import NonCodeIndexerToolkit
19
19
  from ..utils import is_cookie_token, parse_cookie_string
20
+ from ..utils.available_tools_decorator import extend_with_parent_available_tools
20
21
  from ..utils.content_parser import load_file_docs
21
22
  from ...runtime.utils.utils import IndexerKeywords
22
23
 
@@ -1546,7 +1547,7 @@ class JiraApiWrapper(NonCodeIndexerToolkit):
1546
1547
  # logger.error(f"Error indexing Jira issues: {str(e)}")
1547
1548
  # raise ToolException(f"Error indexing Jira issues: {str(e)}")
1548
1549
 
1549
- @extend_with_vector_tools
1550
+ @extend_with_parent_available_tools
1550
1551
  def get_available_tools(self):
1551
1552
  return [
1552
1553
  {
@@ -14,6 +14,7 @@ from ..elitea_base import (
14
14
  extend_with_vector_tools,
15
15
  )
16
16
  from ..non_code_indexer_toolkit import NonCodeIndexerToolkit
17
+ from ..utils.available_tools_decorator import extend_with_parent_available_tools
17
18
  from ...runtime.utils.utils import IndexerKeywords
18
19
  from ..utils.content_parser import load_file_docs
19
20
 
@@ -643,9 +644,9 @@ class XrayApiWrapper(NonCodeIndexerToolkit):
643
644
  except Exception as e:
644
645
  raise ToolException(f"Unable to execute GraphQL due to error: {str(e)}")
645
646
 
646
- @extend_with_vector_tools
647
+ @extend_with_parent_available_tools
647
648
  def get_available_tools(self):
648
- tools = [
649
+ return [
649
650
  {
650
651
  "name": "get_tests",
651
652
  "description": self.get_tests.__doc__,
@@ -670,7 +671,4 @@ class XrayApiWrapper(NonCodeIndexerToolkit):
670
671
  "args_schema": XrayGrapql,
671
672
  "ref": self.execute_graphql,
672
673
  }
673
- ]
674
-
675
- tools.extend(self._get_vector_search_tools())
676
- return tools
674
+ ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: alita_sdk
3
- Version: 0.3.278
3
+ Version: 0.3.279
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
@@ -26,13 +26,13 @@ alita_sdk/configurations/service_now.py,sha256=lIC7U29LANthkMuNdK-pyCrUogjnbJuPc
26
26
  alita_sdk/configurations/sharepoint.py,sha256=0B0NpVWadtdxPcRvD0eLWFZwPftoPPJ9z_sHW5-DKKc,723
27
27
  alita_sdk/configurations/slack.py,sha256=ppwfV7YMpkq-qU6YREK7EH8VmYBZ0EN_9WIwz3EZI-Q,1139
28
28
  alita_sdk/configurations/sonar.py,sha256=b5Mh-s8C6Wts0KF0VX6AN8KmdXwVSu1UXJOf2AVGQbs,676
29
- alita_sdk/configurations/sql.py,sha256=3zj4d81Im7D_iAUpFhPi4xtdp4KkLWxNLaBElQR67SE,749
29
+ alita_sdk/configurations/sql.py,sha256=0n2q2Tmc19_xUol6EN1LO6H1tZgJuxm7PvK3bFklGnM,754
30
30
  alita_sdk/configurations/testio.py,sha256=yoGWTuwcjFoBxbsxHLGVbcQBBZAFDQwuVcTijyUrW_U,612
31
31
  alita_sdk/configurations/testrail.py,sha256=k0fPmHBIrWAfEKhrDdB9Rdirw-UFHFoXkRePyrsqcWI,725
32
- alita_sdk/configurations/xray.py,sha256=xbydsVMqGJYVrNmg6bCr3uMxXVEPFtEhPovgWX6-6_Y,1141
32
+ alita_sdk/configurations/xray.py,sha256=_XCW5eGEAyhDuRvXCtTAZ24BGsIwzvIaeAZT10xoW6M,1147
33
33
  alita_sdk/configurations/zephyr.py,sha256=ndqGYFy5OFxjoXB7DzC71rd5W6qGBGAlKMWoqT8TuNk,1653
34
34
  alita_sdk/configurations/zephyr_enterprise.py,sha256=5W1QEcv62Y5Rk_kApI2QmOwvWZeEWMgO5xHOKLVmTm0,710
35
- alita_sdk/configurations/zephyr_essential.py,sha256=qL7NDImaU-XtbhUIF9ZU8vFv-fZTMOqN4R81qPM1hw0,709
35
+ alita_sdk/configurations/zephyr_essential.py,sha256=A4S6mHCfR8mJRvao0HHLiRi1-HDV-S26iLvq5zBnXo8,723
36
36
  alita_sdk/runtime/__init__.py,sha256=4W0UF-nl3QF2bvET5lnah4o24CoTwSoKXhuN0YnwvEE,828
37
37
  alita_sdk/runtime/clients/__init__.py,sha256=BdehU5GBztN1Qi1Wul0cqlU46FxUfMnI6Vq2Zd_oq1M,296
38
38
  alita_sdk/runtime/clients/artifact.py,sha256=TPvROw1qu4IyUEGuf7x40IKRpb5eFZpYGN3-8LfQE0M,3461
@@ -131,7 +131,7 @@ alita_sdk/runtime/utils/toolkit_runtime.py,sha256=MU63Fpxj0b5_r1IUUc0Q3-PN9VwL7r
131
131
  alita_sdk/runtime/utils/toolkit_utils.py,sha256=I9QFqnaqfVgN26LUr6s3XlBlG6y0CoHURnCzG7XcwVs,5311
132
132
  alita_sdk/runtime/utils/utils.py,sha256=VXNLsdeTmf6snn9EtUyobv4yL-xzLhUcH8P_ORMifYc,675
133
133
  alita_sdk/tools/__init__.py,sha256=ko5TToGYZFmBrho26DRAVvrkHWxQ2sfs8gVAASinYp8,10611
134
- alita_sdk/tools/base_indexer_toolkit.py,sha256=zGlXyfRVqVdIqkeYKCiXukKB8Hm-uTHBNI9Rf8KF0Os,19093
134
+ alita_sdk/tools/base_indexer_toolkit.py,sha256=WOwGICQX4iylVTc2jzE5TfjffYkliju5WvsF-XvmO4c,19262
135
135
  alita_sdk/tools/elitea_base.py,sha256=aoh4fjNHIem8jzPPqtvxD4PtkGgN3KBQwrMqb9f6k00,32991
136
136
  alita_sdk/tools/non_code_indexer_toolkit.py,sha256=v9uq1POE1fQKCd152mbqDtF-HSe0qoDj83k4E5LAkMI,1080
137
137
  alita_sdk/tools/ado/__init__.py,sha256=u2tdDgufGuDb-7lIgKKQlqgStL9Wd1gzNmRNYems2c0,1267
@@ -258,7 +258,7 @@ alita_sdk/tools/google/bigquery/tool.py,sha256=Esf9Hsp8I0e7-5EdkFqQ-bid0cfrg-bfS
258
258
  alita_sdk/tools/google_places/__init__.py,sha256=Tg_dfKTc0qxcG-1HVuQQB11PYph2RDWSUVhrlgxqk64,3491
259
259
  alita_sdk/tools/google_places/api_wrapper.py,sha256=7nZly6nk4f4Tm7s2MVdnnwlb-1_WHRrDhyjDiqoyPjA,4674
260
260
  alita_sdk/tools/jira/__init__.py,sha256=0NJikFWEqK8DSohXPUYD4iDLJFS8btxhqQ60acWwC3k,6063
261
- alita_sdk/tools/jira/api_wrapper.py,sha256=ia4eOjT2oe6aNfO1y8FJv5sVle1DLb9uKM6FcMTsnm4,78928
261
+ alita_sdk/tools/jira/api_wrapper.py,sha256=qflTFkkP1CDYKWPvHyiFiIaqTZm_Bom4ZnhdcWnFRe4,79019
262
262
  alita_sdk/tools/keycloak/__init__.py,sha256=0WB9yXMUUAHQRni1ghDEmd7GYa7aJPsTVlZgMCM9cQ0,3050
263
263
  alita_sdk/tools/keycloak/api_wrapper.py,sha256=cOGr0f3S3-c6tRDBWI8wMnetjoNSxiV5rvC_0VHb8uw,3100
264
264
  alita_sdk/tools/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -329,7 +329,7 @@ alita_sdk/tools/utils/content_parser.py,sha256=KM6K37VLAAvzwvoHFpJBoRB5d7w6z3mZC
329
329
  alita_sdk/tools/vector_adapters/VectorStoreAdapter.py,sha256=a6FAsiix_EvATIKUf5YT6vHh5LDyJ5uSP3LJqoxFo04,17367
330
330
  alita_sdk/tools/vector_adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
331
331
  alita_sdk/tools/xray/__init__.py,sha256=BnG2StSfX44CUMtrjHTcSCDWxxse5tCZqwyaZSkBKIc,4230
332
- alita_sdk/tools/xray/api_wrapper.py,sha256=9EM6WxA1ohVtFBet8Bz0eO2ky5mwYQP1BGYH6zRUC8I,30498
332
+ alita_sdk/tools/xray/api_wrapper.py,sha256=z-eIS4ZYd42AxfUMrJv_nT4JWBZ_dOvlrToSpWjZ5zs,30512
333
333
  alita_sdk/tools/yagmail/__init__.py,sha256=c4Qn3em0tLxzRmFKpzbBgY9W2EnOoKf0azoDJHng5CY,2208
334
334
  alita_sdk/tools/yagmail/yagmail_wrapper.py,sha256=SKoGVd1X4Ew3ad5tOdtPoY00M6jStNdT3q7GXEjQc5g,1952
335
335
  alita_sdk/tools/zephyr/Zephyr.py,sha256=ODZbg9Aw0H0Rbv-HcDXLI4KHbPiLDHoteDofshw9A_k,1508
@@ -347,8 +347,8 @@ alita_sdk/tools/zephyr_scale/api_wrapper.py,sha256=HOt9ShtJI_1tVPcwd3Rwk-VS0SMLq
347
347
  alita_sdk/tools/zephyr_squad/__init__.py,sha256=0AI_j27xVO5Gk5HQMFrqPTd4uvuVTpiZUicBrdfEpKg,2796
348
348
  alita_sdk/tools/zephyr_squad/api_wrapper.py,sha256=kmw_xol8YIYFplBLWTqP_VKPRhL_1ItDD0_vXTe_UuI,14906
349
349
  alita_sdk/tools/zephyr_squad/zephyr_squad_cloud_client.py,sha256=R371waHsms4sllHCbijKYs90C-9Yu0sSR3N4SUfQOgU,5066
350
- alita_sdk-0.3.278.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
351
- alita_sdk-0.3.278.dist-info/METADATA,sha256=FlffuP42r4p0qVuGW_KwQGuJU-W_njk9iYUoWZhOw_k,18897
352
- alita_sdk-0.3.278.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
353
- alita_sdk-0.3.278.dist-info/top_level.txt,sha256=0vJYy5p_jK6AwVb1aqXr7Kgqgk3WDtQ6t5C-XI9zkmg,10
354
- alita_sdk-0.3.278.dist-info/RECORD,,
350
+ alita_sdk-0.3.279.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
351
+ alita_sdk-0.3.279.dist-info/METADATA,sha256=OlLf3UNCJ_C8RrHlfKo8-s0SWl6qmdJ9_tFfY9DilRI,18897
352
+ alita_sdk-0.3.279.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
353
+ alita_sdk-0.3.279.dist-info/top_level.txt,sha256=0vJYy5p_jK6AwVb1aqXr7Kgqgk3WDtQ6t5C-XI9zkmg,10
354
+ alita_sdk-0.3.279.dist-info/RECORD,,