agenta 0.30.0__py3-none-any.whl → 0.30.0a2__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 agenta might be problematic. Click here for more details.
- agenta/client/backend/__init__.py +3 -32
- agenta/client/backend/apps/client.py +10 -70
- agenta/client/backend/client.py +45 -61
- agenta/client/backend/configs/client.py +0 -6
- agenta/client/backend/containers/client.py +0 -6
- agenta/client/backend/core/file.py +8 -13
- agenta/client/backend/environments/client.py +0 -6
- agenta/client/backend/evaluations/client.py +1 -14
- agenta/client/backend/evaluators/client.py +0 -24
- agenta/client/backend/observability/client.py +16 -22
- agenta/client/backend/observability_v_1/__init__.py +2 -2
- agenta/client/backend/observability_v_1/client.py +0 -203
- agenta/client/backend/observability_v_1/types/__init__.py +1 -2
- agenta/client/backend/observability_v_1/types/format.py +1 -1
- agenta/client/backend/testsets/client.py +121 -305
- agenta/client/backend/types/__init__.py +2 -24
- agenta/client/backend/types/app.py +1 -2
- agenta/client/backend/types/body_import_testset.py +1 -0
- agenta/client/backend/types/lm_providers_enum.py +21 -0
- agenta/client/backend/types/permission.py +0 -1
- agenta/client/backend/variants/client.py +0 -66
- agenta/sdk/decorators/routing.py +0 -102
- {agenta-0.30.0.dist-info → agenta-0.30.0a2.dist-info}/METADATA +3 -4
- {agenta-0.30.0.dist-info → agenta-0.30.0a2.dist-info}/RECORD +26 -44
- {agenta-0.30.0.dist-info → agenta-0.30.0a2.dist-info}/WHEEL +1 -1
- agenta/client/backend/access_control/__init__.py +0 -1
- agenta/client/backend/access_control/client.py +0 -167
- agenta/client/backend/observability_v_1/types/query_analytics_response.py +0 -7
- agenta/client/backend/scopes/__init__.py +0 -1
- agenta/client/backend/scopes/client.py +0 -114
- agenta/client/backend/types/analytics_response.py +0 -24
- agenta/client/backend/types/bucket_dto.py +0 -26
- agenta/client/backend/types/header_dto.py +0 -22
- agenta/client/backend/types/legacy_analytics_response.py +0 -29
- agenta/client/backend/types/legacy_data_point.py +0 -27
- agenta/client/backend/types/metrics_dto.py +0 -24
- agenta/client/backend/types/projects_response.py +0 -28
- agenta/client/backend/types/provider_key_dto.py +0 -23
- agenta/client/backend/types/provider_kind.py +0 -21
- agenta/client/backend/types/secret_dto.py +0 -24
- agenta/client/backend/types/secret_kind.py +0 -5
- agenta/client/backend/types/secret_response_dto.py +0 -27
- agenta/client/backend/vault/__init__.py +0 -1
- agenta/client/backend/vault/client.py +0 -685
- {agenta-0.30.0.dist-info → agenta-0.30.0a2.dist-info}/entry_points.txt +0 -0
|
@@ -9,25 +9,23 @@ agenta/client/Readme.md,sha256=K-By3bNRzUIN5VgQ98pKjw4DgCM-JlcxbW0Fsj02P6M,2903
|
|
|
9
9
|
agenta/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
agenta/client/api.py,sha256=r5pwYD8DWppDrV4xaNYwUmwMLjWVNfVzxK_clIboEWg,2434
|
|
11
11
|
agenta/client/api_models.py,sha256=zebfE2-0-SW1SvzyarzmSJMXqyiCLKrX2sHpzoX-RnU,623
|
|
12
|
-
agenta/client/backend/__init__.py,sha256=
|
|
13
|
-
agenta/client/backend/access_control/__init__.py,sha256=9mUnTDeA1TxYvkj1l01A1prqsJV0ERRY2tzkY1fA4MQ,64
|
|
14
|
-
agenta/client/backend/access_control/client.py,sha256=yu5RrcXizig6zVVNPghrd4K6MHFj26-2hRIPCjS3QnY,5467
|
|
12
|
+
agenta/client/backend/__init__.py,sha256=Q7KdR_MAfYvg7LlGVXvOUZi4L_7k6pbSVc8vIaNy-Bg,5637
|
|
15
13
|
agenta/client/backend/apps/__init__.py,sha256=9mUnTDeA1TxYvkj1l01A1prqsJV0ERRY2tzkY1fA4MQ,64
|
|
16
|
-
agenta/client/backend/apps/client.py,sha256=
|
|
14
|
+
agenta/client/backend/apps/client.py,sha256=QucGNzuxfkOH2OU4dQMd7BdOjRTw4ac31On5FED3vVI,52590
|
|
17
15
|
agenta/client/backend/bases/__init__.py,sha256=9mUnTDeA1TxYvkj1l01A1prqsJV0ERRY2tzkY1fA4MQ,64
|
|
18
16
|
agenta/client/backend/bases/client.py,sha256=BZsz5eXaa2voZdJXqgd5J5hPUuYvWwIcPCWyl49w-oY,6028
|
|
19
|
-
agenta/client/backend/client.py,sha256=
|
|
17
|
+
agenta/client/backend/client.py,sha256=YkeIJbq_8_TKsF-L3x6fNoRazRaM0BzhYckaeUAB4vI,103549
|
|
20
18
|
agenta/client/backend/configs/__init__.py,sha256=9mUnTDeA1TxYvkj1l01A1prqsJV0ERRY2tzkY1fA4MQ,64
|
|
21
|
-
agenta/client/backend/configs/client.py,sha256=
|
|
19
|
+
agenta/client/backend/configs/client.py,sha256=qtrRdRuNIZBjh9Ykj7eNKhocp7dFdFQoDSbUduVjKJ0,19089
|
|
22
20
|
agenta/client/backend/containers/__init__.py,sha256=Haw2PwiPhNvM26PLQN57jY0bN-QqPoDG4VA-P_uGL3A,153
|
|
23
|
-
agenta/client/backend/containers/client.py,sha256=
|
|
21
|
+
agenta/client/backend/containers/client.py,sha256=rjN5yIBTt7BgxcSSFOvo1tJBUBO4WSDt9_EtLzxii_Y,20279
|
|
24
22
|
agenta/client/backend/containers/types/__init__.py,sha256=b6yQ-p_vsI5cpKh-Qa8xNE-M5nLHjfBvfgD4JIhqEkY,176
|
|
25
23
|
agenta/client/backend/containers/types/container_templates_response.py,sha256=IFmEkCII_FebAt3ENZByzAYXMB1vgQEeIaSPTLSzG5M,189
|
|
26
24
|
agenta/client/backend/core/__init__.py,sha256=SQ85PF84B9MuKnBwHNHWemSGuy-g_515gFYNFhvEE0I,1438
|
|
27
25
|
agenta/client/backend/core/api_error.py,sha256=TtMtCdxXjd7Tasc9c8ooFg124nPrb2MXG-tKOXV4u9I,440
|
|
28
26
|
agenta/client/backend/core/client_wrapper.py,sha256=esOteB9jDmUGJkv6EotT54nPNU42TR_kjF3pPjU6lqY,1817
|
|
29
27
|
agenta/client/backend/core/datetime_utils.py,sha256=BHjt_H3WVslcuPsr6qjJoVif_SsdLvFN0c43ABE5UiQ,1069
|
|
30
|
-
agenta/client/backend/core/file.py,sha256=
|
|
28
|
+
agenta/client/backend/core/file.py,sha256=a6kBDHyD9Za_ZiNbn1I4feRneqUepSUkFEQUKjAjrKA,2369
|
|
31
29
|
agenta/client/backend/core/http_client.py,sha256=Wz6swfW0qdrpVNGEmf8HGdWdDTRq-0bAjsdV3xvbFxE,21004
|
|
32
30
|
agenta/client/backend/core/jsonable_encoder.py,sha256=SHXw4G4n-f0IPgNkxj_-Fip3kN8NUAI-YrKxdZw8kl0,3662
|
|
33
31
|
agenta/client/backend/core/pydantic_utilities.py,sha256=BZTSULs3wlfRQwTtsEyKlyY6SkHCtf3WxHqfhH9YSG4,12325
|
|
@@ -36,26 +34,23 @@ agenta/client/backend/core/remove_none_from_dict.py,sha256=EU9SGgYidWq7SexuJbNs4
|
|
|
36
34
|
agenta/client/backend/core/request_options.py,sha256=h0QUNCFVdCW_7GclVySCAY2w4NhtXVBUCmHgmzaxpcg,1681
|
|
37
35
|
agenta/client/backend/core/serialization.py,sha256=1VIoFHrJZZgjx5kxsUnUDbgr2v66GFgMJ_J1mqexBXA,9643
|
|
38
36
|
agenta/client/backend/environments/__init__.py,sha256=9mUnTDeA1TxYvkj1l01A1prqsJV0ERRY2tzkY1fA4MQ,64
|
|
39
|
-
agenta/client/backend/environments/client.py,sha256=
|
|
37
|
+
agenta/client/backend/environments/client.py,sha256=JG980MafNEcMX60gCtLdPQb8Ja6R603CKBPTD2Vz-qo,6038
|
|
40
38
|
agenta/client/backend/errors/__init__.py,sha256=pbbVUFtB9LCocA1RMWMMF_RKjsy5YkOKX5BAuE49w6g,170
|
|
41
39
|
agenta/client/backend/errors/unprocessable_entity_error.py,sha256=FvR7XPlV3Xx5nu8HNlmLhBRdk4so_gCHjYT5PyZe6sM,313
|
|
42
40
|
agenta/client/backend/evaluations/__init__.py,sha256=9mUnTDeA1TxYvkj1l01A1prqsJV0ERRY2tzkY1fA4MQ,64
|
|
43
|
-
agenta/client/backend/evaluations/client.py,sha256=
|
|
41
|
+
agenta/client/backend/evaluations/client.py,sha256=GgBq5iXFR89VMt6SSbSpk6zDseR79brzVtpfJM1XxxA,46339
|
|
44
42
|
agenta/client/backend/evaluators/__init__.py,sha256=9mUnTDeA1TxYvkj1l01A1prqsJV0ERRY2tzkY1fA4MQ,64
|
|
45
|
-
agenta/client/backend/evaluators/client.py,sha256=
|
|
43
|
+
agenta/client/backend/evaluators/client.py,sha256=fdfb0ZFLP-kI5jXr6F3O-wKWvWBGUXhqRXIoetyN-zQ,40405
|
|
46
44
|
agenta/client/backend/observability/__init__.py,sha256=9mUnTDeA1TxYvkj1l01A1prqsJV0ERRY2tzkY1fA4MQ,64
|
|
47
|
-
agenta/client/backend/observability/client.py,sha256=
|
|
48
|
-
agenta/client/backend/observability_v_1/__init__.py,sha256=
|
|
49
|
-
agenta/client/backend/observability_v_1/client.py,sha256=
|
|
50
|
-
agenta/client/backend/observability_v_1/types/__init__.py,sha256=
|
|
51
|
-
agenta/client/backend/observability_v_1/types/format.py,sha256=
|
|
52
|
-
agenta/client/backend/observability_v_1/types/query_analytics_response.py,sha256=avbFvONr1YAv0IImookAPs596633xnMvFscdSTaA8uk,291
|
|
45
|
+
agenta/client/backend/observability/client.py,sha256=TcCn0ARonuLxqxoWF0EnhOecEslvcPp1yCq1GgqNzM8,39715
|
|
46
|
+
agenta/client/backend/observability_v_1/__init__.py,sha256=Mw-ZeCOyo2On8OYfR5JAm2Uq4-Dd1IKVshI1wms6RhA,157
|
|
47
|
+
agenta/client/backend/observability_v_1/client.py,sha256=eOtHBAZZPpNBvNJaLgWrSOS4a5XciCVja3DNgU7Y_nA,17535
|
|
48
|
+
agenta/client/backend/observability_v_1/types/__init__.py,sha256=vHpFg4KBBFowe8EgPc65k3P1JLSNFRf-Ws6GPLZDqBI,192
|
|
49
|
+
agenta/client/backend/observability_v_1/types/format.py,sha256=U-b6HwkOirqvyU7WWDfXyDkYlxBV90lRe1YKds4qg_Q,157
|
|
53
50
|
agenta/client/backend/observability_v_1/types/query_traces_response.py,sha256=0-4nNfKLnciOR7E1859HupWqcwunJe53OLgXRlxxeb8,452
|
|
54
|
-
agenta/client/backend/scopes/__init__.py,sha256=9mUnTDeA1TxYvkj1l01A1prqsJV0ERRY2tzkY1fA4MQ,64
|
|
55
|
-
agenta/client/backend/scopes/client.py,sha256=ZMHXj0GRS-xNOLAbnjo4SNpHjOvHa-xZn8-caC508Qk,3617
|
|
56
51
|
agenta/client/backend/testsets/__init__.py,sha256=9mUnTDeA1TxYvkj1l01A1prqsJV0ERRY2tzkY1fA4MQ,64
|
|
57
|
-
agenta/client/backend/testsets/client.py,sha256=
|
|
58
|
-
agenta/client/backend/types/__init__.py,sha256=
|
|
52
|
+
agenta/client/backend/testsets/client.py,sha256=nmH7xcA4ByXTNHr8m24HbYGKmCdHrFOzlXRGV2QO7L0,34343
|
|
53
|
+
agenta/client/backend/types/__init__.py,sha256=fjXpRS1ZZAJPTRYybJcuAMJ9JnkmmvDbghY3GGLYm34,7521
|
|
59
54
|
agenta/client/backend/types/agenta_node_dto.py,sha256=DLZltD_ueVOfdiSZ1u2i3mu1C3kshxhcggQFFfybBdY,1747
|
|
60
55
|
agenta/client/backend/types/agenta_node_dto_nodes_value.py,sha256=ifG7dBYLphFoCgQ70ivvDXkTSlxX8w5x_9S-Glh8FlI,180
|
|
61
56
|
agenta/client/backend/types/agenta_nodes_response.py,sha256=1EoxaqN3ioELS_9rg5Bo6Y0PqqNdX2YNRCIsdO4Q-aQ,902
|
|
@@ -65,13 +60,11 @@ agenta/client/backend/types/agenta_tree_dto.py,sha256=yDGVUqUli4SBosfICic46bDEx-
|
|
|
65
60
|
agenta/client/backend/types/agenta_trees_response.py,sha256=oyjTlpEn4StDB1Wo1fCHSh0_IU7E_00XVn_u5qEXqTw,902
|
|
66
61
|
agenta/client/backend/types/aggregated_result.py,sha256=4WPjBzQSyPW-Q91XuBbtsicHtupzAFgnz065jpYVKi0,747
|
|
67
62
|
agenta/client/backend/types/aggregated_result_evaluator_config.py,sha256=GzU358rxyXbiDvpf9i6LqSTaHuirZV8XoodAdPKi-uY,243
|
|
68
|
-
agenta/client/backend/types/
|
|
69
|
-
agenta/client/backend/types/app.py,sha256=uBdmLWD9UAcOc6GZogVZp26IvAmXM20Uj0KCuGbmBP8,650
|
|
63
|
+
agenta/client/backend/types/app.py,sha256=hMPKPAx4sSUM6TSv-KzqtaJni7Kf277KVG2cbSXSIOg,608
|
|
70
64
|
agenta/client/backend/types/app_variant_response.py,sha256=lFrl63ZTceAjMvLYQyIruRUF4ycQ4bB-OXuJtPqqQ6E,1094
|
|
71
65
|
agenta/client/backend/types/app_variant_revision.py,sha256=PlBmaus97LdGhUHcIVdNEvfsYvsKnmtoupjAvclecRY,681
|
|
72
66
|
agenta/client/backend/types/base_output.py,sha256=_cYuHdi6THNGEeDmvTb1yo82JlvV9-aCVLHcl4Q-UCY,597
|
|
73
|
-
agenta/client/backend/types/body_import_testset.py,sha256=
|
|
74
|
-
agenta/client/backend/types/bucket_dto.py,sha256=8uW9oIn4C0ke9PyiQdDT0y50s-jEAhGHsDlcKwAkDjc,705
|
|
67
|
+
agenta/client/backend/types/body_import_testset.py,sha256=J-AH8SkA6mWgNZ5vIz12xpnhPCdZybctxQ5INVxhxgc,696
|
|
75
68
|
agenta/client/backend/types/collect_status_response.py,sha256=Rk7Llfh2lI7U1YHRP4CffFaUKiXCXbOv7us88cMTchM,605
|
|
76
69
|
agenta/client/backend/types/config_db.py,sha256=nCM_3WKTCP3zko26wys5wTSn2cun9OYclwMp_vY5qjE,666
|
|
77
70
|
agenta/client/backend/types/config_dto.py,sha256=x13NXqJd46LDN5w5ejj93HkeZay_nYWvH-7xq3yVM90,1207
|
|
@@ -99,7 +92,6 @@ agenta/client/backend/types/evaluator_mapping_output_interface.py,sha256=KiQzlq7
|
|
|
99
92
|
agenta/client/backend/types/evaluator_output_interface.py,sha256=r4aU7-fUBMvdXzbJIeQ9aoFiIhH58Ofmkn_BKpTMJko,634
|
|
100
93
|
agenta/client/backend/types/exception_dto.py,sha256=Y7eJ6ZOukbq30ZB2Vljr72YbezNsN9FGrUIJBWg4TYo,797
|
|
101
94
|
agenta/client/backend/types/get_config_response.py,sha256=uNaeYEq3VCNm3uZ1mNnxBhDzrNz0LYjuz984ASEk5Fk,676
|
|
102
|
-
agenta/client/backend/types/header_dto.py,sha256=DMxWESxcVhNFPxm2M-jPSHrO5VQdO2Jg24LovfZXHWg,643
|
|
103
95
|
agenta/client/backend/types/http_validation_error.py,sha256=bMxjckCqPguIznV-z-517GS-d2EXC9wJEg0XCcQfq_E,681
|
|
104
96
|
agenta/client/backend/types/human_evaluation.py,sha256=jUNYGW6zp4UWB-SOY1oOB6FX_HtJ32cKRjUlXQzvllk,883
|
|
105
97
|
agenta/client/backend/types/human_evaluation_scenario.py,sha256=GZFGdki4Rlfly7RUhNrWpS2x8N0fHelHdk55YtxY3l0,1127
|
|
@@ -109,14 +101,12 @@ agenta/client/backend/types/human_evaluation_scenario_update.py,sha256=eh33QTkJN
|
|
|
109
101
|
agenta/client/backend/types/human_evaluation_update.py,sha256=PDtYJDYLEfYRaJuG6eqavgXpNhE-LDK81i9qNo7QD7s,686
|
|
110
102
|
agenta/client/backend/types/image.py,sha256=Q8mnZynlIHHwlu3XRarjJAzgfadl87qPJ-fqH2WqQBw,722
|
|
111
103
|
agenta/client/backend/types/invite_request.py,sha256=ZYcO4_O5Jjnz6uDwcFUoQ1Bn-A0F9t2S3rQTx9arwJc,607
|
|
112
|
-
agenta/client/backend/types/legacy_analytics_response.py,sha256=-dyG9jk3OwdsGiNere46p9n7BWst1orhBR_BWVxaY6g,814
|
|
113
|
-
agenta/client/backend/types/legacy_data_point.py,sha256=jsFKtbBN_HJuxEjgLU6VqWHG3eWW7eIrPr0FAXA1bdY,718
|
|
114
104
|
agenta/client/backend/types/lifecycle_dto.py,sha256=jgOgDkq5m2zQ2S2d4USivPi-sZ2J0eaadwYv2LnghYU,742
|
|
115
105
|
agenta/client/backend/types/link_dto.py,sha256=pcL3P3143CDTfpaOjq2prQNuO_AWsP73HW74MOmaD8c,677
|
|
116
106
|
agenta/client/backend/types/list_api_keys_response.py,sha256=av8nz-yhcOYiLZEfnJDxr37W7r1C8VnLLoeSgJwQSY0,701
|
|
117
107
|
agenta/client/backend/types/llm_run_rate_limit.py,sha256=XiPGznCpdS-lPDiswj6pX5aIxhMuOfGCOda7IPcB0q8,659
|
|
118
108
|
agenta/client/backend/types/llm_tokens.py,sha256=-DLWHVU6spcBAkMjRQaI7QH3D3h6w3iOeHK8RXZcuqI,704
|
|
119
|
-
agenta/client/backend/types/
|
|
109
|
+
agenta/client/backend/types/lm_providers_enum.py,sha256=TetfW4xvX51XlTuu7t6OZ6Bvhq4XXIB7Ro8jKnD2wkE,494
|
|
120
110
|
agenta/client/backend/types/new_human_evaluation.py,sha256=Rp_cu_ApObG7QBT-Hkvwer604gO6P3QnVwpIfLv0Q38,764
|
|
121
111
|
agenta/client/backend/types/new_testset.py,sha256=S8ENb_fu5CeyxTvjN5ojXuVoaauNKgfwE738svFhWNY,647
|
|
122
112
|
agenta/client/backend/types/node_dto.py,sha256=-4oC4IPdsndGEaRK2woQpcuZ33GdqsM-i4MGzh90I7w,659
|
|
@@ -133,18 +123,12 @@ agenta/client/backend/types/organization.py,sha256=U8xVumZUcp5GnrRNJIHmaqibnxsVd
|
|
|
133
123
|
agenta/client/backend/types/organization_output.py,sha256=dXkUHfNfp_ho220_sb7EX3YmE2AqYc4rlsYngV3ELBI,595
|
|
134
124
|
agenta/client/backend/types/outputs.py,sha256=iSON-p8Feeq3laC5PK3BFe20GqLGSbYU5eI8viyvw-Y,168
|
|
135
125
|
agenta/client/backend/types/parent_dto.py,sha256=eh1bH2TJe9NLS2MdKZzIFvnwfKVBU_CNNPUkq1k2HnI,572
|
|
136
|
-
agenta/client/backend/types/permission.py,sha256=
|
|
137
|
-
agenta/client/backend/types/projects_response.py,sha256=yQUrCf9vfw8zje1DaYj2p64AAYb2OcRPF3lmVTmqX98,888
|
|
138
|
-
agenta/client/backend/types/provider_key_dto.py,sha256=WkvgA8qv2ceLyLyyGSv9AFewem5fN6rB4Jmw9Grmpco,645
|
|
139
|
-
agenta/client/backend/types/provider_kind.py,sha256=CiHeg12lPvgey2wN3cnTlFEC9UFzvb-HCUxbbpyQzrg,397
|
|
126
|
+
agenta/client/backend/types/permission.py,sha256=Pwg68fQo2U3sZdyeTYwRBkKGTVsGv3_1gizwREmfuk4,1104
|
|
140
127
|
agenta/client/backend/types/reference_dto.py,sha256=VNLakAy13glLgEPIXH9o_3vcPflPkQJdo0o113lPURc,678
|
|
141
128
|
agenta/client/backend/types/reference_request_model.py,sha256=nhf4VUAfAJ-vf9fbOhcTrxk6uuqMFSoy0NhChY9Y0VQ,687
|
|
142
129
|
agenta/client/backend/types/result.py,sha256=6qD2kzmdzu8q4ywLtAyWLQEDHw-Cu5xN5GLCV-FI7_Y,700
|
|
143
130
|
agenta/client/backend/types/root_dto.py,sha256=F9OYWFLSCKSR-4z8BOV-eGmNkraVakxNPjsuwCUxYuY,570
|
|
144
131
|
agenta/client/backend/types/score.py,sha256=OAur_nJtRQmpboZfzFi2l1-zmNxFfETcl13C7OAvpMw,111
|
|
145
|
-
agenta/client/backend/types/secret_dto.py,sha256=X3E0zfATI_Lb5Hov8zl2RS5g9SH5qzX2mf2UyvXbpwg,704
|
|
146
|
-
agenta/client/backend/types/secret_kind.py,sha256=FfxqfDrPrHFLpEVDwfDu4YEiT6xOXddn2e1omGdEPMM,124
|
|
147
|
-
agenta/client/backend/types/secret_response_dto.py,sha256=nWUOloKLzujwG_FnOs3qVgwcHjdsiAcF-fqnhjjMOhk,808
|
|
148
132
|
agenta/client/backend/types/simple_evaluation_output.py,sha256=XBm4IVY28brTIYrRQVUK7tFmxUUnqL6nKgVW5_E9PbM,731
|
|
149
133
|
agenta/client/backend/types/span.py,sha256=z3VDnH3vN-NWyP_QLtuJ16N8JVcHt0RUm5ziQ32R1G0,1278
|
|
150
134
|
agenta/client/backend/types/span_detail.py,sha256=cHedPJi4rBouIkQmjfMBoOx9W7TP9t09wlOoqgvIEWs,1410
|
|
@@ -175,11 +159,9 @@ agenta/client/backend/types/workspace_response.py,sha256=n1884dwY4C9Gm-JCyprnLfO
|
|
|
175
159
|
agenta/client/backend/types/workspace_role.py,sha256=k-ltfq7aAWGg85tTPIf8HpFMMf4gu02_X8R2fFPmB7U,286
|
|
176
160
|
agenta/client/backend/types/workspace_role_response.py,sha256=6hlRcsMmpf6Q0ejLzRKJiZo_9rygazcbJfpPq2jQZVw,693
|
|
177
161
|
agenta/client/backend/variants/__init__.py,sha256=BMR4SvsrqXC9FU8nPVzY8M9xGrBEhEGrmbgvy3iM1aE,171
|
|
178
|
-
agenta/client/backend/variants/client.py,sha256=
|
|
162
|
+
agenta/client/backend/variants/client.py,sha256=GTN5-kfpiRhn458ui2G6q9xoO87QG6eKJrMr5w93oGI,90741
|
|
179
163
|
agenta/client/backend/variants/types/__init__.py,sha256=TrRUAyPsJ1bKg2gfW0d_S1rEu6eaYnHmr2g_URTuwPU,216
|
|
180
164
|
agenta/client/backend/variants/types/add_variant_from_base_and_config_response.py,sha256=nbcakmo3eZpWmyX_DhS6F4jyhfV2t5zN-zOgDtM2rKQ,247
|
|
181
|
-
agenta/client/backend/vault/__init__.py,sha256=9mUnTDeA1TxYvkj1l01A1prqsJV0ERRY2tzkY1fA4MQ,64
|
|
182
|
-
agenta/client/backend/vault/client.py,sha256=_RTYhUUN1GoBWn3sgsjCAgHUPyWK26iuc0Ckvix0hms,21916
|
|
183
165
|
agenta/client/client.py,sha256=DWOGS9A8u4wu28s9jGOR4eRhf7vo4zT7GyDvrIGu59Y,19648
|
|
184
166
|
agenta/client/exceptions.py,sha256=cxLjjKvZKlUgBxt4Vn9J_SsezJPPNHvrZxnoq-D6zmw,94
|
|
185
167
|
agenta/config.py,sha256=0VrTqduB4g8Mt_Ll7ffFcEjKF5qjTUIxmUtTPW2ygWw,653
|
|
@@ -199,7 +181,7 @@ agenta/sdk/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
|
199
181
|
agenta/sdk/context/routing.py,sha256=ycUgmJZyWhL4bHjKtUSAsTlt_0Fujr_6OpoaEH1lAN0,683
|
|
200
182
|
agenta/sdk/context/tracing.py,sha256=UmmW15UFFsvxS0myS6aD9wBk5iNepNlQi4tEQ_ejfYM,96
|
|
201
183
|
agenta/sdk/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
202
|
-
agenta/sdk/decorators/routing.py,sha256=
|
|
184
|
+
agenta/sdk/decorators/routing.py,sha256=cuqCenUuu6nFSyNR_2gKCnuuOrNI28PfsKEzUA7r-SU,33040
|
|
203
185
|
agenta/sdk/decorators/tracing.py,sha256=vL5e6TVX6TQwO0t9raZwnzXHV3vElVT0pHS1vD-vzEo,8523
|
|
204
186
|
agenta/sdk/litellm/__init__.py,sha256=Bpz1gfHQc0MN1yolWcjifLWznv6GjHggvRGQSpxpihM,37
|
|
205
187
|
agenta/sdk/litellm/litellm.py,sha256=Ke0It-jA1z0KQ2770gIlWIEgramZGmt1k0GjmpEnFV4,8793
|
|
@@ -245,7 +227,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
|
|
|
245
227
|
agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
|
|
246
228
|
agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
|
|
247
229
|
agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
|
|
248
|
-
agenta-0.30.
|
|
249
|
-
agenta-0.30.
|
|
250
|
-
agenta-0.30.
|
|
251
|
-
agenta-0.30.
|
|
230
|
+
agenta-0.30.0a2.dist-info/METADATA,sha256=Cwm6ELFobQK-OYfZU6JTA_B3nY6XxUnqSavaOU9TfyY,28992
|
|
231
|
+
agenta-0.30.0a2.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
|
232
|
+
agenta-0.30.0a2.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
|
|
233
|
+
agenta-0.30.0a2.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.client_wrapper import SyncClientWrapper
|
|
4
|
-
import typing
|
|
5
|
-
from ..core.request_options import RequestOptions
|
|
6
|
-
from ..core.pydantic_utilities import parse_obj_as
|
|
7
|
-
from ..errors.unprocessable_entity_error import UnprocessableEntityError
|
|
8
|
-
from ..types.http_validation_error import HttpValidationError
|
|
9
|
-
from json.decoder import JSONDecodeError
|
|
10
|
-
from ..core.api_error import ApiError
|
|
11
|
-
from ..core.client_wrapper import AsyncClientWrapper
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class AccessControlClient:
|
|
15
|
-
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
16
|
-
self._client_wrapper = client_wrapper
|
|
17
|
-
|
|
18
|
-
def verify_permissions(
|
|
19
|
-
self,
|
|
20
|
-
*,
|
|
21
|
-
action: typing.Optional[str] = None,
|
|
22
|
-
resource_type: typing.Optional[str] = None,
|
|
23
|
-
resource_id: typing.Optional[str] = None,
|
|
24
|
-
request_options: typing.Optional[RequestOptions] = None,
|
|
25
|
-
) -> typing.Optional[typing.Any]:
|
|
26
|
-
"""
|
|
27
|
-
Parameters
|
|
28
|
-
----------
|
|
29
|
-
action : typing.Optional[str]
|
|
30
|
-
|
|
31
|
-
resource_type : typing.Optional[str]
|
|
32
|
-
|
|
33
|
-
resource_id : typing.Optional[str]
|
|
34
|
-
|
|
35
|
-
request_options : typing.Optional[RequestOptions]
|
|
36
|
-
Request-specific configuration.
|
|
37
|
-
|
|
38
|
-
Returns
|
|
39
|
-
-------
|
|
40
|
-
typing.Optional[typing.Any]
|
|
41
|
-
Successful Response
|
|
42
|
-
|
|
43
|
-
Examples
|
|
44
|
-
--------
|
|
45
|
-
from agenta import AgentaApi
|
|
46
|
-
|
|
47
|
-
client = AgentaApi(
|
|
48
|
-
api_key="YOUR_API_KEY",
|
|
49
|
-
base_url="https://yourhost.com/path/to/api",
|
|
50
|
-
)
|
|
51
|
-
client.access_control.verify_permissions()
|
|
52
|
-
"""
|
|
53
|
-
_response = self._client_wrapper.httpx_client.request(
|
|
54
|
-
"permissions/verify",
|
|
55
|
-
method="GET",
|
|
56
|
-
params={
|
|
57
|
-
"action": action,
|
|
58
|
-
"resource_type": resource_type,
|
|
59
|
-
"resource_id": resource_id,
|
|
60
|
-
},
|
|
61
|
-
request_options=request_options,
|
|
62
|
-
)
|
|
63
|
-
try:
|
|
64
|
-
if 200 <= _response.status_code < 300:
|
|
65
|
-
return typing.cast(
|
|
66
|
-
typing.Optional[typing.Any],
|
|
67
|
-
parse_obj_as(
|
|
68
|
-
type_=typing.Optional[typing.Any], # type: ignore
|
|
69
|
-
object_=_response.json(),
|
|
70
|
-
),
|
|
71
|
-
)
|
|
72
|
-
if _response.status_code == 422:
|
|
73
|
-
raise UnprocessableEntityError(
|
|
74
|
-
typing.cast(
|
|
75
|
-
HttpValidationError,
|
|
76
|
-
parse_obj_as(
|
|
77
|
-
type_=HttpValidationError, # type: ignore
|
|
78
|
-
object_=_response.json(),
|
|
79
|
-
),
|
|
80
|
-
)
|
|
81
|
-
)
|
|
82
|
-
_response_json = _response.json()
|
|
83
|
-
except JSONDecodeError:
|
|
84
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
85
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
class AsyncAccessControlClient:
|
|
89
|
-
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
90
|
-
self._client_wrapper = client_wrapper
|
|
91
|
-
|
|
92
|
-
async def verify_permissions(
|
|
93
|
-
self,
|
|
94
|
-
*,
|
|
95
|
-
action: typing.Optional[str] = None,
|
|
96
|
-
resource_type: typing.Optional[str] = None,
|
|
97
|
-
resource_id: typing.Optional[str] = None,
|
|
98
|
-
request_options: typing.Optional[RequestOptions] = None,
|
|
99
|
-
) -> typing.Optional[typing.Any]:
|
|
100
|
-
"""
|
|
101
|
-
Parameters
|
|
102
|
-
----------
|
|
103
|
-
action : typing.Optional[str]
|
|
104
|
-
|
|
105
|
-
resource_type : typing.Optional[str]
|
|
106
|
-
|
|
107
|
-
resource_id : typing.Optional[str]
|
|
108
|
-
|
|
109
|
-
request_options : typing.Optional[RequestOptions]
|
|
110
|
-
Request-specific configuration.
|
|
111
|
-
|
|
112
|
-
Returns
|
|
113
|
-
-------
|
|
114
|
-
typing.Optional[typing.Any]
|
|
115
|
-
Successful Response
|
|
116
|
-
|
|
117
|
-
Examples
|
|
118
|
-
--------
|
|
119
|
-
import asyncio
|
|
120
|
-
|
|
121
|
-
from agenta import AsyncAgentaApi
|
|
122
|
-
|
|
123
|
-
client = AsyncAgentaApi(
|
|
124
|
-
api_key="YOUR_API_KEY",
|
|
125
|
-
base_url="https://yourhost.com/path/to/api",
|
|
126
|
-
)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
async def main() -> None:
|
|
130
|
-
await client.access_control.verify_permissions()
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
asyncio.run(main())
|
|
134
|
-
"""
|
|
135
|
-
_response = await self._client_wrapper.httpx_client.request(
|
|
136
|
-
"permissions/verify",
|
|
137
|
-
method="GET",
|
|
138
|
-
params={
|
|
139
|
-
"action": action,
|
|
140
|
-
"resource_type": resource_type,
|
|
141
|
-
"resource_id": resource_id,
|
|
142
|
-
},
|
|
143
|
-
request_options=request_options,
|
|
144
|
-
)
|
|
145
|
-
try:
|
|
146
|
-
if 200 <= _response.status_code < 300:
|
|
147
|
-
return typing.cast(
|
|
148
|
-
typing.Optional[typing.Any],
|
|
149
|
-
parse_obj_as(
|
|
150
|
-
type_=typing.Optional[typing.Any], # type: ignore
|
|
151
|
-
object_=_response.json(),
|
|
152
|
-
),
|
|
153
|
-
)
|
|
154
|
-
if _response.status_code == 422:
|
|
155
|
-
raise UnprocessableEntityError(
|
|
156
|
-
typing.cast(
|
|
157
|
-
HttpValidationError,
|
|
158
|
-
parse_obj_as(
|
|
159
|
-
type_=HttpValidationError, # type: ignore
|
|
160
|
-
object_=_response.json(),
|
|
161
|
-
),
|
|
162
|
-
)
|
|
163
|
-
)
|
|
164
|
-
_response_json = _response.json()
|
|
165
|
-
except JSONDecodeError:
|
|
166
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
167
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
from ...types.legacy_analytics_response import LegacyAnalyticsResponse
|
|
5
|
-
from ...types.analytics_response import AnalyticsResponse
|
|
6
|
-
|
|
7
|
-
QueryAnalyticsResponse = typing.Union[LegacyAnalyticsResponse, AnalyticsResponse]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.client_wrapper import SyncClientWrapper
|
|
4
|
-
import typing
|
|
5
|
-
from ..core.request_options import RequestOptions
|
|
6
|
-
from ..types.projects_response import ProjectsResponse
|
|
7
|
-
from ..core.pydantic_utilities import parse_obj_as
|
|
8
|
-
from json.decoder import JSONDecodeError
|
|
9
|
-
from ..core.api_error import ApiError
|
|
10
|
-
from ..core.client_wrapper import AsyncClientWrapper
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ScopesClient:
|
|
14
|
-
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
15
|
-
self._client_wrapper = client_wrapper
|
|
16
|
-
|
|
17
|
-
def get_projects(
|
|
18
|
-
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
19
|
-
) -> typing.List[ProjectsResponse]:
|
|
20
|
-
"""
|
|
21
|
-
Parameters
|
|
22
|
-
----------
|
|
23
|
-
request_options : typing.Optional[RequestOptions]
|
|
24
|
-
Request-specific configuration.
|
|
25
|
-
|
|
26
|
-
Returns
|
|
27
|
-
-------
|
|
28
|
-
typing.List[ProjectsResponse]
|
|
29
|
-
Successful Response
|
|
30
|
-
|
|
31
|
-
Examples
|
|
32
|
-
--------
|
|
33
|
-
from agenta import AgentaApi
|
|
34
|
-
|
|
35
|
-
client = AgentaApi(
|
|
36
|
-
api_key="YOUR_API_KEY",
|
|
37
|
-
base_url="https://yourhost.com/path/to/api",
|
|
38
|
-
)
|
|
39
|
-
client.scopes.get_projects()
|
|
40
|
-
"""
|
|
41
|
-
_response = self._client_wrapper.httpx_client.request(
|
|
42
|
-
"projects",
|
|
43
|
-
method="GET",
|
|
44
|
-
request_options=request_options,
|
|
45
|
-
)
|
|
46
|
-
try:
|
|
47
|
-
if 200 <= _response.status_code < 300:
|
|
48
|
-
return typing.cast(
|
|
49
|
-
typing.List[ProjectsResponse],
|
|
50
|
-
parse_obj_as(
|
|
51
|
-
type_=typing.List[ProjectsResponse], # type: ignore
|
|
52
|
-
object_=_response.json(),
|
|
53
|
-
),
|
|
54
|
-
)
|
|
55
|
-
_response_json = _response.json()
|
|
56
|
-
except JSONDecodeError:
|
|
57
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
58
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
class AsyncScopesClient:
|
|
62
|
-
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
63
|
-
self._client_wrapper = client_wrapper
|
|
64
|
-
|
|
65
|
-
async def get_projects(
|
|
66
|
-
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
67
|
-
) -> typing.List[ProjectsResponse]:
|
|
68
|
-
"""
|
|
69
|
-
Parameters
|
|
70
|
-
----------
|
|
71
|
-
request_options : typing.Optional[RequestOptions]
|
|
72
|
-
Request-specific configuration.
|
|
73
|
-
|
|
74
|
-
Returns
|
|
75
|
-
-------
|
|
76
|
-
typing.List[ProjectsResponse]
|
|
77
|
-
Successful Response
|
|
78
|
-
|
|
79
|
-
Examples
|
|
80
|
-
--------
|
|
81
|
-
import asyncio
|
|
82
|
-
|
|
83
|
-
from agenta import AsyncAgentaApi
|
|
84
|
-
|
|
85
|
-
client = AsyncAgentaApi(
|
|
86
|
-
api_key="YOUR_API_KEY",
|
|
87
|
-
base_url="https://yourhost.com/path/to/api",
|
|
88
|
-
)
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
async def main() -> None:
|
|
92
|
-
await client.scopes.get_projects()
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
asyncio.run(main())
|
|
96
|
-
"""
|
|
97
|
-
_response = await self._client_wrapper.httpx_client.request(
|
|
98
|
-
"projects",
|
|
99
|
-
method="GET",
|
|
100
|
-
request_options=request_options,
|
|
101
|
-
)
|
|
102
|
-
try:
|
|
103
|
-
if 200 <= _response.status_code < 300:
|
|
104
|
-
return typing.cast(
|
|
105
|
-
typing.List[ProjectsResponse],
|
|
106
|
-
parse_obj_as(
|
|
107
|
-
type_=typing.List[ProjectsResponse], # type: ignore
|
|
108
|
-
object_=_response.json(),
|
|
109
|
-
),
|
|
110
|
-
)
|
|
111
|
-
_response_json = _response.json()
|
|
112
|
-
except JSONDecodeError:
|
|
113
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
114
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
-
import typing
|
|
5
|
-
from .bucket_dto import BucketDto
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
-
import pydantic
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class AnalyticsResponse(UniversalBaseModel):
|
|
11
|
-
version: str
|
|
12
|
-
count: typing.Optional[int] = None
|
|
13
|
-
buckets: typing.List[BucketDto]
|
|
14
|
-
|
|
15
|
-
if IS_PYDANTIC_V2:
|
|
16
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
17
|
-
extra="allow", frozen=True
|
|
18
|
-
) # type: ignore # Pydantic v2
|
|
19
|
-
else:
|
|
20
|
-
|
|
21
|
-
class Config:
|
|
22
|
-
frozen = True
|
|
23
|
-
smart_union = True
|
|
24
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
-
import datetime as dt
|
|
5
|
-
from .metrics_dto import MetricsDto
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
-
import typing
|
|
8
|
-
import pydantic
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class BucketDto(UniversalBaseModel):
|
|
12
|
-
timestamp: dt.datetime
|
|
13
|
-
window: int
|
|
14
|
-
total: MetricsDto
|
|
15
|
-
error: MetricsDto
|
|
16
|
-
|
|
17
|
-
if IS_PYDANTIC_V2:
|
|
18
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
19
|
-
extra="allow", frozen=True
|
|
20
|
-
) # type: ignore # Pydantic v2
|
|
21
|
-
else:
|
|
22
|
-
|
|
23
|
-
class Config:
|
|
24
|
-
frozen = True
|
|
25
|
-
smart_union = True
|
|
26
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
-
import typing
|
|
5
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
-
import pydantic
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class HeaderDto(UniversalBaseModel):
|
|
10
|
-
name: typing.Optional[str] = None
|
|
11
|
-
description: typing.Optional[str] = None
|
|
12
|
-
|
|
13
|
-
if IS_PYDANTIC_V2:
|
|
14
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
15
|
-
extra="allow", frozen=True
|
|
16
|
-
) # type: ignore # Pydantic v2
|
|
17
|
-
else:
|
|
18
|
-
|
|
19
|
-
class Config:
|
|
20
|
-
frozen = True
|
|
21
|
-
smart_union = True
|
|
22
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
-
import typing
|
|
5
|
-
from .legacy_data_point import LegacyDataPoint
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
-
import pydantic
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class LegacyAnalyticsResponse(UniversalBaseModel):
|
|
11
|
-
total_count: int
|
|
12
|
-
failure_rate: float
|
|
13
|
-
total_cost: float
|
|
14
|
-
avg_cost: float
|
|
15
|
-
avg_latency: float
|
|
16
|
-
total_tokens: int
|
|
17
|
-
avg_tokens: float
|
|
18
|
-
data: typing.List[LegacyDataPoint]
|
|
19
|
-
|
|
20
|
-
if IS_PYDANTIC_V2:
|
|
21
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
22
|
-
extra="allow", frozen=True
|
|
23
|
-
) # type: ignore # Pydantic v2
|
|
24
|
-
else:
|
|
25
|
-
|
|
26
|
-
class Config:
|
|
27
|
-
frozen = True
|
|
28
|
-
smart_union = True
|
|
29
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
-
import datetime as dt
|
|
5
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
-
import typing
|
|
7
|
-
import pydantic
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class LegacyDataPoint(UniversalBaseModel):
|
|
11
|
-
timestamp: dt.datetime
|
|
12
|
-
success_count: int
|
|
13
|
-
failure_count: int
|
|
14
|
-
cost: float
|
|
15
|
-
latency: float
|
|
16
|
-
total_tokens: int
|
|
17
|
-
|
|
18
|
-
if IS_PYDANTIC_V2:
|
|
19
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
20
|
-
extra="allow", frozen=True
|
|
21
|
-
) # type: ignore # Pydantic v2
|
|
22
|
-
else:
|
|
23
|
-
|
|
24
|
-
class Config:
|
|
25
|
-
frozen = True
|
|
26
|
-
smart_union = True
|
|
27
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
-
import typing
|
|
5
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
-
import pydantic
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class MetricsDto(UniversalBaseModel):
|
|
10
|
-
count: typing.Optional[int] = None
|
|
11
|
-
duration: typing.Optional[float] = None
|
|
12
|
-
cost: typing.Optional[float] = None
|
|
13
|
-
tokens: typing.Optional[int] = None
|
|
14
|
-
|
|
15
|
-
if IS_PYDANTIC_V2:
|
|
16
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
17
|
-
extra="allow", frozen=True
|
|
18
|
-
) # type: ignore # Pydantic v2
|
|
19
|
-
else:
|
|
20
|
-
|
|
21
|
-
class Config:
|
|
22
|
-
frozen = True
|
|
23
|
-
smart_union = True
|
|
24
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
-
import typing
|
|
5
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
-
import pydantic
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class ProjectsResponse(UniversalBaseModel):
|
|
10
|
-
organization_id: typing.Optional[str] = None
|
|
11
|
-
organization_name: typing.Optional[str] = None
|
|
12
|
-
workspace_id: typing.Optional[str] = None
|
|
13
|
-
workspace_name: typing.Optional[str] = None
|
|
14
|
-
project_id: str
|
|
15
|
-
project_name: str
|
|
16
|
-
user_role: typing.Optional[str] = None
|
|
17
|
-
is_demo: typing.Optional[bool] = None
|
|
18
|
-
|
|
19
|
-
if IS_PYDANTIC_V2:
|
|
20
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
21
|
-
extra="allow", frozen=True
|
|
22
|
-
) # type: ignore # Pydantic v2
|
|
23
|
-
else:
|
|
24
|
-
|
|
25
|
-
class Config:
|
|
26
|
-
frozen = True
|
|
27
|
-
smart_union = True
|
|
28
|
-
extra = pydantic.Extra.allow
|