agenta 0.12.2__py3-none-any.whl → 0.32.0a1__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/__init__.py +64 -7
- agenta/cli/helper.py +7 -3
- agenta/cli/main.py +15 -50
- agenta/cli/variant_commands.py +50 -29
- agenta/client/Readme.md +72 -64
- agenta/client/api.py +2 -2
- agenta/client/backend/__init__.py +193 -22
- agenta/client/backend/access_control/__init__.py +1 -0
- agenta/client/backend/access_control/client.py +167 -0
- agenta/client/backend/apps/__init__.py +1 -0
- agenta/client/backend/apps/client.py +1691 -0
- agenta/client/backend/bases/__init__.py +1 -0
- agenta/client/backend/bases/client.py +190 -0
- agenta/client/backend/client.py +2508 -5712
- agenta/client/backend/configs/__init__.py +1 -0
- agenta/client/backend/configs/client.py +604 -0
- agenta/client/backend/containers/__init__.py +5 -0
- agenta/client/backend/containers/client.py +648 -0
- agenta/client/backend/containers/types/__init__.py +5 -0
- agenta/client/backend/{types → containers/types}/container_templates_response.py +1 -2
- agenta/client/backend/core/__init__.py +30 -0
- agenta/client/backend/core/client_wrapper.py +42 -9
- agenta/client/backend/core/file.py +70 -0
- agenta/client/backend/core/http_client.py +575 -0
- agenta/client/backend/core/jsonable_encoder.py +33 -39
- agenta/client/backend/core/pydantic_utilities.py +325 -0
- agenta/client/backend/core/query_encoder.py +60 -0
- agenta/client/backend/core/remove_none_from_dict.py +2 -2
- agenta/client/backend/core/request_options.py +35 -0
- agenta/client/backend/core/serialization.py +276 -0
- agenta/client/backend/environments/__init__.py +1 -0
- agenta/client/backend/environments/client.py +196 -0
- agenta/client/backend/evaluations/__init__.py +1 -0
- agenta/client/backend/evaluations/client.py +1469 -0
- agenta/client/backend/evaluators/__init__.py +1 -0
- agenta/client/backend/evaluators/client.py +1283 -0
- agenta/client/backend/observability/__init__.py +1 -0
- agenta/client/backend/observability/client.py +1286 -0
- agenta/client/backend/observability_v_1/__init__.py +5 -0
- agenta/client/backend/observability_v_1/client.py +763 -0
- agenta/client/backend/observability_v_1/types/__init__.py +7 -0
- agenta/client/backend/observability_v_1/types/format.py +5 -0
- agenta/client/backend/observability_v_1/types/query_analytics_response.py +7 -0
- agenta/client/backend/observability_v_1/types/query_traces_response.py +11 -0
- agenta/client/backend/scopes/__init__.py +1 -0
- agenta/client/backend/scopes/client.py +114 -0
- agenta/client/backend/testsets/__init__.py +1 -0
- agenta/client/backend/testsets/client.py +1284 -0
- agenta/client/backend/types/__init__.py +154 -26
- agenta/client/backend/types/agenta_node_dto.py +48 -0
- agenta/client/backend/types/agenta_node_dto_nodes_value.py +6 -0
- agenta/client/backend/types/agenta_nodes_response.py +30 -0
- agenta/client/backend/types/agenta_root_dto.py +30 -0
- agenta/client/backend/types/agenta_roots_response.py +30 -0
- agenta/client/backend/types/agenta_tree_dto.py +30 -0
- agenta/client/backend/types/agenta_trees_response.py +30 -0
- agenta/client/backend/types/aggregated_result.py +16 -31
- agenta/client/backend/types/aggregated_result_evaluator_config.py +8 -0
- agenta/client/backend/types/analytics_response.py +24 -0
- agenta/client/backend/types/app.py +17 -30
- agenta/client/backend/types/app_variant_response.py +36 -0
- agenta/client/backend/types/app_variant_revision.py +17 -32
- agenta/client/backend/types/base_output.py +13 -28
- agenta/client/backend/types/body_import_testset.py +15 -31
- agenta/client/backend/types/bucket_dto.py +26 -0
- agenta/client/backend/types/collect_status_response.py +22 -0
- agenta/client/backend/types/config_db.py +16 -31
- agenta/client/backend/types/config_dto.py +32 -0
- agenta/client/backend/types/config_response_model.py +32 -0
- agenta/client/backend/types/correct_answer.py +22 -0
- agenta/client/backend/types/create_app_output.py +13 -28
- agenta/client/backend/types/create_span.py +45 -0
- agenta/client/backend/types/create_trace_response.py +22 -0
- agenta/client/backend/types/docker_env_vars.py +13 -28
- agenta/client/backend/types/environment_output.py +22 -34
- agenta/client/backend/types/environment_output_extended.py +31 -0
- agenta/client/backend/types/environment_revision.py +26 -0
- agenta/client/backend/types/error.py +22 -0
- agenta/client/backend/types/evaluation.py +22 -33
- agenta/client/backend/types/evaluation_scenario.py +18 -33
- agenta/client/backend/types/evaluation_scenario_input.py +16 -31
- agenta/client/backend/types/evaluation_scenario_output.py +17 -30
- agenta/client/backend/types/evaluation_scenario_result.py +14 -29
- agenta/client/backend/types/evaluation_scenario_score_update.py +21 -0
- agenta/client/backend/types/evaluation_status_enum.py +11 -29
- agenta/client/backend/types/evaluation_type.py +3 -21
- agenta/client/backend/types/evaluator.py +20 -31
- agenta/client/backend/types/evaluator_config.py +21 -33
- agenta/client/backend/types/evaluator_mapping_output_interface.py +21 -0
- agenta/client/backend/types/evaluator_output_interface.py +21 -0
- agenta/client/backend/types/exception_dto.py +26 -0
- agenta/client/backend/types/get_config_response.py +23 -0
- agenta/client/backend/types/header_dto.py +22 -0
- agenta/client/backend/types/http_validation_error.py +14 -29
- agenta/client/backend/types/human_evaluation.py +18 -34
- agenta/client/backend/types/human_evaluation_scenario.py +22 -38
- agenta/client/backend/types/human_evaluation_scenario_input.py +13 -28
- agenta/client/backend/types/human_evaluation_scenario_output.py +13 -28
- agenta/client/backend/types/human_evaluation_scenario_update.py +30 -0
- agenta/client/backend/types/human_evaluation_update.py +22 -0
- agenta/client/backend/types/image.py +18 -32
- agenta/client/backend/types/invite_request.py +16 -30
- agenta/client/backend/types/legacy_analytics_response.py +29 -0
- agenta/client/backend/types/legacy_data_point.py +27 -0
- agenta/client/backend/types/lifecycle_dto.py +24 -0
- agenta/client/backend/types/link_dto.py +24 -0
- agenta/client/backend/types/list_api_keys_response.py +24 -0
- agenta/client/backend/types/llm_run_rate_limit.py +13 -28
- agenta/client/backend/types/llm_tokens.py +23 -0
- agenta/client/backend/types/metrics_dto.py +24 -0
- agenta/client/backend/types/new_human_evaluation.py +27 -0
- agenta/client/backend/types/new_testset.py +16 -31
- agenta/client/backend/types/node_dto.py +24 -0
- agenta/client/backend/types/node_type.py +19 -0
- agenta/client/backend/types/o_tel_context_dto.py +22 -0
- agenta/client/backend/types/o_tel_event_dto.py +23 -0
- agenta/client/backend/types/o_tel_extra_dto.py +26 -0
- agenta/client/backend/types/o_tel_link_dto.py +23 -0
- agenta/client/backend/types/o_tel_span_dto.py +37 -0
- agenta/client/backend/types/o_tel_span_kind.py +15 -0
- agenta/client/backend/types/o_tel_spans_response.py +24 -0
- agenta/client/backend/types/o_tel_status_code.py +8 -0
- agenta/client/backend/types/organization.py +22 -35
- agenta/client/backend/types/organization_output.py +13 -28
- agenta/client/backend/types/outputs.py +5 -0
- agenta/client/backend/types/parent_dto.py +21 -0
- agenta/client/backend/types/permission.py +41 -0
- agenta/client/backend/types/projects_response.py +28 -0
- agenta/client/backend/types/provider_key_dto.py +23 -0
- agenta/client/backend/types/provider_kind.py +21 -0
- agenta/client/backend/types/reference_dto.py +23 -0
- agenta/client/backend/types/reference_request_model.py +23 -0
- agenta/client/backend/types/result.py +18 -31
- agenta/client/backend/types/root_dto.py +21 -0
- agenta/client/backend/types/{human_evaluation_scenario_score.py → score.py} +1 -1
- agenta/client/backend/types/secret_dto.py +24 -0
- agenta/client/backend/types/{human_evaluation_scenario_update_score.py → secret_kind.py} +1 -1
- agenta/client/backend/types/secret_response_dto.py +27 -0
- agenta/client/backend/types/simple_evaluation_output.py +13 -28
- agenta/client/backend/types/span.py +39 -49
- agenta/client/backend/types/span_detail.py +44 -0
- agenta/client/backend/types/span_dto.py +54 -0
- agenta/client/backend/types/span_dto_nodes_value.py +9 -0
- agenta/client/backend/types/span_status_code.py +5 -0
- agenta/client/backend/types/span_variant.py +23 -0
- agenta/client/backend/types/status_code.py +5 -0
- agenta/client/backend/types/status_dto.py +23 -0
- agenta/client/backend/types/template.py +14 -29
- agenta/client/backend/types/template_image_info.py +21 -35
- agenta/client/backend/types/test_set_output_response.py +20 -33
- agenta/client/backend/types/test_set_simple_response.py +13 -28
- agenta/client/backend/types/time_dto.py +23 -0
- agenta/client/backend/types/trace_detail.py +44 -0
- agenta/client/backend/types/tree_dto.py +23 -0
- agenta/client/backend/types/tree_type.py +5 -0
- agenta/client/backend/types/update_app_output.py +22 -0
- agenta/client/backend/types/uri.py +13 -28
- agenta/client/backend/types/validation_error.py +13 -28
- agenta/client/backend/types/variant_action.py +14 -29
- agenta/client/backend/types/variant_action_enum.py +1 -19
- agenta/client/backend/types/with_pagination.py +26 -0
- agenta/client/backend/types/workspace_member_response.py +23 -0
- agenta/client/backend/types/workspace_permission.py +25 -0
- agenta/client/backend/types/workspace_response.py +29 -0
- agenta/client/backend/types/workspace_role.py +15 -0
- agenta/client/backend/types/workspace_role_response.py +23 -0
- agenta/client/backend/variants/__init__.py +5 -0
- agenta/client/backend/variants/client.py +2814 -0
- agenta/client/backend/variants/types/__init__.py +7 -0
- agenta/client/backend/variants/types/add_variant_from_base_and_config_response.py +8 -0
- agenta/client/backend/vault/__init__.py +1 -0
- agenta/client/backend/vault/client.py +685 -0
- agenta/client/client.py +1 -1
- agenta/config.py +0 -2
- agenta/config.toml +0 -1
- agenta/docker/docker-assets/Dockerfile.cloud.template +2 -1
- agenta/docker/docker-assets/Dockerfile.template +2 -1
- agenta/docker/docker_utils.py +11 -12
- agenta/sdk/__init__.py +58 -7
- agenta/sdk/agenta_init.py +182 -164
- agenta/sdk/assets.py +95 -0
- agenta/sdk/client.py +56 -0
- agenta/sdk/context/__init__.py +0 -0
- agenta/sdk/context/exporting.py +25 -0
- agenta/sdk/context/routing.py +27 -0
- agenta/sdk/context/tracing.py +28 -0
- agenta/sdk/decorators/__init__.py +0 -0
- agenta/sdk/decorators/routing.py +576 -0
- agenta/sdk/decorators/tracing.py +296 -0
- agenta/sdk/litellm/__init__.py +1 -0
- agenta/sdk/litellm/litellm.py +314 -0
- agenta/sdk/litellm/mockllm.py +27 -0
- agenta/sdk/litellm/mocks/__init__.py +26 -0
- agenta/sdk/managers/__init__.py +6 -0
- agenta/sdk/managers/config.py +208 -0
- agenta/sdk/managers/deployment.py +45 -0
- agenta/sdk/managers/secrets.py +38 -0
- agenta/sdk/managers/shared.py +639 -0
- agenta/sdk/managers/variant.py +182 -0
- agenta/sdk/managers/vault.py +16 -0
- agenta/sdk/middleware/__init__.py +0 -0
- agenta/sdk/middleware/auth.py +180 -0
- agenta/sdk/middleware/cache.py +47 -0
- agenta/sdk/middleware/config.py +255 -0
- agenta/sdk/middleware/cors.py +29 -0
- agenta/sdk/middleware/inline.py +38 -0
- agenta/sdk/middleware/mock.py +33 -0
- agenta/sdk/middleware/otel.py +40 -0
- agenta/sdk/middleware/vault.py +145 -0
- agenta/sdk/router.py +0 -7
- agenta/sdk/tracing/__init__.py +1 -0
- agenta/sdk/tracing/attributes.py +141 -0
- agenta/sdk/tracing/conventions.py +49 -0
- agenta/sdk/tracing/exporters.py +103 -0
- agenta/sdk/tracing/inline.py +1146 -0
- agenta/sdk/tracing/processors.py +121 -0
- agenta/sdk/tracing/spans.py +136 -0
- agenta/sdk/tracing/tracing.py +237 -0
- agenta/sdk/types.py +478 -74
- agenta/sdk/utils/__init__.py +0 -0
- agenta/sdk/utils/constants.py +1 -0
- agenta/sdk/utils/{helper/openai_cost.py → costs.py} +3 -0
- agenta/sdk/utils/exceptions.py +59 -0
- agenta/sdk/utils/globals.py +6 -10
- agenta/sdk/utils/helpers.py +8 -0
- agenta/sdk/utils/logging.py +21 -0
- agenta/sdk/utils/singleton.py +13 -0
- agenta/sdk/utils/timing.py +58 -0
- {agenta-0.12.2.dist-info → agenta-0.32.0a1.dist-info}/METADATA +98 -151
- agenta-0.32.0a1.dist-info/RECORD +263 -0
- {agenta-0.12.2.dist-info → agenta-0.32.0a1.dist-info}/WHEEL +1 -1
- agenta/client/backend/types/add_variant_from_base_and_config_response.py +0 -7
- agenta/client/backend/types/app_variant_output.py +0 -47
- agenta/client/backend/types/app_variant_output_extended.py +0 -50
- agenta/client/backend/types/delete_evaluation.py +0 -36
- agenta/client/backend/types/evaluation_webhook.py +0 -36
- agenta/client/backend/types/feedback.py +0 -40
- agenta/client/backend/types/get_config_reponse.py +0 -39
- agenta/client/backend/types/list_api_keys_output.py +0 -39
- agenta/client/backend/types/trace.py +0 -48
- agenta/sdk/agenta_decorator.py +0 -443
- agenta/sdk/context.py +0 -41
- agenta-0.12.2.dist-info/RECORD +0 -114
- {agenta-0.12.2.dist-info → agenta-0.32.0a1.dist-info}/entry_points.txt +0 -0
|
@@ -1,113 +1,241 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from .
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
from .agenta_node_dto import AgentaNodeDto
|
|
4
|
+
from .agenta_node_dto_nodes_value import AgentaNodeDtoNodesValue
|
|
5
|
+
from .agenta_nodes_response import AgentaNodesResponse
|
|
6
|
+
from .agenta_root_dto import AgentaRootDto
|
|
7
|
+
from .agenta_roots_response import AgentaRootsResponse
|
|
8
|
+
from .agenta_tree_dto import AgentaTreeDto
|
|
9
|
+
from .agenta_trees_response import AgentaTreesResponse
|
|
6
10
|
from .aggregated_result import AggregatedResult
|
|
11
|
+
from .aggregated_result_evaluator_config import AggregatedResultEvaluatorConfig
|
|
12
|
+
from .analytics_response import AnalyticsResponse
|
|
7
13
|
from .app import App
|
|
8
|
-
from .
|
|
9
|
-
from .app_variant_output_extended import AppVariantOutputExtended
|
|
14
|
+
from .app_variant_response import AppVariantResponse
|
|
10
15
|
from .app_variant_revision import AppVariantRevision
|
|
11
16
|
from .base_output import BaseOutput
|
|
12
17
|
from .body_import_testset import BodyImportTestset
|
|
18
|
+
from .bucket_dto import BucketDto
|
|
19
|
+
from .collect_status_response import CollectStatusResponse
|
|
13
20
|
from .config_db import ConfigDb
|
|
14
|
-
from .
|
|
21
|
+
from .config_dto import ConfigDto
|
|
22
|
+
from .config_response_model import ConfigResponseModel
|
|
23
|
+
from .correct_answer import CorrectAnswer
|
|
15
24
|
from .create_app_output import CreateAppOutput
|
|
16
|
-
from .
|
|
25
|
+
from .create_span import CreateSpan
|
|
26
|
+
from .create_trace_response import CreateTraceResponse
|
|
17
27
|
from .docker_env_vars import DockerEnvVars
|
|
18
28
|
from .environment_output import EnvironmentOutput
|
|
29
|
+
from .environment_output_extended import EnvironmentOutputExtended
|
|
30
|
+
from .environment_revision import EnvironmentRevision
|
|
31
|
+
from .error import Error
|
|
19
32
|
from .evaluation import Evaluation
|
|
20
33
|
from .evaluation_scenario import EvaluationScenario
|
|
21
34
|
from .evaluation_scenario_input import EvaluationScenarioInput
|
|
22
35
|
from .evaluation_scenario_output import EvaluationScenarioOutput
|
|
23
36
|
from .evaluation_scenario_result import EvaluationScenarioResult
|
|
37
|
+
from .evaluation_scenario_score_update import EvaluationScenarioScoreUpdate
|
|
24
38
|
from .evaluation_status_enum import EvaluationStatusEnum
|
|
25
39
|
from .evaluation_type import EvaluationType
|
|
26
|
-
from .evaluation_webhook import EvaluationWebhook
|
|
27
40
|
from .evaluator import Evaluator
|
|
28
41
|
from .evaluator_config import EvaluatorConfig
|
|
29
|
-
from .
|
|
30
|
-
from .
|
|
42
|
+
from .evaluator_mapping_output_interface import EvaluatorMappingOutputInterface
|
|
43
|
+
from .evaluator_output_interface import EvaluatorOutputInterface
|
|
44
|
+
from .exception_dto import ExceptionDto
|
|
45
|
+
from .get_config_response import GetConfigResponse
|
|
46
|
+
from .header_dto import HeaderDto
|
|
31
47
|
from .http_validation_error import HttpValidationError
|
|
32
48
|
from .human_evaluation import HumanEvaluation
|
|
33
49
|
from .human_evaluation_scenario import HumanEvaluationScenario
|
|
34
50
|
from .human_evaluation_scenario_input import HumanEvaluationScenarioInput
|
|
35
51
|
from .human_evaluation_scenario_output import HumanEvaluationScenarioOutput
|
|
36
|
-
from .
|
|
37
|
-
from .
|
|
52
|
+
from .human_evaluation_scenario_update import HumanEvaluationScenarioUpdate
|
|
53
|
+
from .human_evaluation_update import HumanEvaluationUpdate
|
|
38
54
|
from .image import Image
|
|
39
55
|
from .invite_request import InviteRequest
|
|
40
|
-
from .
|
|
56
|
+
from .legacy_analytics_response import LegacyAnalyticsResponse
|
|
57
|
+
from .legacy_data_point import LegacyDataPoint
|
|
58
|
+
from .lifecycle_dto import LifecycleDto
|
|
59
|
+
from .link_dto import LinkDto
|
|
60
|
+
from .list_api_keys_response import ListApiKeysResponse
|
|
41
61
|
from .llm_run_rate_limit import LlmRunRateLimit
|
|
62
|
+
from .llm_tokens import LlmTokens
|
|
63
|
+
from .metrics_dto import MetricsDto
|
|
64
|
+
from .new_human_evaluation import NewHumanEvaluation
|
|
42
65
|
from .new_testset import NewTestset
|
|
66
|
+
from .node_dto import NodeDto
|
|
67
|
+
from .node_type import NodeType
|
|
68
|
+
from .o_tel_context_dto import OTelContextDto
|
|
69
|
+
from .o_tel_event_dto import OTelEventDto
|
|
70
|
+
from .o_tel_extra_dto import OTelExtraDto
|
|
71
|
+
from .o_tel_link_dto import OTelLinkDto
|
|
72
|
+
from .o_tel_span_dto import OTelSpanDto
|
|
73
|
+
from .o_tel_span_kind import OTelSpanKind
|
|
74
|
+
from .o_tel_spans_response import OTelSpansResponse
|
|
75
|
+
from .o_tel_status_code import OTelStatusCode
|
|
43
76
|
from .organization import Organization
|
|
44
77
|
from .organization_output import OrganizationOutput
|
|
78
|
+
from .outputs import Outputs
|
|
79
|
+
from .parent_dto import ParentDto
|
|
80
|
+
from .permission import Permission
|
|
81
|
+
from .projects_response import ProjectsResponse
|
|
82
|
+
from .provider_key_dto import ProviderKeyDto
|
|
83
|
+
from .provider_kind import ProviderKind
|
|
84
|
+
from .reference_dto import ReferenceDto
|
|
85
|
+
from .reference_request_model import ReferenceRequestModel
|
|
45
86
|
from .result import Result
|
|
87
|
+
from .root_dto import RootDto
|
|
88
|
+
from .score import Score
|
|
89
|
+
from .secret_dto import SecretDto
|
|
90
|
+
from .secret_kind import SecretKind
|
|
91
|
+
from .secret_response_dto import SecretResponseDto
|
|
46
92
|
from .simple_evaluation_output import SimpleEvaluationOutput
|
|
47
93
|
from .span import Span
|
|
94
|
+
from .span_detail import SpanDetail
|
|
95
|
+
from .span_dto import SpanDto
|
|
96
|
+
from .span_dto_nodes_value import SpanDtoNodesValue
|
|
97
|
+
from .span_status_code import SpanStatusCode
|
|
98
|
+
from .span_variant import SpanVariant
|
|
99
|
+
from .status_code import StatusCode
|
|
100
|
+
from .status_dto import StatusDto
|
|
48
101
|
from .template import Template
|
|
49
102
|
from .template_image_info import TemplateImageInfo
|
|
50
103
|
from .test_set_output_response import TestSetOutputResponse
|
|
51
104
|
from .test_set_simple_response import TestSetSimpleResponse
|
|
52
|
-
from .
|
|
105
|
+
from .time_dto import TimeDto
|
|
106
|
+
from .trace_detail import TraceDetail
|
|
107
|
+
from .tree_dto import TreeDto
|
|
108
|
+
from .tree_type import TreeType
|
|
109
|
+
from .update_app_output import UpdateAppOutput
|
|
53
110
|
from .uri import Uri
|
|
54
111
|
from .validation_error import ValidationError
|
|
55
112
|
from .validation_error_loc_item import ValidationErrorLocItem
|
|
56
113
|
from .variant_action import VariantAction
|
|
57
114
|
from .variant_action_enum import VariantActionEnum
|
|
115
|
+
from .with_pagination import WithPagination
|
|
116
|
+
from .workspace_member_response import WorkspaceMemberResponse
|
|
117
|
+
from .workspace_permission import WorkspacePermission
|
|
118
|
+
from .workspace_response import WorkspaceResponse
|
|
119
|
+
from .workspace_role import WorkspaceRole
|
|
120
|
+
from .workspace_role_response import WorkspaceRoleResponse
|
|
58
121
|
|
|
59
122
|
__all__ = [
|
|
60
|
-
"
|
|
123
|
+
"AgentaNodeDto",
|
|
124
|
+
"AgentaNodeDtoNodesValue",
|
|
125
|
+
"AgentaNodesResponse",
|
|
126
|
+
"AgentaRootDto",
|
|
127
|
+
"AgentaRootsResponse",
|
|
128
|
+
"AgentaTreeDto",
|
|
129
|
+
"AgentaTreesResponse",
|
|
61
130
|
"AggregatedResult",
|
|
131
|
+
"AggregatedResultEvaluatorConfig",
|
|
132
|
+
"AnalyticsResponse",
|
|
62
133
|
"App",
|
|
63
|
-
"
|
|
64
|
-
"AppVariantOutputExtended",
|
|
134
|
+
"AppVariantResponse",
|
|
65
135
|
"AppVariantRevision",
|
|
66
136
|
"BaseOutput",
|
|
67
137
|
"BodyImportTestset",
|
|
138
|
+
"BucketDto",
|
|
139
|
+
"CollectStatusResponse",
|
|
68
140
|
"ConfigDb",
|
|
69
|
-
"
|
|
141
|
+
"ConfigDto",
|
|
142
|
+
"ConfigResponseModel",
|
|
143
|
+
"CorrectAnswer",
|
|
70
144
|
"CreateAppOutput",
|
|
71
|
-
"
|
|
145
|
+
"CreateSpan",
|
|
146
|
+
"CreateTraceResponse",
|
|
72
147
|
"DockerEnvVars",
|
|
73
148
|
"EnvironmentOutput",
|
|
149
|
+
"EnvironmentOutputExtended",
|
|
150
|
+
"EnvironmentRevision",
|
|
151
|
+
"Error",
|
|
74
152
|
"Evaluation",
|
|
75
153
|
"EvaluationScenario",
|
|
76
154
|
"EvaluationScenarioInput",
|
|
77
155
|
"EvaluationScenarioOutput",
|
|
78
156
|
"EvaluationScenarioResult",
|
|
157
|
+
"EvaluationScenarioScoreUpdate",
|
|
79
158
|
"EvaluationStatusEnum",
|
|
80
159
|
"EvaluationType",
|
|
81
|
-
"EvaluationWebhook",
|
|
82
160
|
"Evaluator",
|
|
83
161
|
"EvaluatorConfig",
|
|
84
|
-
"
|
|
85
|
-
"
|
|
162
|
+
"EvaluatorMappingOutputInterface",
|
|
163
|
+
"EvaluatorOutputInterface",
|
|
164
|
+
"ExceptionDto",
|
|
165
|
+
"GetConfigResponse",
|
|
166
|
+
"HeaderDto",
|
|
86
167
|
"HttpValidationError",
|
|
87
168
|
"HumanEvaluation",
|
|
88
169
|
"HumanEvaluationScenario",
|
|
89
170
|
"HumanEvaluationScenarioInput",
|
|
90
171
|
"HumanEvaluationScenarioOutput",
|
|
91
|
-
"
|
|
92
|
-
"
|
|
172
|
+
"HumanEvaluationScenarioUpdate",
|
|
173
|
+
"HumanEvaluationUpdate",
|
|
93
174
|
"Image",
|
|
94
175
|
"InviteRequest",
|
|
95
|
-
"
|
|
176
|
+
"LegacyAnalyticsResponse",
|
|
177
|
+
"LegacyDataPoint",
|
|
178
|
+
"LifecycleDto",
|
|
179
|
+
"LinkDto",
|
|
180
|
+
"ListApiKeysResponse",
|
|
96
181
|
"LlmRunRateLimit",
|
|
182
|
+
"LlmTokens",
|
|
183
|
+
"MetricsDto",
|
|
184
|
+
"NewHumanEvaluation",
|
|
97
185
|
"NewTestset",
|
|
186
|
+
"NodeDto",
|
|
187
|
+
"NodeType",
|
|
188
|
+
"OTelContextDto",
|
|
189
|
+
"OTelEventDto",
|
|
190
|
+
"OTelExtraDto",
|
|
191
|
+
"OTelLinkDto",
|
|
192
|
+
"OTelSpanDto",
|
|
193
|
+
"OTelSpanKind",
|
|
194
|
+
"OTelSpansResponse",
|
|
195
|
+
"OTelStatusCode",
|
|
98
196
|
"Organization",
|
|
99
197
|
"OrganizationOutput",
|
|
198
|
+
"Outputs",
|
|
199
|
+
"ParentDto",
|
|
200
|
+
"Permission",
|
|
201
|
+
"ProjectsResponse",
|
|
202
|
+
"ProviderKeyDto",
|
|
203
|
+
"ProviderKind",
|
|
204
|
+
"ReferenceDto",
|
|
205
|
+
"ReferenceRequestModel",
|
|
100
206
|
"Result",
|
|
207
|
+
"RootDto",
|
|
208
|
+
"Score",
|
|
209
|
+
"SecretDto",
|
|
210
|
+
"SecretKind",
|
|
211
|
+
"SecretResponseDto",
|
|
101
212
|
"SimpleEvaluationOutput",
|
|
102
213
|
"Span",
|
|
214
|
+
"SpanDetail",
|
|
215
|
+
"SpanDto",
|
|
216
|
+
"SpanDtoNodesValue",
|
|
217
|
+
"SpanStatusCode",
|
|
218
|
+
"SpanVariant",
|
|
219
|
+
"StatusCode",
|
|
220
|
+
"StatusDto",
|
|
103
221
|
"Template",
|
|
104
222
|
"TemplateImageInfo",
|
|
105
223
|
"TestSetOutputResponse",
|
|
106
224
|
"TestSetSimpleResponse",
|
|
107
|
-
"
|
|
225
|
+
"TimeDto",
|
|
226
|
+
"TraceDetail",
|
|
227
|
+
"TreeDto",
|
|
228
|
+
"TreeType",
|
|
229
|
+
"UpdateAppOutput",
|
|
108
230
|
"Uri",
|
|
109
231
|
"ValidationError",
|
|
110
232
|
"ValidationErrorLocItem",
|
|
111
233
|
"VariantAction",
|
|
112
234
|
"VariantActionEnum",
|
|
235
|
+
"WithPagination",
|
|
236
|
+
"WorkspaceMemberResponse",
|
|
237
|
+
"WorkspacePermission",
|
|
238
|
+
"WorkspaceResponse",
|
|
239
|
+
"WorkspaceRole",
|
|
240
|
+
"WorkspaceRoleResponse",
|
|
113
241
|
]
|
|
@@ -0,0 +1,48 @@
|
|
|
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 .lifecycle_dto import LifecycleDto
|
|
6
|
+
from .root_dto import RootDto
|
|
7
|
+
from .tree_dto import TreeDto
|
|
8
|
+
from .node_dto import NodeDto
|
|
9
|
+
from .parent_dto import ParentDto
|
|
10
|
+
from .time_dto import TimeDto
|
|
11
|
+
from .status_dto import StatusDto
|
|
12
|
+
from .exception_dto import ExceptionDto
|
|
13
|
+
from .link_dto import LinkDto
|
|
14
|
+
from .o_tel_extra_dto import OTelExtraDto
|
|
15
|
+
from .agenta_node_dto_nodes_value import AgentaNodeDtoNodesValue
|
|
16
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
17
|
+
import pydantic
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class AgentaNodeDto(UniversalBaseModel):
|
|
21
|
+
lifecycle: typing.Optional[LifecycleDto] = None
|
|
22
|
+
root: RootDto
|
|
23
|
+
tree: TreeDto
|
|
24
|
+
node: NodeDto
|
|
25
|
+
parent: typing.Optional[ParentDto] = None
|
|
26
|
+
time: TimeDto
|
|
27
|
+
status: StatusDto
|
|
28
|
+
exception: typing.Optional[ExceptionDto] = None
|
|
29
|
+
data: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
30
|
+
metrics: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
31
|
+
meta: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
32
|
+
refs: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
33
|
+
links: typing.Optional[typing.List[LinkDto]] = None
|
|
34
|
+
otel: typing.Optional[OTelExtraDto] = None
|
|
35
|
+
nodes: typing.Optional[
|
|
36
|
+
typing.Dict[str, typing.Optional[AgentaNodeDtoNodesValue]]
|
|
37
|
+
] = None
|
|
38
|
+
|
|
39
|
+
if IS_PYDANTIC_V2:
|
|
40
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
41
|
+
extra="allow", frozen=True
|
|
42
|
+
) # type: ignore # Pydantic v2
|
|
43
|
+
else:
|
|
44
|
+
|
|
45
|
+
class Config:
|
|
46
|
+
frozen = True
|
|
47
|
+
smart_union = True
|
|
48
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
5
|
+
from .span_dto import SpanDto
|
|
6
|
+
import typing
|
|
7
|
+
from .agenta_node_dto import AgentaNodeDto
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
import pydantic
|
|
10
|
+
from ..core.pydantic_utilities import update_forward_refs
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AgentaNodesResponse(UniversalBaseModel):
|
|
14
|
+
nodes: typing.List[AgentaNodeDto]
|
|
15
|
+
version: str
|
|
16
|
+
count: typing.Optional[int] = None
|
|
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
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
update_forward_refs(SpanDto, AgentaNodesResponse=AgentaNodesResponse)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
5
|
+
from .span_dto import SpanDto
|
|
6
|
+
from .root_dto import RootDto
|
|
7
|
+
import typing
|
|
8
|
+
from .agenta_tree_dto import AgentaTreeDto
|
|
9
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
10
|
+
import pydantic
|
|
11
|
+
from ..core.pydantic_utilities import update_forward_refs
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class AgentaRootDto(UniversalBaseModel):
|
|
15
|
+
root: RootDto
|
|
16
|
+
trees: typing.List[AgentaTreeDto]
|
|
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
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
update_forward_refs(SpanDto, AgentaRootDto=AgentaRootDto)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
5
|
+
from .span_dto import SpanDto
|
|
6
|
+
import typing
|
|
7
|
+
from .agenta_root_dto import AgentaRootDto
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
import pydantic
|
|
10
|
+
from ..core.pydantic_utilities import update_forward_refs
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AgentaRootsResponse(UniversalBaseModel):
|
|
14
|
+
roots: typing.List[AgentaRootDto]
|
|
15
|
+
version: str
|
|
16
|
+
count: typing.Optional[int] = None
|
|
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
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
update_forward_refs(SpanDto, AgentaRootsResponse=AgentaRootsResponse)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
5
|
+
from .span_dto import SpanDto
|
|
6
|
+
from .tree_dto import TreeDto
|
|
7
|
+
import typing
|
|
8
|
+
from .agenta_node_dto import AgentaNodeDto
|
|
9
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
10
|
+
import pydantic
|
|
11
|
+
from ..core.pydantic_utilities import update_forward_refs
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class AgentaTreeDto(UniversalBaseModel):
|
|
15
|
+
tree: TreeDto
|
|
16
|
+
nodes: typing.List[AgentaNodeDto]
|
|
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
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
update_forward_refs(SpanDto, AgentaTreeDto=AgentaTreeDto)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
5
|
+
from .span_dto import SpanDto
|
|
6
|
+
import typing
|
|
7
|
+
from .agenta_tree_dto import AgentaTreeDto
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
import pydantic
|
|
10
|
+
from ..core.pydantic_utilities import update_forward_refs
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AgentaTreesResponse(UniversalBaseModel):
|
|
14
|
+
trees: typing.List[AgentaTreeDto]
|
|
15
|
+
version: str
|
|
16
|
+
count: typing.Optional[int] = None
|
|
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
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
update_forward_refs(SpanDto, AgentaTreesResponse=AgentaTreesResponse)
|
|
@@ -1,39 +1,24 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
|
7
|
-
from .evaluator_config import EvaluatorConfig
|
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
+
from .aggregated_result_evaluator_config import AggregatedResultEvaluatorConfig
|
|
8
5
|
from .result import Result
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
except ImportError:
|
|
13
|
-
import pydantic # type: ignore
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import typing
|
|
8
|
+
import pydantic
|
|
14
9
|
|
|
15
10
|
|
|
16
|
-
class AggregatedResult(
|
|
17
|
-
evaluator_config:
|
|
11
|
+
class AggregatedResult(UniversalBaseModel):
|
|
12
|
+
evaluator_config: AggregatedResultEvaluatorConfig
|
|
18
13
|
result: Result
|
|
19
14
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
return super().json(**kwargs_with_defaults)
|
|
27
|
-
|
|
28
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
|
29
|
-
kwargs_with_defaults: typing.Any = {
|
|
30
|
-
"by_alias": True,
|
|
31
|
-
"exclude_unset": True,
|
|
32
|
-
**kwargs,
|
|
33
|
-
}
|
|
34
|
-
return super().dict(**kwargs_with_defaults)
|
|
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:
|
|
35
20
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,24 @@
|
|
|
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,37 +1,24 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
4
|
import typing
|
|
5
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
+
import pydantic
|
|
5
7
|
|
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
|
10
|
-
except ImportError:
|
|
11
|
-
import pydantic # type: ignore
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class App(pydantic.BaseModel):
|
|
9
|
+
class App(UniversalBaseModel):
|
|
15
10
|
app_id: str
|
|
16
11
|
app_name: str
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
**kwargs,
|
|
31
|
-
}
|
|
32
|
-
return super().dict(**kwargs_with_defaults)
|
|
33
|
-
|
|
34
|
-
class Config:
|
|
35
|
-
frozen = True
|
|
36
|
-
smart_union = True
|
|
37
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
|
12
|
+
app_type: typing.Optional[str] = None
|
|
13
|
+
updated_at: str
|
|
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
|
|
@@ -0,0 +1,36 @@
|
|
|
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 AppVariantResponse(UniversalBaseModel):
|
|
10
|
+
app_id: str
|
|
11
|
+
app_name: str
|
|
12
|
+
variant_id: str
|
|
13
|
+
variant_name: str
|
|
14
|
+
project_id: str
|
|
15
|
+
parameters: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
16
|
+
base_name: str
|
|
17
|
+
base_id: str
|
|
18
|
+
config_name: str
|
|
19
|
+
uri: typing.Optional[str] = None
|
|
20
|
+
revision: int
|
|
21
|
+
created_at: typing.Optional[str] = None
|
|
22
|
+
updated_at: typing.Optional[str] = None
|
|
23
|
+
modified_by_id: typing.Optional[str] = None
|
|
24
|
+
organization_id: typing.Optional[str] = None
|
|
25
|
+
workspace_id: typing.Optional[str] = None
|
|
26
|
+
|
|
27
|
+
if IS_PYDANTIC_V2:
|
|
28
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
29
|
+
extra="allow", frozen=True
|
|
30
|
+
) # type: ignore # Pydantic v2
|
|
31
|
+
else:
|
|
32
|
+
|
|
33
|
+
class Config:
|
|
34
|
+
frozen = True
|
|
35
|
+
smart_union = True
|
|
36
|
+
extra = pydantic.Extra.allow
|