alita-sdk 0.3.291__py3-none-any.whl → 0.3.292__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/tools/vector_adapters/VectorStoreAdapter.py +7 -1
- alita_sdk/tools/zephyr_essential/api_wrapper.py +185 -24
- alita_sdk/tools/zephyr_essential/client.py +6 -4
- {alita_sdk-0.3.291.dist-info → alita_sdk-0.3.292.dist-info}/METADATA +1 -1
- {alita_sdk-0.3.291.dist-info → alita_sdk-0.3.292.dist-info}/RECORD +8 -8
- {alita_sdk-0.3.291.dist-info → alita_sdk-0.3.292.dist-info}/WHEEL +0 -0
- {alita_sdk-0.3.291.dist-info → alita_sdk-0.3.292.dist-info}/licenses/LICENSE +0 -0
- {alita_sdk-0.3.291.dist-info → alita_sdk-0.3.292.dist-info}/top_level.txt +0 -0
@@ -53,10 +53,16 @@ class PGVectorAdapter(VectorStoreAdapter):
|
|
53
53
|
"""Adapter for PGVector database operations."""
|
54
54
|
|
55
55
|
def get_vectorstore_params(self, collection_name: str, connection_string: Optional[str] = None) -> Dict[str, Any]:
|
56
|
+
try:
|
57
|
+
from tools import this # pylint: disable=E0401,C0415
|
58
|
+
worker_config = this.for_module("indexer_worker").descriptor.config
|
59
|
+
except: # pylint: disable=W0702
|
60
|
+
worker_config = {}
|
61
|
+
#
|
56
62
|
return {
|
57
63
|
"use_jsonb": True,
|
58
64
|
"collection_name": collection_name,
|
59
|
-
"create_extension": True,
|
65
|
+
"create_extension": worker_config.get("pgvector_create_extension", True),
|
60
66
|
"alita_sdk_options": {
|
61
67
|
"target_schema": collection_name,
|
62
68
|
},
|
@@ -620,8 +620,74 @@ UpdateTestCase = create_model(
|
|
620
620
|
json=(str, Field(description=("""
|
621
621
|
JSON body to update a test case. Example:
|
622
622
|
{
|
623
|
-
"
|
624
|
-
"
|
623
|
+
"id": 1,
|
624
|
+
"key": "SA-T10",
|
625
|
+
"name": "Check axial pump",
|
626
|
+
"project": {
|
627
|
+
"id": 10005,
|
628
|
+
"self": "https://<api-base-url>/projects/10005"
|
629
|
+
},
|
630
|
+
"createdOn": "2018-05-15T13:15:13Z",
|
631
|
+
"objective": "To ensure the axial pump can be enabled",
|
632
|
+
"precondition": "Latest version of the axial pump available",
|
633
|
+
"estimatedTime": 138000,
|
634
|
+
"labels": [
|
635
|
+
"Regression",
|
636
|
+
"Performance",
|
637
|
+
"Automated"
|
638
|
+
],
|
639
|
+
"component": {
|
640
|
+
"id": 10001,
|
641
|
+
"self": "https://<jira-instance>.atlassian.net/rest/api/2/component/10001"
|
642
|
+
},
|
643
|
+
"priority": {
|
644
|
+
"id": 10002,
|
645
|
+
"self": "https://<api-base-url>/priorities/10002"
|
646
|
+
},
|
647
|
+
"status": {
|
648
|
+
"id": 10000,
|
649
|
+
"self": "https://<api-base-url>/statuses/10000"
|
650
|
+
},
|
651
|
+
"folder": {
|
652
|
+
"id": 100006,
|
653
|
+
"self": "https://<api-base-url>/folders/10006"
|
654
|
+
},
|
655
|
+
"owner": {
|
656
|
+
"self": "https://<jira-instance>.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g",
|
657
|
+
"accountId": "5b10a2844c20165700ede21g"
|
658
|
+
},
|
659
|
+
"testScript": {
|
660
|
+
"self": "https://<api-base-url>/testCases/PROJ-T1/testscript"
|
661
|
+
},
|
662
|
+
"customFields": {
|
663
|
+
"Build Number": 20,
|
664
|
+
"Release Date": "2020-01-01",
|
665
|
+
"Pre-Condition(s)": "User should have logged in. <br> User should have navigated to the administration panel.",
|
666
|
+
"Implemented": false,
|
667
|
+
"Category": [
|
668
|
+
"Performance",
|
669
|
+
"Regression"
|
670
|
+
],
|
671
|
+
"Tester": "fa2e582e-5e15-521e-92e3-47e6ca2e7256"
|
672
|
+
},
|
673
|
+
"links": {
|
674
|
+
"self": "string",
|
675
|
+
"issues": [
|
676
|
+
{
|
677
|
+
"self": "string",
|
678
|
+
"issueId": 10100,
|
679
|
+
"id": 1,
|
680
|
+
"target": "https://<jira-instance>.atlassian.net/rest/api/2/issue/10000",
|
681
|
+
"type": "COVERAGE"
|
682
|
+
}
|
683
|
+
],
|
684
|
+
"webLinks": [
|
685
|
+
{
|
686
|
+
"self": "string",
|
687
|
+
"description": "A link to atlassian.com",
|
688
|
+
"url": "https://atlassian.com",
|
689
|
+
"id": 1,
|
690
|
+
"type": "COVERAGE"
|
625
691
|
}
|
626
692
|
"""
|
627
693
|
)))
|
@@ -638,9 +704,9 @@ CreateTestCaseIssueLink = create_model(
|
|
638
704
|
json=(str, Field(description=("""
|
639
705
|
JSON body to create an issue link. Example:
|
640
706
|
{
|
641
|
-
"
|
642
|
-
"description": "Link Description"
|
707
|
+
"issueId": 10100
|
643
708
|
}
|
709
|
+
where issueId - Jira issue id
|
644
710
|
"""
|
645
711
|
)))
|
646
712
|
)
|
@@ -682,8 +748,10 @@ CreateTestCaseTestScript = create_model(
|
|
682
748
|
json=(str, Field(description=("""
|
683
749
|
JSON body to create a test script. Example:
|
684
750
|
{
|
685
|
-
"
|
751
|
+
"type": "bdd",
|
752
|
+
"text": "Attempt to login to the application"
|
686
753
|
}
|
754
|
+
Where type - Test script type. Allowed: plain, bdd
|
687
755
|
"""
|
688
756
|
)))
|
689
757
|
)
|
@@ -774,9 +842,71 @@ UpdateTestCycle = create_model(
|
|
774
842
|
json=(str, Field(description=("""
|
775
843
|
JSON body to update a test cycle. Example:
|
776
844
|
{
|
777
|
-
"
|
778
|
-
"
|
779
|
-
|
845
|
+
"id": 1,
|
846
|
+
"key": "SA-R40",
|
847
|
+
"name": "Sprint 1 Regression Test Cycle",
|
848
|
+
"project": {
|
849
|
+
"id": 10005,
|
850
|
+
"self": "https://<api-base-url>/projects/10005"
|
851
|
+
},
|
852
|
+
"jiraProjectVersion": {
|
853
|
+
"id": 10000,
|
854
|
+
"self": "https://<jira-instance>.atlassian.net/rest/api/2/version/10000"
|
855
|
+
},
|
856
|
+
"status": {
|
857
|
+
"id": 10000,
|
858
|
+
"self": "https://<api-base-url>/statuses/10000"
|
859
|
+
},
|
860
|
+
"folder": {
|
861
|
+
"id": 100006,
|
862
|
+
"self": "https://<api-base-url>/folders/10006"
|
863
|
+
},
|
864
|
+
"description": "Regression test cycle 1 to ensure no breaking changes",
|
865
|
+
"plannedStartDate": "2018-05-19T13:15:13Z",
|
866
|
+
"plannedEndDate": "2018-05-20T13:15:13Z",
|
867
|
+
"owner": {
|
868
|
+
"self": "https://<jira-instance>.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g",
|
869
|
+
"accountId": "5b10a2844c20165700ede21g"
|
870
|
+
},
|
871
|
+
"customFields": {
|
872
|
+
"Build Number": 20,
|
873
|
+
"Release Date": "2020-01-01",
|
874
|
+
"Pre-Condition(s)": "User should have logged in. <br> User should have navigated to the administration panel.",
|
875
|
+
"Implemented": false,
|
876
|
+
"Category": [
|
877
|
+
"Performance",
|
878
|
+
"Regression"
|
879
|
+
],
|
880
|
+
"Tester": "fa2e582e-5e15-521e-92e3-47e6ca2e7256"
|
881
|
+
},
|
882
|
+
"links": {
|
883
|
+
"self": "string",
|
884
|
+
"issues": [
|
885
|
+
{
|
886
|
+
"self": "string",
|
887
|
+
"issueId": 10100,
|
888
|
+
"id": 1,
|
889
|
+
"target": "https://<jira-instance>.atlassian.net/rest/api/2/issue/10000",
|
890
|
+
"type": "COVERAGE"
|
891
|
+
}
|
892
|
+
],
|
893
|
+
"webLinks": [
|
894
|
+
{
|
895
|
+
"self": "string",
|
896
|
+
"description": "A link to atlassian.com",
|
897
|
+
"url": "https://atlassian.com",
|
898
|
+
"id": 1,
|
899
|
+
"type": "COVERAGE"
|
900
|
+
}
|
901
|
+
],
|
902
|
+
"testPlans": [
|
903
|
+
{
|
904
|
+
"id": 1,
|
905
|
+
"self": "https://<api-base-url>/links/1",
|
906
|
+
"type": "RELATED",
|
907
|
+
"testPlanId": 2,
|
908
|
+
"target": "https://<jira-instance>.atlassian.net/rest/api/2/testplan/123"
|
909
|
+
}
|
780
910
|
"""
|
781
911
|
)))
|
782
912
|
)
|
@@ -792,9 +922,9 @@ CreateTestCycleIssueLink = create_model(
|
|
792
922
|
json=(str, Field(description=("""
|
793
923
|
JSON body to create an issue link. Example:
|
794
924
|
{
|
795
|
-
"
|
796
|
-
"description": "Link Description"
|
925
|
+
"issueId": 10100
|
797
926
|
}
|
927
|
+
where issueId - Jira issue id
|
798
928
|
"""
|
799
929
|
)))
|
800
930
|
)
|
@@ -826,10 +956,34 @@ CreateTestExecution = create_model(
|
|
826
956
|
json=(str, Field(description=("""
|
827
957
|
JSON body to create a test execution. Example:
|
828
958
|
{
|
829
|
-
"
|
830
|
-
"
|
831
|
-
"
|
832
|
-
|
959
|
+
"projectKey": "TIS",
|
960
|
+
"testCaseKey": "SA-T10",
|
961
|
+
"testCycleKey": "SA-R10",
|
962
|
+
"statusName": "In Progress",
|
963
|
+
"testScriptResults": [
|
964
|
+
{
|
965
|
+
"statusName": "In Progress",
|
966
|
+
"actualEndDate": "2018-05-20T13:15:13Z",
|
967
|
+
"actualResult": "User logged in successfully"
|
968
|
+
}
|
969
|
+
],
|
970
|
+
"environmentName": "Chrome Latest Version",
|
971
|
+
"actualEndDate": "2018-05-20T13:15:13Z",
|
972
|
+
"executionTime": 120000,
|
973
|
+
"executedById": "5b10a2844c20165700ede21g",
|
974
|
+
"assignedToId": "5b10a2844c20165700ede21g",
|
975
|
+
"comment": "Test failed user could not login",
|
976
|
+
"customFields": {
|
977
|
+
"Build Number": 20,
|
978
|
+
"Release Date": "2020-01-01",
|
979
|
+
"Pre-Condition(s)": "User should have logged in. <br> User should have navigated to the administration panel.",
|
980
|
+
"Implemented": false,
|
981
|
+
"Category": [
|
982
|
+
"Performance",
|
983
|
+
"Regression"
|
984
|
+
],
|
985
|
+
"Tester": "fa2e582e-5e15-521e-92e3-47e6ca2e7256"
|
986
|
+
}
|
833
987
|
"""
|
834
988
|
)))
|
835
989
|
)
|
@@ -845,8 +999,13 @@ UpdateTestExecution = create_model(
|
|
845
999
|
json=(str, Field(description=("""
|
846
1000
|
JSON body to update a test execution. Example:
|
847
1001
|
{
|
848
|
-
"
|
849
|
-
"
|
1002
|
+
"statusName": "In Progress",
|
1003
|
+
"environmentName": "Chrome Latest Version",
|
1004
|
+
"actualEndDate": "2018-05-20T13:15:13Z",
|
1005
|
+
"executionTime": 120000,
|
1006
|
+
"executedById": "5b10a2844c20165700ede21g",
|
1007
|
+
"assignedToId": "5b10a2844c20165700ede21g",
|
1008
|
+
"comment": "Test failed user could not login"
|
850
1009
|
}
|
851
1010
|
"""
|
852
1011
|
)))
|
@@ -864,12 +1023,14 @@ UpdateTestExecutionTestSteps = create_model(
|
|
864
1023
|
test_execution_id_or_key=(str, Field(description="ID or key of the test execution to update test steps for.")),
|
865
1024
|
json=(str, Field(description=("""
|
866
1025
|
"JSON body to update test steps. Example:
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
1026
|
+
{
|
1027
|
+
"steps": [
|
1028
|
+
{
|
1029
|
+
"actualResult": "User logged in successfully",
|
1030
|
+
"statusName": "In Progress"
|
1031
|
+
}
|
1032
|
+
]
|
1033
|
+
}
|
873
1034
|
"""
|
874
1035
|
)))
|
875
1036
|
)
|
@@ -890,9 +1051,9 @@ CreateTestExecutionIssueLink = create_model(
|
|
890
1051
|
json=(str, Field(description=("""
|
891
1052
|
JSON body to create an issue link. Example:
|
892
1053
|
{
|
893
|
-
"
|
894
|
-
"description": "Link Description"
|
1054
|
+
"issueId": 10100
|
895
1055
|
}
|
1056
|
+
where issueId - Jira issue id
|
896
1057
|
"""
|
897
1058
|
)))
|
898
1059
|
)
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import requests
|
2
|
+
from langchain_core.tools import ToolException
|
2
3
|
|
3
4
|
class ZephyrEssentialAPI:
|
4
5
|
def __init__(self, base_url: str, token: str):
|
@@ -14,10 +15,11 @@ class ZephyrEssentialAPI:
|
|
14
15
|
})
|
15
16
|
try:
|
16
17
|
resp = requests.request(method=method, url=url, headers=headers, json=json, params=params, files=files)
|
17
|
-
resp.
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
if resp.status_code < 300:
|
19
|
+
if resp.headers.get("Content-Type", "").startswith("application/json"):
|
20
|
+
return resp.json()
|
21
|
+
return resp.text
|
22
|
+
return ToolException(f"Error performing request {method} {api_path}: {resp.content}")
|
21
23
|
except requests.RequestException as e:
|
22
24
|
raise Exception(f"Error performing request {method} {api_path}: {str(e)}")
|
23
25
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: alita_sdk
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.292
|
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
|
@@ -327,7 +327,7 @@ alita_sdk/tools/testrail/api_wrapper.py,sha256=xKQbjwL602J55KZiAdMcMtsuzK2jky0DU
|
|
327
327
|
alita_sdk/tools/utils/__init__.py,sha256=155xepXPr4OEzs2Mz5YnjXcBpxSv1X2eznRUVoPtyK0,3268
|
328
328
|
alita_sdk/tools/utils/available_tools_decorator.py,sha256=IbrdfeQkswxUFgvvN7-dyLMZMyXLiwvX7kgi3phciCk,273
|
329
329
|
alita_sdk/tools/utils/content_parser.py,sha256=tppnQfgoER24acx3CJW1AUvkay_C7lvz_qVB-r-RQOo,13852
|
330
|
-
alita_sdk/tools/vector_adapters/VectorStoreAdapter.py,sha256=
|
330
|
+
alita_sdk/tools/vector_adapters/VectorStoreAdapter.py,sha256=ypBEAkFRGHv5edW0N9rdo1yKurNGQ4pRVEWtrN_7SeA,17656
|
331
331
|
alita_sdk/tools/vector_adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
332
332
|
alita_sdk/tools/xray/__init__.py,sha256=AsHDvRgyD-6vvGyAyQDPWHbOD2WoMJ5Llt029bLuu6U,4277
|
333
333
|
alita_sdk/tools/xray/api_wrapper.py,sha256=DLQ5dT9XUiTJWc7OT6L9mU6CIZ8Sf6hGSBunYA6_k5k,30441
|
@@ -341,15 +341,15 @@ alita_sdk/tools/zephyr_enterprise/__init__.py,sha256=IoWQPH2lf2Yuj2ejZ74818JTXdr
|
|
341
341
|
alita_sdk/tools/zephyr_enterprise/api_wrapper.py,sha256=OQJbdcpeVm_5WiTfg-w0wHXFnrKQgHhkufz_nr2wSn4,12270
|
342
342
|
alita_sdk/tools/zephyr_enterprise/zephyr_enterprise.py,sha256=hV9LIrYfJT6oYp-ZfQR0YHflqBFPsUw2Oc55HwK0H48,6809
|
343
343
|
alita_sdk/tools/zephyr_essential/__init__.py,sha256=2SymL6TIF1ad52w5DTtWaYvNygEvE1ssNNeKx3Y-_Zg,3980
|
344
|
-
alita_sdk/tools/zephyr_essential/api_wrapper.py,sha256=
|
345
|
-
alita_sdk/tools/zephyr_essential/client.py,sha256=
|
344
|
+
alita_sdk/tools/zephyr_essential/api_wrapper.py,sha256=VgihduP4N7x1qlpwYIkIX0ctEqutuqVqAYgrxDFfBu0,47054
|
345
|
+
alita_sdk/tools/zephyr_essential/client.py,sha256=fX_n2pACNzDiHxry3F4Xc6baUdw7d9U2m4srbfBv5Eg,9882
|
346
346
|
alita_sdk/tools/zephyr_scale/__init__.py,sha256=eetAVRclO1j_N0T3mRnWeLfi3BS98i5FwhNReXO0PlE,4289
|
347
347
|
alita_sdk/tools/zephyr_scale/api_wrapper.py,sha256=2M6yFoOmfH5BwxMwTLQO76yD0YdfvccOYHlARJFiqGo,78796
|
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.
|
352
|
-
alita_sdk-0.3.
|
353
|
-
alita_sdk-0.3.
|
354
|
-
alita_sdk-0.3.
|
355
|
-
alita_sdk-0.3.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|