agenta 0.57.0__py3-none-any.whl → 0.65.0__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.
- agenta/__init__.py +12 -3
- agenta/client/__init__.py +4 -4
- agenta/client/backend/__init__.py +4 -4
- agenta/client/backend/api_keys/client.py +2 -2
- agenta/client/backend/billing/client.py +2 -2
- agenta/client/backend/billing/raw_client.py +2 -2
- agenta/client/backend/client.py +56 -48
- agenta/client/backend/core/client_wrapper.py +2 -2
- agenta/client/backend/core/file.py +3 -1
- agenta/client/backend/core/http_client.py +3 -3
- agenta/client/backend/core/pydantic_utilities.py +13 -3
- agenta/client/backend/human_evaluations/client.py +2 -2
- agenta/client/backend/human_evaluations/raw_client.py +2 -2
- agenta/client/backend/organization/client.py +46 -34
- agenta/client/backend/organization/raw_client.py +32 -26
- agenta/client/backend/raw_client.py +26 -26
- agenta/client/backend/testsets/client.py +18 -18
- agenta/client/backend/testsets/raw_client.py +30 -30
- agenta/client/backend/types/__init__.py +4 -4
- agenta/client/backend/types/account_request.py +3 -1
- agenta/client/backend/types/account_response.py +3 -1
- agenta/client/backend/types/agenta_node_dto.py +3 -1
- agenta/client/backend/types/agenta_nodes_response.py +3 -1
- agenta/client/backend/types/agenta_root_dto.py +3 -1
- agenta/client/backend/types/agenta_roots_response.py +3 -1
- agenta/client/backend/types/agenta_tree_dto.py +3 -1
- agenta/client/backend/types/agenta_trees_response.py +3 -1
- agenta/client/backend/types/aggregated_result.py +3 -1
- agenta/client/backend/types/analytics_response.py +3 -1
- agenta/client/backend/types/annotation.py +6 -4
- agenta/client/backend/types/annotation_create.py +3 -1
- agenta/client/backend/types/annotation_edit.py +3 -1
- agenta/client/backend/types/annotation_link.py +3 -1
- agenta/client/backend/types/annotation_link_response.py +3 -1
- agenta/client/backend/types/annotation_query.py +3 -1
- agenta/client/backend/types/annotation_query_request.py +3 -1
- agenta/client/backend/types/annotation_reference.py +3 -1
- agenta/client/backend/types/annotation_references.py +3 -1
- agenta/client/backend/types/annotation_response.py +3 -1
- agenta/client/backend/types/annotations_response.py +3 -1
- agenta/client/backend/types/app.py +3 -1
- agenta/client/backend/types/app_variant_response.py +3 -1
- agenta/client/backend/types/app_variant_revision.py +3 -1
- agenta/client/backend/types/artifact.py +6 -4
- agenta/client/backend/types/base_output.py +3 -1
- agenta/client/backend/types/body_fetch_workflow_revision.py +3 -1
- agenta/client/backend/types/body_import_testset.py +3 -1
- agenta/client/backend/types/bucket_dto.py +3 -1
- agenta/client/backend/types/collect_status_response.py +3 -1
- agenta/client/backend/types/config_db.py +3 -1
- agenta/client/backend/types/config_dto.py +3 -1
- agenta/client/backend/types/config_response_model.py +3 -1
- agenta/client/backend/types/correct_answer.py +3 -1
- agenta/client/backend/types/create_app_output.py +3 -1
- agenta/client/backend/types/custom_model_settings_dto.py +3 -1
- agenta/client/backend/types/custom_provider_dto.py +3 -1
- agenta/client/backend/types/custom_provider_kind.py +1 -1
- agenta/client/backend/types/custom_provider_settings_dto.py +3 -1
- agenta/client/backend/types/delete_evaluation.py +3 -1
- agenta/client/backend/types/environment_output.py +3 -1
- agenta/client/backend/types/environment_output_extended.py +3 -1
- agenta/client/backend/types/environment_revision.py +3 -1
- agenta/client/backend/types/error.py +3 -1
- agenta/client/backend/types/evaluation.py +3 -1
- agenta/client/backend/types/evaluation_scenario.py +3 -1
- agenta/client/backend/types/evaluation_scenario_input.py +3 -1
- agenta/client/backend/types/evaluation_scenario_output.py +3 -1
- agenta/client/backend/types/evaluation_scenario_result.py +3 -1
- agenta/client/backend/types/evaluator.py +6 -4
- agenta/client/backend/types/evaluator_config.py +6 -4
- agenta/client/backend/types/evaluator_flags.py +3 -1
- agenta/client/backend/types/evaluator_mapping_output_interface.py +3 -1
- agenta/client/backend/types/evaluator_output_interface.py +3 -1
- agenta/client/backend/types/evaluator_query.py +3 -1
- agenta/client/backend/types/evaluator_query_request.py +3 -1
- agenta/client/backend/types/evaluator_request.py +3 -1
- agenta/client/backend/types/evaluator_response.py +3 -1
- agenta/client/backend/types/evaluators_response.py +3 -1
- agenta/client/backend/types/exception_dto.py +3 -1
- agenta/client/backend/types/extended_o_tel_tracing_response.py +3 -1
- agenta/client/backend/types/get_config_response.py +3 -1
- agenta/client/backend/types/header.py +3 -1
- agenta/client/backend/types/http_validation_error.py +3 -1
- agenta/client/backend/types/human_evaluation.py +3 -1
- agenta/client/backend/types/human_evaluation_scenario.py +3 -1
- agenta/client/backend/types/human_evaluation_scenario_input.py +3 -1
- agenta/client/backend/types/human_evaluation_scenario_output.py +3 -1
- agenta/client/backend/types/invite_request.py +3 -1
- agenta/client/backend/types/legacy_analytics_response.py +3 -1
- agenta/client/backend/types/legacy_data_point.py +3 -1
- agenta/client/backend/types/legacy_evaluator.py +3 -1
- agenta/client/backend/types/legacy_scope_request.py +3 -1
- agenta/client/backend/types/legacy_scopes_response.py +3 -1
- agenta/client/backend/types/legacy_subscription_request.py +3 -1
- agenta/client/backend/types/legacy_user_request.py +3 -1
- agenta/client/backend/types/legacy_user_response.py +3 -1
- agenta/client/backend/types/lifecycle_dto.py +3 -1
- agenta/client/backend/types/link_dto.py +3 -1
- agenta/client/backend/types/list_api_keys_response.py +3 -1
- agenta/client/backend/types/llm_run_rate_limit.py +3 -1
- agenta/client/backend/types/meta_request.py +3 -1
- agenta/client/backend/types/metrics_dto.py +3 -1
- agenta/client/backend/types/new_testset.py +3 -1
- agenta/client/backend/types/node_dto.py +3 -1
- agenta/client/backend/types/o_tel_context_dto.py +3 -1
- agenta/client/backend/types/o_tel_event.py +6 -4
- agenta/client/backend/types/o_tel_event_dto.py +3 -1
- agenta/client/backend/types/o_tel_extra_dto.py +3 -1
- agenta/client/backend/types/o_tel_flat_span.py +6 -4
- agenta/client/backend/types/o_tel_link.py +6 -4
- agenta/client/backend/types/o_tel_link_dto.py +3 -1
- agenta/client/backend/types/o_tel_links_response.py +3 -1
- agenta/client/backend/types/o_tel_span.py +1 -1
- agenta/client/backend/types/o_tel_span_dto.py +3 -1
- agenta/client/backend/types/o_tel_spans_tree.py +3 -1
- agenta/client/backend/types/o_tel_tracing_data_response.py +3 -1
- agenta/client/backend/types/o_tel_tracing_request.py +3 -1
- agenta/client/backend/types/o_tel_tracing_response.py +3 -1
- agenta/client/backend/types/organization.py +3 -1
- agenta/client/backend/types/organization_details.py +3 -1
- agenta/client/backend/types/organization_membership_request.py +3 -1
- agenta/client/backend/types/organization_output.py +3 -1
- agenta/client/backend/types/organization_request.py +3 -1
- agenta/client/backend/types/parent_dto.py +3 -1
- agenta/client/backend/types/project_membership_request.py +3 -1
- agenta/client/backend/types/project_request.py +3 -1
- agenta/client/backend/types/project_scope.py +3 -1
- agenta/client/backend/types/projects_response.py +4 -1
- agenta/client/backend/types/reference.py +6 -4
- agenta/client/backend/types/reference_dto.py +3 -1
- agenta/client/backend/types/reference_request_model.py +3 -1
- agenta/client/backend/types/result.py +3 -1
- agenta/client/backend/types/root_dto.py +3 -1
- agenta/client/backend/types/scopes_response_model.py +3 -1
- agenta/client/backend/types/secret_dto.py +3 -1
- agenta/client/backend/types/secret_response_dto.py +3 -1
- agenta/client/backend/types/simple_evaluation_output.py +3 -1
- agenta/client/backend/types/span_dto.py +6 -4
- agenta/client/backend/types/standard_provider_dto.py +3 -1
- agenta/client/backend/types/standard_provider_settings_dto.py +3 -1
- agenta/client/backend/types/status_dto.py +3 -1
- agenta/client/backend/types/tags_request.py +3 -1
- agenta/client/backend/types/testcase_response.py +6 -4
- agenta/client/backend/types/testset.py +6 -4
- agenta/client/backend/types/{test_set_output_response.py → testset_output_response.py} +4 -2
- agenta/client/backend/types/testset_request.py +3 -1
- agenta/client/backend/types/testset_response.py +3 -1
- agenta/client/backend/types/{test_set_simple_response.py → testset_simple_response.py} +4 -2
- agenta/client/backend/types/testsets_response.py +3 -1
- agenta/client/backend/types/time_dto.py +3 -1
- agenta/client/backend/types/tree_dto.py +3 -1
- agenta/client/backend/types/update_app_output.py +3 -1
- agenta/client/backend/types/user_request.py +3 -1
- agenta/client/backend/types/validation_error.py +3 -1
- agenta/client/backend/types/workflow_artifact.py +6 -4
- agenta/client/backend/types/workflow_data.py +3 -1
- agenta/client/backend/types/workflow_flags.py +3 -1
- agenta/client/backend/types/workflow_request.py +3 -1
- agenta/client/backend/types/workflow_response.py +3 -1
- agenta/client/backend/types/workflow_revision.py +6 -4
- agenta/client/backend/types/workflow_revision_request.py +3 -1
- agenta/client/backend/types/workflow_revision_response.py +3 -1
- agenta/client/backend/types/workflow_revisions_response.py +3 -1
- agenta/client/backend/types/workflow_variant.py +6 -4
- agenta/client/backend/types/workflow_variant_request.py +3 -1
- agenta/client/backend/types/workflow_variant_response.py +3 -1
- agenta/client/backend/types/workflow_variants_response.py +3 -1
- agenta/client/backend/types/workflows_response.py +3 -1
- agenta/client/backend/types/workspace.py +3 -1
- agenta/client/backend/types/workspace_member_response.py +3 -1
- agenta/client/backend/types/workspace_membership_request.py +3 -1
- agenta/client/backend/types/workspace_permission.py +3 -1
- agenta/client/backend/types/workspace_request.py +3 -1
- agenta/client/backend/types/workspace_response.py +3 -1
- agenta/client/backend/workspace/client.py +2 -2
- agenta/client/client.py +102 -88
- agenta/sdk/__init__.py +52 -3
- agenta/sdk/agenta_init.py +43 -16
- agenta/sdk/assets.py +22 -15
- agenta/sdk/context/serving.py +20 -8
- agenta/sdk/context/tracing.py +40 -22
- agenta/sdk/contexts/__init__.py +0 -0
- agenta/sdk/contexts/routing.py +38 -0
- agenta/sdk/contexts/running.py +57 -0
- agenta/sdk/contexts/tracing.py +86 -0
- agenta/sdk/decorators/__init__.py +1 -0
- agenta/sdk/decorators/routing.py +284 -0
- agenta/sdk/decorators/running.py +692 -98
- agenta/sdk/decorators/serving.py +20 -21
- agenta/sdk/decorators/tracing.py +176 -131
- agenta/sdk/engines/__init__.py +0 -0
- agenta/sdk/engines/running/__init__.py +0 -0
- agenta/sdk/engines/running/utils.py +17 -0
- agenta/sdk/engines/tracing/__init__.py +1 -0
- agenta/sdk/engines/tracing/attributes.py +185 -0
- agenta/sdk/engines/tracing/conventions.py +49 -0
- agenta/sdk/engines/tracing/exporters.py +130 -0
- agenta/sdk/engines/tracing/inline.py +1154 -0
- agenta/sdk/engines/tracing/processors.py +190 -0
- agenta/sdk/engines/tracing/propagation.py +102 -0
- agenta/sdk/engines/tracing/spans.py +136 -0
- agenta/sdk/engines/tracing/tracing.py +324 -0
- agenta/sdk/evaluations/__init__.py +2 -0
- agenta/sdk/evaluations/metrics.py +37 -0
- agenta/sdk/evaluations/preview/__init__.py +0 -0
- agenta/sdk/evaluations/preview/evaluate.py +765 -0
- agenta/sdk/evaluations/preview/utils.py +861 -0
- agenta/sdk/evaluations/results.py +66 -0
- agenta/sdk/evaluations/runs.py +152 -0
- agenta/sdk/evaluations/scenarios.py +48 -0
- agenta/sdk/litellm/litellm.py +12 -0
- agenta/sdk/litellm/mockllm.py +6 -8
- agenta/sdk/litellm/mocks/__init__.py +5 -5
- agenta/sdk/managers/applications.py +304 -0
- agenta/sdk/managers/config.py +2 -2
- agenta/sdk/managers/evaluations.py +0 -0
- agenta/sdk/managers/evaluators.py +303 -0
- agenta/sdk/managers/secrets.py +161 -24
- agenta/sdk/managers/shared.py +3 -1
- agenta/sdk/managers/testsets.py +441 -0
- agenta/sdk/managers/vault.py +3 -3
- agenta/sdk/middleware/auth.py +0 -176
- agenta/sdk/middleware/vault.py +203 -8
- agenta/sdk/middlewares/__init__.py +0 -0
- agenta/sdk/middlewares/routing/__init__.py +0 -0
- agenta/sdk/middlewares/routing/auth.py +263 -0
- agenta/sdk/middlewares/routing/cors.py +30 -0
- agenta/sdk/middlewares/routing/otel.py +29 -0
- agenta/sdk/middlewares/running/__init__.py +0 -0
- agenta/sdk/middlewares/running/normalizer.py +321 -0
- agenta/sdk/middlewares/running/resolver.py +161 -0
- agenta/sdk/middlewares/running/vault.py +140 -0
- agenta/sdk/models/__init__.py +0 -0
- agenta/sdk/models/blobs.py +33 -0
- agenta/sdk/models/evaluations.py +119 -0
- agenta/sdk/models/git.py +126 -0
- agenta/sdk/models/shared.py +167 -0
- agenta/sdk/models/testsets.py +163 -0
- agenta/sdk/models/tracing.py +202 -0
- agenta/sdk/models/workflows.py +753 -0
- agenta/sdk/tracing/exporters.py +67 -17
- agenta/sdk/tracing/processors.py +97 -0
- agenta/sdk/tracing/propagation.py +3 -1
- agenta/sdk/tracing/spans.py +4 -0
- agenta/sdk/tracing/tracing.py +13 -13
- agenta/sdk/types.py +211 -17
- agenta/sdk/utils/cache.py +1 -1
- agenta/sdk/utils/client.py +38 -0
- agenta/sdk/utils/helpers.py +13 -12
- agenta/sdk/utils/logging.py +18 -78
- agenta/sdk/utils/references.py +23 -0
- agenta/sdk/workflows/builtin.py +600 -0
- agenta/sdk/workflows/configurations.py +22 -0
- agenta/sdk/workflows/errors.py +292 -0
- agenta/sdk/workflows/handlers.py +1791 -0
- agenta/sdk/workflows/interfaces.py +948 -0
- agenta/sdk/workflows/sandbox.py +118 -0
- agenta/sdk/workflows/utils.py +303 -6
- {agenta-0.57.0.dist-info → agenta-0.65.0.dist-info}/METADATA +44 -47
- agenta-0.65.0.dist-info/RECORD +421 -0
- agenta/sdk/middleware/adapt.py +0 -253
- agenta/sdk/middleware/base.py +0 -40
- agenta/sdk/middleware/flags.py +0 -40
- agenta/sdk/workflows/types.py +0 -472
- agenta-0.57.0.dist-info/RECORD +0 -371
- /agenta/sdk/{workflows → engines/running}/registry.py +0 -0
- {agenta-0.57.0.dist-info → agenta-0.65.0.dist-info}/WHEEL +0 -0
|
@@ -68,7 +68,7 @@ class RawAgentaApi:
|
|
|
68
68
|
|
|
69
69
|
def update_organization(
|
|
70
70
|
self,
|
|
71
|
-
|
|
71
|
+
organization_id: str,
|
|
72
72
|
*,
|
|
73
73
|
name: typing.Optional[str] = OMIT,
|
|
74
74
|
description: typing.Optional[str] = OMIT,
|
|
@@ -78,7 +78,7 @@ class RawAgentaApi:
|
|
|
78
78
|
"""
|
|
79
79
|
Parameters
|
|
80
80
|
----------
|
|
81
|
-
|
|
81
|
+
organization_id : str
|
|
82
82
|
|
|
83
83
|
name : typing.Optional[str]
|
|
84
84
|
|
|
@@ -95,7 +95,7 @@ class RawAgentaApi:
|
|
|
95
95
|
Successful Response
|
|
96
96
|
"""
|
|
97
97
|
_response = self._client_wrapper.httpx_client.request(
|
|
98
|
-
f"organizations/{jsonable_encoder(
|
|
98
|
+
f"organizations/{jsonable_encoder(organization_id)}",
|
|
99
99
|
method="PUT",
|
|
100
100
|
json={
|
|
101
101
|
"name": name,
|
|
@@ -146,7 +146,7 @@ class RawAgentaApi:
|
|
|
146
146
|
|
|
147
147
|
def create_workspace(
|
|
148
148
|
self,
|
|
149
|
-
|
|
149
|
+
organization_id: str,
|
|
150
150
|
*,
|
|
151
151
|
name: str,
|
|
152
152
|
description: typing.Optional[str] = OMIT,
|
|
@@ -156,7 +156,7 @@ class RawAgentaApi:
|
|
|
156
156
|
"""
|
|
157
157
|
Parameters
|
|
158
158
|
----------
|
|
159
|
-
|
|
159
|
+
organization_id : str
|
|
160
160
|
|
|
161
161
|
name : str
|
|
162
162
|
|
|
@@ -173,7 +173,7 @@ class RawAgentaApi:
|
|
|
173
173
|
Successful Response
|
|
174
174
|
"""
|
|
175
175
|
_response = self._client_wrapper.httpx_client.request(
|
|
176
|
-
f"organizations/{jsonable_encoder(
|
|
176
|
+
f"organizations/{jsonable_encoder(organization_id)}/workspaces",
|
|
177
177
|
method="POST",
|
|
178
178
|
json={
|
|
179
179
|
"name": name,
|
|
@@ -222,7 +222,7 @@ class RawAgentaApi:
|
|
|
222
222
|
|
|
223
223
|
def update_workspace(
|
|
224
224
|
self,
|
|
225
|
-
|
|
225
|
+
organization_id: str,
|
|
226
226
|
workspace_id: str,
|
|
227
227
|
*,
|
|
228
228
|
name: typing.Optional[str] = OMIT,
|
|
@@ -233,7 +233,7 @@ class RawAgentaApi:
|
|
|
233
233
|
"""
|
|
234
234
|
Parameters
|
|
235
235
|
----------
|
|
236
|
-
|
|
236
|
+
organization_id : str
|
|
237
237
|
|
|
238
238
|
workspace_id : str
|
|
239
239
|
|
|
@@ -252,7 +252,7 @@ class RawAgentaApi:
|
|
|
252
252
|
Successful Response
|
|
253
253
|
"""
|
|
254
254
|
_response = self._client_wrapper.httpx_client.request(
|
|
255
|
-
f"organizations/{jsonable_encoder(
|
|
255
|
+
f"organizations/{jsonable_encoder(organization_id)}/workspaces/{jsonable_encoder(workspace_id)}",
|
|
256
256
|
method="PUT",
|
|
257
257
|
json={
|
|
258
258
|
"name": name,
|
|
@@ -448,7 +448,7 @@ class RawAgentaApi:
|
|
|
448
448
|
workspace_id: str,
|
|
449
449
|
*,
|
|
450
450
|
email: str,
|
|
451
|
-
|
|
451
|
+
organization_id: str,
|
|
452
452
|
role: str,
|
|
453
453
|
request_options: typing.Optional[RequestOptions] = None,
|
|
454
454
|
) -> HttpResponse[typing.Optional[typing.Any]]:
|
|
@@ -458,7 +458,7 @@ class RawAgentaApi:
|
|
|
458
458
|
Args:
|
|
459
459
|
workspace_id (str): The ID of the workspace.
|
|
460
460
|
email (str): The email of the user to remove the role from.
|
|
461
|
-
|
|
461
|
+
organization_id (str): The ID of the organization.
|
|
462
462
|
role (str): The role to remove from the user.
|
|
463
463
|
request (Request): The FastAPI request object.
|
|
464
464
|
|
|
@@ -475,7 +475,7 @@ class RawAgentaApi:
|
|
|
475
475
|
|
|
476
476
|
email : str
|
|
477
477
|
|
|
478
|
-
|
|
478
|
+
organization_id : str
|
|
479
479
|
|
|
480
480
|
role : str
|
|
481
481
|
|
|
@@ -492,7 +492,7 @@ class RawAgentaApi:
|
|
|
492
492
|
method="DELETE",
|
|
493
493
|
params={
|
|
494
494
|
"email": email,
|
|
495
|
-
"
|
|
495
|
+
"organization_id": organization_id,
|
|
496
496
|
"role": role,
|
|
497
497
|
},
|
|
498
498
|
request_options=request_options,
|
|
@@ -774,7 +774,7 @@ class AsyncRawAgentaApi:
|
|
|
774
774
|
|
|
775
775
|
async def update_organization(
|
|
776
776
|
self,
|
|
777
|
-
|
|
777
|
+
organization_id: str,
|
|
778
778
|
*,
|
|
779
779
|
name: typing.Optional[str] = OMIT,
|
|
780
780
|
description: typing.Optional[str] = OMIT,
|
|
@@ -784,7 +784,7 @@ class AsyncRawAgentaApi:
|
|
|
784
784
|
"""
|
|
785
785
|
Parameters
|
|
786
786
|
----------
|
|
787
|
-
|
|
787
|
+
organization_id : str
|
|
788
788
|
|
|
789
789
|
name : typing.Optional[str]
|
|
790
790
|
|
|
@@ -801,7 +801,7 @@ class AsyncRawAgentaApi:
|
|
|
801
801
|
Successful Response
|
|
802
802
|
"""
|
|
803
803
|
_response = await self._client_wrapper.httpx_client.request(
|
|
804
|
-
f"organizations/{jsonable_encoder(
|
|
804
|
+
f"organizations/{jsonable_encoder(organization_id)}",
|
|
805
805
|
method="PUT",
|
|
806
806
|
json={
|
|
807
807
|
"name": name,
|
|
@@ -852,7 +852,7 @@ class AsyncRawAgentaApi:
|
|
|
852
852
|
|
|
853
853
|
async def create_workspace(
|
|
854
854
|
self,
|
|
855
|
-
|
|
855
|
+
organization_id: str,
|
|
856
856
|
*,
|
|
857
857
|
name: str,
|
|
858
858
|
description: typing.Optional[str] = OMIT,
|
|
@@ -862,7 +862,7 @@ class AsyncRawAgentaApi:
|
|
|
862
862
|
"""
|
|
863
863
|
Parameters
|
|
864
864
|
----------
|
|
865
|
-
|
|
865
|
+
organization_id : str
|
|
866
866
|
|
|
867
867
|
name : str
|
|
868
868
|
|
|
@@ -879,7 +879,7 @@ class AsyncRawAgentaApi:
|
|
|
879
879
|
Successful Response
|
|
880
880
|
"""
|
|
881
881
|
_response = await self._client_wrapper.httpx_client.request(
|
|
882
|
-
f"organizations/{jsonable_encoder(
|
|
882
|
+
f"organizations/{jsonable_encoder(organization_id)}/workspaces",
|
|
883
883
|
method="POST",
|
|
884
884
|
json={
|
|
885
885
|
"name": name,
|
|
@@ -928,7 +928,7 @@ class AsyncRawAgentaApi:
|
|
|
928
928
|
|
|
929
929
|
async def update_workspace(
|
|
930
930
|
self,
|
|
931
|
-
|
|
931
|
+
organization_id: str,
|
|
932
932
|
workspace_id: str,
|
|
933
933
|
*,
|
|
934
934
|
name: typing.Optional[str] = OMIT,
|
|
@@ -939,7 +939,7 @@ class AsyncRawAgentaApi:
|
|
|
939
939
|
"""
|
|
940
940
|
Parameters
|
|
941
941
|
----------
|
|
942
|
-
|
|
942
|
+
organization_id : str
|
|
943
943
|
|
|
944
944
|
workspace_id : str
|
|
945
945
|
|
|
@@ -958,7 +958,7 @@ class AsyncRawAgentaApi:
|
|
|
958
958
|
Successful Response
|
|
959
959
|
"""
|
|
960
960
|
_response = await self._client_wrapper.httpx_client.request(
|
|
961
|
-
f"organizations/{jsonable_encoder(
|
|
961
|
+
f"organizations/{jsonable_encoder(organization_id)}/workspaces/{jsonable_encoder(workspace_id)}",
|
|
962
962
|
method="PUT",
|
|
963
963
|
json={
|
|
964
964
|
"name": name,
|
|
@@ -1154,7 +1154,7 @@ class AsyncRawAgentaApi:
|
|
|
1154
1154
|
workspace_id: str,
|
|
1155
1155
|
*,
|
|
1156
1156
|
email: str,
|
|
1157
|
-
|
|
1157
|
+
organization_id: str,
|
|
1158
1158
|
role: str,
|
|
1159
1159
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1160
1160
|
) -> AsyncHttpResponse[typing.Optional[typing.Any]]:
|
|
@@ -1164,7 +1164,7 @@ class AsyncRawAgentaApi:
|
|
|
1164
1164
|
Args:
|
|
1165
1165
|
workspace_id (str): The ID of the workspace.
|
|
1166
1166
|
email (str): The email of the user to remove the role from.
|
|
1167
|
-
|
|
1167
|
+
organization_id (str): The ID of the organization.
|
|
1168
1168
|
role (str): The role to remove from the user.
|
|
1169
1169
|
request (Request): The FastAPI request object.
|
|
1170
1170
|
|
|
@@ -1181,7 +1181,7 @@ class AsyncRawAgentaApi:
|
|
|
1181
1181
|
|
|
1182
1182
|
email : str
|
|
1183
1183
|
|
|
1184
|
-
|
|
1184
|
+
organization_id : str
|
|
1185
1185
|
|
|
1186
1186
|
role : str
|
|
1187
1187
|
|
|
@@ -1198,7 +1198,7 @@ class AsyncRawAgentaApi:
|
|
|
1198
1198
|
method="DELETE",
|
|
1199
1199
|
params={
|
|
1200
1200
|
"email": email,
|
|
1201
|
-
"
|
|
1201
|
+
"organization_id": organization_id,
|
|
1202
1202
|
"role": role,
|
|
1203
1203
|
},
|
|
1204
1204
|
request_options=request_options,
|
|
@@ -6,8 +6,8 @@ from .. import core
|
|
|
6
6
|
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
7
7
|
from ..core.request_options import RequestOptions
|
|
8
8
|
from ..types.meta_request import MetaRequest
|
|
9
|
-
from ..types.
|
|
10
|
-
from ..types.
|
|
9
|
+
from ..types.testset_output_response import TestsetOutputResponse
|
|
10
|
+
from ..types.testset_simple_response import TestsetSimpleResponse
|
|
11
11
|
from ..types.testcase_response import TestcaseResponse
|
|
12
12
|
from ..types.testset import Testset
|
|
13
13
|
from ..types.testset_response import TestsetResponse
|
|
@@ -49,7 +49,7 @@ class TestsetsClient:
|
|
|
49
49
|
upload_type: typing.Optional[str] = OMIT,
|
|
50
50
|
testset_name: typing.Optional[str] = OMIT,
|
|
51
51
|
request_options: typing.Optional[RequestOptions] = None,
|
|
52
|
-
) ->
|
|
52
|
+
) -> TestsetSimpleResponse:
|
|
53
53
|
"""
|
|
54
54
|
Uploads a CSV or JSON file and saves its data to Postgres.
|
|
55
55
|
|
|
@@ -75,7 +75,7 @@ class TestsetsClient:
|
|
|
75
75
|
|
|
76
76
|
Returns
|
|
77
77
|
-------
|
|
78
|
-
|
|
78
|
+
TestsetSimpleResponse
|
|
79
79
|
Successful Response
|
|
80
80
|
|
|
81
81
|
Examples
|
|
@@ -102,7 +102,7 @@ class TestsetsClient:
|
|
|
102
102
|
endpoint: typing.Optional[str] = OMIT,
|
|
103
103
|
testset_name: typing.Optional[str] = OMIT,
|
|
104
104
|
request_options: typing.Optional[RequestOptions] = None,
|
|
105
|
-
) ->
|
|
105
|
+
) -> TestsetSimpleResponse:
|
|
106
106
|
"""
|
|
107
107
|
Import JSON testset data from an endpoint and save it to Postgres.
|
|
108
108
|
|
|
@@ -126,7 +126,7 @@ class TestsetsClient:
|
|
|
126
126
|
|
|
127
127
|
Returns
|
|
128
128
|
-------
|
|
129
|
-
|
|
129
|
+
TestsetSimpleResponse
|
|
130
130
|
Successful Response
|
|
131
131
|
|
|
132
132
|
Examples
|
|
@@ -148,7 +148,7 @@ class TestsetsClient:
|
|
|
148
148
|
|
|
149
149
|
def get_testsets(
|
|
150
150
|
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
151
|
-
) -> typing.List[
|
|
151
|
+
) -> typing.List[TestsetOutputResponse]:
|
|
152
152
|
"""
|
|
153
153
|
Get all testsets.
|
|
154
154
|
|
|
@@ -165,7 +165,7 @@ class TestsetsClient:
|
|
|
165
165
|
|
|
166
166
|
Returns
|
|
167
167
|
-------
|
|
168
|
-
typing.List[
|
|
168
|
+
typing.List[TestsetOutputResponse]
|
|
169
169
|
Successful Response
|
|
170
170
|
|
|
171
171
|
Examples
|
|
@@ -313,11 +313,11 @@ class TestsetsClient:
|
|
|
313
313
|
Update a testset with given id, update the testset in Postgres.
|
|
314
314
|
|
|
315
315
|
Args:
|
|
316
|
-
testset_id (str): id of the
|
|
316
|
+
testset_id (str): id of the testset to be updated.
|
|
317
317
|
csvdata (NewTestset): New data to replace the old testset.
|
|
318
318
|
|
|
319
319
|
Returns:
|
|
320
|
-
str: The id of the
|
|
320
|
+
str: The id of the testset updated.
|
|
321
321
|
|
|
322
322
|
Parameters
|
|
323
323
|
----------
|
|
@@ -749,7 +749,7 @@ class AsyncTestsetsClient:
|
|
|
749
749
|
upload_type: typing.Optional[str] = OMIT,
|
|
750
750
|
testset_name: typing.Optional[str] = OMIT,
|
|
751
751
|
request_options: typing.Optional[RequestOptions] = None,
|
|
752
|
-
) ->
|
|
752
|
+
) -> TestsetSimpleResponse:
|
|
753
753
|
"""
|
|
754
754
|
Uploads a CSV or JSON file and saves its data to Postgres.
|
|
755
755
|
|
|
@@ -775,7 +775,7 @@ class AsyncTestsetsClient:
|
|
|
775
775
|
|
|
776
776
|
Returns
|
|
777
777
|
-------
|
|
778
|
-
|
|
778
|
+
TestsetSimpleResponse
|
|
779
779
|
Successful Response
|
|
780
780
|
|
|
781
781
|
Examples
|
|
@@ -810,7 +810,7 @@ class AsyncTestsetsClient:
|
|
|
810
810
|
endpoint: typing.Optional[str] = OMIT,
|
|
811
811
|
testset_name: typing.Optional[str] = OMIT,
|
|
812
812
|
request_options: typing.Optional[RequestOptions] = None,
|
|
813
|
-
) ->
|
|
813
|
+
) -> TestsetSimpleResponse:
|
|
814
814
|
"""
|
|
815
815
|
Import JSON testset data from an endpoint and save it to Postgres.
|
|
816
816
|
|
|
@@ -834,7 +834,7 @@ class AsyncTestsetsClient:
|
|
|
834
834
|
|
|
835
835
|
Returns
|
|
836
836
|
-------
|
|
837
|
-
|
|
837
|
+
TestsetSimpleResponse
|
|
838
838
|
Successful Response
|
|
839
839
|
|
|
840
840
|
Examples
|
|
@@ -864,7 +864,7 @@ class AsyncTestsetsClient:
|
|
|
864
864
|
|
|
865
865
|
async def get_testsets(
|
|
866
866
|
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
867
|
-
) -> typing.List[
|
|
867
|
+
) -> typing.List[TestsetOutputResponse]:
|
|
868
868
|
"""
|
|
869
869
|
Get all testsets.
|
|
870
870
|
|
|
@@ -881,7 +881,7 @@ class AsyncTestsetsClient:
|
|
|
881
881
|
|
|
882
882
|
Returns
|
|
883
883
|
-------
|
|
884
|
-
typing.List[
|
|
884
|
+
typing.List[TestsetOutputResponse]
|
|
885
885
|
Successful Response
|
|
886
886
|
|
|
887
887
|
Examples
|
|
@@ -1061,11 +1061,11 @@ class AsyncTestsetsClient:
|
|
|
1061
1061
|
Update a testset with given id, update the testset in Postgres.
|
|
1062
1062
|
|
|
1063
1063
|
Args:
|
|
1064
|
-
testset_id (str): id of the
|
|
1064
|
+
testset_id (str): id of the testset to be updated.
|
|
1065
1065
|
csvdata (NewTestset): New data to replace the old testset.
|
|
1066
1066
|
|
|
1067
1067
|
Returns:
|
|
1068
|
-
str: The id of the
|
|
1068
|
+
str: The id of the testset updated.
|
|
1069
1069
|
|
|
1070
1070
|
Parameters
|
|
1071
1071
|
----------
|
|
@@ -14,8 +14,8 @@ from ..core.serialization import convert_and_respect_annotation_metadata
|
|
|
14
14
|
from ..errors.unprocessable_entity_error import UnprocessableEntityError
|
|
15
15
|
from ..types.http_validation_error import HttpValidationError
|
|
16
16
|
from ..types.meta_request import MetaRequest
|
|
17
|
-
from ..types.
|
|
18
|
-
from ..types.
|
|
17
|
+
from ..types.testset_output_response import TestsetOutputResponse
|
|
18
|
+
from ..types.testset_simple_response import TestsetSimpleResponse
|
|
19
19
|
from ..types.testcase_response import TestcaseResponse
|
|
20
20
|
from ..types.testset import Testset
|
|
21
21
|
from ..types.testset_response import TestsetResponse
|
|
@@ -45,7 +45,7 @@ class RawTestsetsClient:
|
|
|
45
45
|
upload_type: typing.Optional[str] = OMIT,
|
|
46
46
|
testset_name: typing.Optional[str] = OMIT,
|
|
47
47
|
request_options: typing.Optional[RequestOptions] = None,
|
|
48
|
-
) -> HttpResponse[
|
|
48
|
+
) -> HttpResponse[TestsetSimpleResponse]:
|
|
49
49
|
"""
|
|
50
50
|
Uploads a CSV or JSON file and saves its data to Postgres.
|
|
51
51
|
|
|
@@ -71,7 +71,7 @@ class RawTestsetsClient:
|
|
|
71
71
|
|
|
72
72
|
Returns
|
|
73
73
|
-------
|
|
74
|
-
HttpResponse[
|
|
74
|
+
HttpResponse[TestsetSimpleResponse]
|
|
75
75
|
Successful Response
|
|
76
76
|
"""
|
|
77
77
|
_response = self._client_wrapper.httpx_client.request(
|
|
@@ -91,9 +91,9 @@ class RawTestsetsClient:
|
|
|
91
91
|
try:
|
|
92
92
|
if 200 <= _response.status_code < 300:
|
|
93
93
|
_data = typing.cast(
|
|
94
|
-
|
|
94
|
+
TestsetSimpleResponse,
|
|
95
95
|
parse_obj_as(
|
|
96
|
-
type_=
|
|
96
|
+
type_=TestsetSimpleResponse, # type: ignore
|
|
97
97
|
object_=_response.json(),
|
|
98
98
|
),
|
|
99
99
|
)
|
|
@@ -129,7 +129,7 @@ class RawTestsetsClient:
|
|
|
129
129
|
endpoint: typing.Optional[str] = OMIT,
|
|
130
130
|
testset_name: typing.Optional[str] = OMIT,
|
|
131
131
|
request_options: typing.Optional[RequestOptions] = None,
|
|
132
|
-
) -> HttpResponse[
|
|
132
|
+
) -> HttpResponse[TestsetSimpleResponse]:
|
|
133
133
|
"""
|
|
134
134
|
Import JSON testset data from an endpoint and save it to Postgres.
|
|
135
135
|
|
|
@@ -153,7 +153,7 @@ class RawTestsetsClient:
|
|
|
153
153
|
|
|
154
154
|
Returns
|
|
155
155
|
-------
|
|
156
|
-
HttpResponse[
|
|
156
|
+
HttpResponse[TestsetSimpleResponse]
|
|
157
157
|
Successful Response
|
|
158
158
|
"""
|
|
159
159
|
_response = self._client_wrapper.httpx_client.request(
|
|
@@ -175,9 +175,9 @@ class RawTestsetsClient:
|
|
|
175
175
|
try:
|
|
176
176
|
if 200 <= _response.status_code < 300:
|
|
177
177
|
_data = typing.cast(
|
|
178
|
-
|
|
178
|
+
TestsetSimpleResponse,
|
|
179
179
|
parse_obj_as(
|
|
180
|
-
type_=
|
|
180
|
+
type_=TestsetSimpleResponse, # type: ignore
|
|
181
181
|
object_=_response.json(),
|
|
182
182
|
),
|
|
183
183
|
)
|
|
@@ -208,7 +208,7 @@ class RawTestsetsClient:
|
|
|
208
208
|
|
|
209
209
|
def get_testsets(
|
|
210
210
|
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
211
|
-
) -> HttpResponse[typing.List[
|
|
211
|
+
) -> HttpResponse[typing.List[TestsetOutputResponse]]:
|
|
212
212
|
"""
|
|
213
213
|
Get all testsets.
|
|
214
214
|
|
|
@@ -225,7 +225,7 @@ class RawTestsetsClient:
|
|
|
225
225
|
|
|
226
226
|
Returns
|
|
227
227
|
-------
|
|
228
|
-
HttpResponse[typing.List[
|
|
228
|
+
HttpResponse[typing.List[TestsetOutputResponse]]
|
|
229
229
|
Successful Response
|
|
230
230
|
"""
|
|
231
231
|
_response = self._client_wrapper.httpx_client.request(
|
|
@@ -236,9 +236,9 @@ class RawTestsetsClient:
|
|
|
236
236
|
try:
|
|
237
237
|
if 200 <= _response.status_code < 300:
|
|
238
238
|
_data = typing.cast(
|
|
239
|
-
typing.List[
|
|
239
|
+
typing.List[TestsetOutputResponse],
|
|
240
240
|
parse_obj_as(
|
|
241
|
-
type_=typing.List[
|
|
241
|
+
type_=typing.List[TestsetOutputResponse], # type: ignore
|
|
242
242
|
object_=_response.json(),
|
|
243
243
|
),
|
|
244
244
|
)
|
|
@@ -476,11 +476,11 @@ class RawTestsetsClient:
|
|
|
476
476
|
Update a testset with given id, update the testset in Postgres.
|
|
477
477
|
|
|
478
478
|
Args:
|
|
479
|
-
testset_id (str): id of the
|
|
479
|
+
testset_id (str): id of the testset to be updated.
|
|
480
480
|
csvdata (NewTestset): New data to replace the old testset.
|
|
481
481
|
|
|
482
482
|
Returns:
|
|
483
|
-
str: The id of the
|
|
483
|
+
str: The id of the testset updated.
|
|
484
484
|
|
|
485
485
|
Parameters
|
|
486
486
|
----------
|
|
@@ -1202,7 +1202,7 @@ class AsyncRawTestsetsClient:
|
|
|
1202
1202
|
upload_type: typing.Optional[str] = OMIT,
|
|
1203
1203
|
testset_name: typing.Optional[str] = OMIT,
|
|
1204
1204
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1205
|
-
) -> AsyncHttpResponse[
|
|
1205
|
+
) -> AsyncHttpResponse[TestsetSimpleResponse]:
|
|
1206
1206
|
"""
|
|
1207
1207
|
Uploads a CSV or JSON file and saves its data to Postgres.
|
|
1208
1208
|
|
|
@@ -1228,7 +1228,7 @@ class AsyncRawTestsetsClient:
|
|
|
1228
1228
|
|
|
1229
1229
|
Returns
|
|
1230
1230
|
-------
|
|
1231
|
-
AsyncHttpResponse[
|
|
1231
|
+
AsyncHttpResponse[TestsetSimpleResponse]
|
|
1232
1232
|
Successful Response
|
|
1233
1233
|
"""
|
|
1234
1234
|
_response = await self._client_wrapper.httpx_client.request(
|
|
@@ -1248,9 +1248,9 @@ class AsyncRawTestsetsClient:
|
|
|
1248
1248
|
try:
|
|
1249
1249
|
if 200 <= _response.status_code < 300:
|
|
1250
1250
|
_data = typing.cast(
|
|
1251
|
-
|
|
1251
|
+
TestsetSimpleResponse,
|
|
1252
1252
|
parse_obj_as(
|
|
1253
|
-
type_=
|
|
1253
|
+
type_=TestsetSimpleResponse, # type: ignore
|
|
1254
1254
|
object_=_response.json(),
|
|
1255
1255
|
),
|
|
1256
1256
|
)
|
|
@@ -1286,7 +1286,7 @@ class AsyncRawTestsetsClient:
|
|
|
1286
1286
|
endpoint: typing.Optional[str] = OMIT,
|
|
1287
1287
|
testset_name: typing.Optional[str] = OMIT,
|
|
1288
1288
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1289
|
-
) -> AsyncHttpResponse[
|
|
1289
|
+
) -> AsyncHttpResponse[TestsetSimpleResponse]:
|
|
1290
1290
|
"""
|
|
1291
1291
|
Import JSON testset data from an endpoint and save it to Postgres.
|
|
1292
1292
|
|
|
@@ -1310,7 +1310,7 @@ class AsyncRawTestsetsClient:
|
|
|
1310
1310
|
|
|
1311
1311
|
Returns
|
|
1312
1312
|
-------
|
|
1313
|
-
AsyncHttpResponse[
|
|
1313
|
+
AsyncHttpResponse[TestsetSimpleResponse]
|
|
1314
1314
|
Successful Response
|
|
1315
1315
|
"""
|
|
1316
1316
|
_response = await self._client_wrapper.httpx_client.request(
|
|
@@ -1332,9 +1332,9 @@ class AsyncRawTestsetsClient:
|
|
|
1332
1332
|
try:
|
|
1333
1333
|
if 200 <= _response.status_code < 300:
|
|
1334
1334
|
_data = typing.cast(
|
|
1335
|
-
|
|
1335
|
+
TestsetSimpleResponse,
|
|
1336
1336
|
parse_obj_as(
|
|
1337
|
-
type_=
|
|
1337
|
+
type_=TestsetSimpleResponse, # type: ignore
|
|
1338
1338
|
object_=_response.json(),
|
|
1339
1339
|
),
|
|
1340
1340
|
)
|
|
@@ -1365,7 +1365,7 @@ class AsyncRawTestsetsClient:
|
|
|
1365
1365
|
|
|
1366
1366
|
async def get_testsets(
|
|
1367
1367
|
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
1368
|
-
) -> AsyncHttpResponse[typing.List[
|
|
1368
|
+
) -> AsyncHttpResponse[typing.List[TestsetOutputResponse]]:
|
|
1369
1369
|
"""
|
|
1370
1370
|
Get all testsets.
|
|
1371
1371
|
|
|
@@ -1382,7 +1382,7 @@ class AsyncRawTestsetsClient:
|
|
|
1382
1382
|
|
|
1383
1383
|
Returns
|
|
1384
1384
|
-------
|
|
1385
|
-
AsyncHttpResponse[typing.List[
|
|
1385
|
+
AsyncHttpResponse[typing.List[TestsetOutputResponse]]
|
|
1386
1386
|
Successful Response
|
|
1387
1387
|
"""
|
|
1388
1388
|
_response = await self._client_wrapper.httpx_client.request(
|
|
@@ -1393,9 +1393,9 @@ class AsyncRawTestsetsClient:
|
|
|
1393
1393
|
try:
|
|
1394
1394
|
if 200 <= _response.status_code < 300:
|
|
1395
1395
|
_data = typing.cast(
|
|
1396
|
-
typing.List[
|
|
1396
|
+
typing.List[TestsetOutputResponse],
|
|
1397
1397
|
parse_obj_as(
|
|
1398
|
-
type_=typing.List[
|
|
1398
|
+
type_=typing.List[TestsetOutputResponse], # type: ignore
|
|
1399
1399
|
object_=_response.json(),
|
|
1400
1400
|
),
|
|
1401
1401
|
)
|
|
@@ -1633,11 +1633,11 @@ class AsyncRawTestsetsClient:
|
|
|
1633
1633
|
Update a testset with given id, update the testset in Postgres.
|
|
1634
1634
|
|
|
1635
1635
|
Args:
|
|
1636
|
-
testset_id (str): id of the
|
|
1636
|
+
testset_id (str): id of the testset to be updated.
|
|
1637
1637
|
csvdata (NewTestset): New data to replace the old testset.
|
|
1638
1638
|
|
|
1639
1639
|
Returns:
|
|
1640
|
-
str: The id of the
|
|
1640
|
+
str: The id of the testset updated.
|
|
1641
1641
|
|
|
1642
1642
|
Parameters
|
|
1643
1643
|
----------
|
|
@@ -161,8 +161,8 @@ from .standard_provider_kind import StandardProviderKind
|
|
|
161
161
|
from .standard_provider_settings_dto import StandardProviderSettingsDto
|
|
162
162
|
from .status_code import StatusCode
|
|
163
163
|
from .status_dto import StatusDto
|
|
164
|
-
from .
|
|
165
|
-
from .
|
|
164
|
+
from .testset_output_response import TestsetOutputResponse
|
|
165
|
+
from .testset_simple_response import TestsetSimpleResponse
|
|
166
166
|
from .testcase_response import TestcaseResponse
|
|
167
167
|
from .testset import Testset
|
|
168
168
|
from .testset_request import TestsetRequest
|
|
@@ -351,8 +351,8 @@ __all__ = [
|
|
|
351
351
|
"StandardProviderSettingsDto",
|
|
352
352
|
"StatusCode",
|
|
353
353
|
"StatusDto",
|
|
354
|
-
"
|
|
355
|
-
"
|
|
354
|
+
"TestsetOutputResponse",
|
|
355
|
+
"TestsetSimpleResponse",
|
|
356
356
|
"TestcaseResponse",
|
|
357
357
|
"Testset",
|
|
358
358
|
"TestsetRequest",
|
|
@@ -15,7 +15,9 @@ class AccountRequest(UniversalBaseModel):
|
|
|
15
15
|
subscription: typing.Optional[LegacySubscriptionRequest] = None
|
|
16
16
|
|
|
17
17
|
if IS_PYDANTIC_V2:
|
|
18
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
19
|
+
extra="allow", frozen=True
|
|
20
|
+
) # type: ignore # Pydantic v2
|
|
19
21
|
else:
|
|
20
22
|
|
|
21
23
|
class Config:
|
|
@@ -13,7 +13,9 @@ class AccountResponse(UniversalBaseModel):
|
|
|
13
13
|
scopes: typing.Optional[typing.List[LegacyScopesResponse]] = None
|
|
14
14
|
|
|
15
15
|
if IS_PYDANTIC_V2:
|
|
16
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
17
|
+
extra="allow", frozen=True
|
|
18
|
+
) # type: ignore # Pydantic v2
|
|
17
19
|
else:
|
|
18
20
|
|
|
19
21
|
class Config:
|
|
@@ -39,7 +39,9 @@ class AgentaNodeDto(UniversalBaseModel):
|
|
|
39
39
|
] = None
|
|
40
40
|
|
|
41
41
|
if IS_PYDANTIC_V2:
|
|
42
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
42
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
43
|
+
extra="allow", frozen=True
|
|
44
|
+
) # type: ignore # Pydantic v2
|
|
43
45
|
else:
|
|
44
46
|
|
|
45
47
|
class Config:
|
|
@@ -17,7 +17,9 @@ class AgentaNodesResponse(UniversalBaseModel):
|
|
|
17
17
|
count: typing.Optional[int] = None
|
|
18
18
|
|
|
19
19
|
if IS_PYDANTIC_V2:
|
|
20
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
20
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
21
|
+
extra="allow", frozen=True
|
|
22
|
+
) # type: ignore # Pydantic v2
|
|
21
23
|
else:
|
|
22
24
|
|
|
23
25
|
class Config:
|
|
@@ -19,7 +19,9 @@ class AgentaRootDto(UniversalBaseModel):
|
|
|
19
19
|
trees: typing.List[AgentaTreeDto]
|
|
20
20
|
|
|
21
21
|
if IS_PYDANTIC_V2:
|
|
22
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
22
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
23
|
+
extra="allow", frozen=True
|
|
24
|
+
) # type: ignore # Pydantic v2
|
|
23
25
|
else:
|
|
24
26
|
|
|
25
27
|
class Config:
|
|
@@ -19,7 +19,9 @@ class AgentaRootsResponse(UniversalBaseModel):
|
|
|
19
19
|
count: typing.Optional[int] = None
|
|
20
20
|
|
|
21
21
|
if IS_PYDANTIC_V2:
|
|
22
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
22
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
23
|
+
extra="allow", frozen=True
|
|
24
|
+
) # type: ignore # Pydantic v2
|
|
23
25
|
else:
|
|
24
26
|
|
|
25
27
|
class Config:
|