agenta 0.48.8__py3-none-any.whl → 0.48.10__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.

Files changed (297) hide show
  1. agenta/__init__.py +3 -2
  2. agenta/client/Readme.md +258 -80
  3. agenta/client/__init__.py +205 -29
  4. agenta/client/backend/__init__.py +461 -0
  5. agenta/client/backend/access_control/__init__.py +2 -0
  6. agenta/client/backend/access_control/client.py +53 -73
  7. agenta/client/backend/access_control/raw_client.py +180 -0
  8. agenta/client/backend/admin/__init__.py +2 -0
  9. agenta/client/backend/admin/client.py +473 -268
  10. agenta/client/backend/admin/raw_client.py +1017 -0
  11. agenta/client/backend/api_keys/__init__.py +2 -0
  12. agenta/client/backend/api_keys/client.py +43 -276
  13. agenta/client/backend/api_keys/raw_client.py +364 -0
  14. agenta/client/backend/apps/__init__.py +2 -0
  15. agenta/client/backend/apps/client.py +132 -895
  16. agenta/client/backend/apps/raw_client.py +1516 -0
  17. agenta/client/backend/bases/__init__.py +2 -0
  18. agenta/client/backend/bases/client.py +33 -73
  19. agenta/client/backend/bases/raw_client.py +179 -0
  20. agenta/client/backend/billing/__init__.py +3 -0
  21. agenta/client/backend/billing/client.py +564 -0
  22. agenta/client/backend/billing/raw_client.py +805 -0
  23. agenta/client/backend/client.py +1268 -0
  24. agenta/client/backend/configs/__init__.py +2 -0
  25. agenta/client/backend/configs/client.py +49 -361
  26. agenta/client/backend/configs/raw_client.py +402 -0
  27. agenta/client/backend/containers/__init__.py +1 -3
  28. agenta/client/backend/containers/client.py +25 -548
  29. agenta/client/backend/containers/raw_client.py +112 -0
  30. agenta/client/backend/core/__init__.py +5 -0
  31. agenta/client/backend/core/api_error.py +12 -6
  32. agenta/client/backend/core/client_wrapper.py +4 -4
  33. agenta/client/backend/core/file.py +1 -3
  34. agenta/client/backend/core/force_multipart.py +16 -0
  35. agenta/client/backend/core/http_client.py +78 -34
  36. agenta/client/backend/core/http_response.py +55 -0
  37. agenta/client/backend/core/jsonable_encoder.py +0 -1
  38. agenta/client/backend/core/pydantic_utilities.py +88 -113
  39. agenta/client/backend/core/serialization.py +9 -3
  40. agenta/client/backend/environment.py +7 -0
  41. agenta/client/backend/environments/__init__.py +2 -0
  42. agenta/client/backend/environments/client.py +43 -79
  43. agenta/client/backend/environments/raw_client.py +193 -0
  44. agenta/client/backend/errors/__init__.py +2 -0
  45. agenta/client/backend/errors/unprocessable_entity_error.py +8 -2
  46. agenta/client/backend/evals/__init__.py +3 -0
  47. agenta/client/backend/evals/client.py +1042 -0
  48. agenta/client/backend/evals/raw_client.py +1549 -0
  49. agenta/client/backend/evaluations/__init__.py +2 -0
  50. agenta/client/backend/evaluations/client.py +106 -590
  51. agenta/client/backend/evaluations/raw_client.py +1344 -0
  52. agenta/client/backend/evaluators/__init__.py +2 -0
  53. agenta/client/backend/evaluators/client.py +99 -516
  54. agenta/client/backend/evaluators/raw_client.py +1182 -0
  55. agenta/client/backend/human_evaluations/__init__.py +2 -0
  56. agenta/client/backend/human_evaluations/client.py +120 -680
  57. agenta/client/backend/human_evaluations/raw_client.py +1577 -0
  58. agenta/client/backend/observability/__init__.py +14 -2
  59. agenta/client/backend/observability/client.py +185 -341
  60. agenta/client/backend/observability/raw_client.py +943 -0
  61. agenta/client/backend/observability/types/__init__.py +10 -2
  62. agenta/client/backend/observability/types/{format.py → fetch_trace_by_id_request_trace_id.py} +1 -1
  63. agenta/client/backend/observability/types/fetch_trace_by_id_response.py +15 -0
  64. agenta/client/backend/observability/types/query_analytics_response.py +2 -1
  65. agenta/client/backend/observability/types/query_traces_response.py +7 -3
  66. agenta/client/backend/organization/__init__.py +2 -0
  67. agenta/client/backend/organization/client.py +105 -361
  68. agenta/client/backend/organization/raw_client.py +774 -0
  69. agenta/client/backend/raw_client.py +1432 -0
  70. agenta/client/backend/scopes/__init__.py +2 -0
  71. agenta/client/backend/scopes/client.py +31 -45
  72. agenta/client/backend/scopes/raw_client.py +105 -0
  73. agenta/client/backend/testsets/__init__.py +14 -0
  74. agenta/client/backend/testsets/client.py +1098 -653
  75. agenta/client/backend/testsets/raw_client.py +2348 -0
  76. agenta/client/backend/testsets/types/__init__.py +17 -0
  77. agenta/client/backend/testsets/types/create_testset_from_file_request_file_type.py +7 -0
  78. agenta/client/backend/testsets/types/fetch_testset_to_file_request_file_type.py +7 -0
  79. agenta/client/backend/testsets/types/update_testset_from_file_request_file_type.py +7 -0
  80. agenta/client/backend/tracing/__init__.py +7 -0
  81. agenta/client/backend/tracing/client.py +782 -0
  82. agenta/client/backend/tracing/raw_client.py +1223 -0
  83. agenta/client/backend/tracing/types/__init__.py +8 -0
  84. agenta/client/backend/{types/variant_action_enum.py → tracing/types/fetch_trace_request_trace_id.py} +1 -1
  85. agenta/client/backend/tracing/types/remove_trace_request_trace_id.py +5 -0
  86. agenta/client/backend/types/__init__.py +153 -26
  87. agenta/client/backend/types/account_request.py +24 -0
  88. agenta/client/backend/types/account_response.py +5 -7
  89. agenta/client/backend/types/agenta_node_dto.py +13 -13
  90. agenta/client/backend/types/agenta_node_dto_nodes_value.py +1 -0
  91. agenta/client/backend/types/agenta_nodes_response.py +14 -8
  92. agenta/client/backend/types/agenta_root_dto.py +16 -8
  93. agenta/client/backend/types/agenta_roots_response.py +16 -8
  94. agenta/client/backend/types/agenta_tree_dto.py +16 -8
  95. agenta/client/backend/types/agenta_trees_response.py +16 -8
  96. agenta/client/backend/types/aggregated_result.py +5 -7
  97. agenta/client/backend/types/aggregated_result_evaluator_config.py +1 -0
  98. agenta/client/backend/types/analytics_response.py +4 -6
  99. agenta/client/backend/types/annotation.py +50 -0
  100. agenta/client/backend/types/annotation_create.py +39 -0
  101. agenta/client/backend/types/annotation_edit.py +31 -0
  102. agenta/client/backend/types/annotation_kind.py +5 -0
  103. agenta/client/backend/types/{uri.py → annotation_link.py} +6 -7
  104. agenta/client/backend/types/{provider_key_dto.py → annotation_link_response.py} +6 -7
  105. agenta/client/backend/types/annotation_query.py +40 -0
  106. agenta/client/backend/types/annotation_query_request.py +20 -0
  107. agenta/client/backend/types/annotation_reference.py +21 -0
  108. agenta/client/backend/types/annotation_references.py +22 -0
  109. agenta/client/backend/types/{docker_env_vars.py → annotation_response.py} +6 -7
  110. agenta/client/backend/types/annotation_source.py +5 -0
  111. agenta/client/backend/types/annotations_response.py +24 -0
  112. agenta/client/backend/types/app.py +3 -5
  113. agenta/client/backend/types/app_variant_response.py +3 -6
  114. agenta/client/backend/types/app_variant_revision.py +5 -6
  115. agenta/client/backend/types/artifact.py +44 -0
  116. agenta/client/backend/types/base_output.py +3 -5
  117. agenta/client/backend/types/body_fetch_workflow_revision.py +21 -0
  118. agenta/client/backend/types/body_import_testset.py +3 -5
  119. agenta/client/backend/types/bucket_dto.py +4 -6
  120. agenta/client/backend/types/collect_status_response.py +3 -5
  121. agenta/client/backend/types/config_db.py +3 -5
  122. agenta/client/backend/types/config_dto.py +5 -7
  123. agenta/client/backend/types/config_response_model.py +5 -7
  124. agenta/client/backend/types/correct_answer.py +3 -5
  125. agenta/client/backend/types/create_app_output.py +3 -5
  126. agenta/client/backend/types/custom_model_settings_dto.py +3 -5
  127. agenta/client/backend/types/custom_provider_dto.py +6 -9
  128. agenta/client/backend/types/custom_provider_kind.py +5 -5
  129. agenta/client/backend/types/custom_provider_settings_dto.py +3 -5
  130. agenta/client/backend/types/data.py +2 -1
  131. agenta/client/backend/types/delete_evaluation.py +3 -5
  132. agenta/client/backend/types/environment_output.py +3 -5
  133. agenta/client/backend/types/environment_output_extended.py +4 -6
  134. agenta/client/backend/types/environment_revision.py +5 -5
  135. agenta/client/backend/types/error.py +3 -5
  136. agenta/client/backend/types/evaluation.py +6 -8
  137. agenta/client/backend/types/evaluation_scenario.py +5 -7
  138. agenta/client/backend/types/evaluation_scenario_input.py +3 -5
  139. agenta/client/backend/types/evaluation_scenario_output.py +4 -6
  140. agenta/client/backend/types/evaluation_scenario_result.py +4 -6
  141. agenta/client/backend/types/evaluator.py +31 -12
  142. agenta/client/backend/types/evaluator_config.py +3 -5
  143. agenta/client/backend/types/evaluator_flags.py +21 -0
  144. agenta/client/backend/types/evaluator_mapping_output_interface.py +3 -5
  145. agenta/client/backend/types/evaluator_output_interface.py +3 -5
  146. agenta/client/backend/types/evaluator_query.py +32 -0
  147. agenta/client/backend/types/evaluator_query_request.py +30 -0
  148. agenta/client/backend/types/evaluator_request.py +20 -0
  149. agenta/client/backend/types/evaluator_response.py +21 -0
  150. agenta/client/backend/types/evaluators_response.py +21 -0
  151. agenta/client/backend/types/exception_dto.py +3 -5
  152. agenta/client/backend/types/{o_tel_spans_response.py → extended_o_tel_tracing_response.py} +5 -7
  153. agenta/client/backend/types/focus.py +5 -0
  154. agenta/client/backend/types/format.py +5 -0
  155. agenta/client/backend/types/full_json_input.py +34 -0
  156. agenta/client/backend/types/full_json_output.py +29 -0
  157. agenta/client/backend/types/get_config_response.py +3 -5
  158. agenta/client/backend/types/{header_dto.py → header.py} +4 -6
  159. agenta/client/backend/types/http_validation_error.py +4 -6
  160. agenta/client/backend/types/human_evaluation.py +3 -5
  161. agenta/client/backend/types/human_evaluation_scenario.py +4 -6
  162. agenta/client/backend/types/human_evaluation_scenario_input.py +3 -5
  163. agenta/client/backend/types/human_evaluation_scenario_output.py +3 -5
  164. agenta/client/backend/types/invite_request.py +4 -6
  165. agenta/client/backend/types/legacy_analytics_response.py +4 -6
  166. agenta/client/backend/types/legacy_data_point.py +3 -5
  167. agenta/client/backend/types/legacy_evaluator.py +26 -0
  168. agenta/client/backend/types/legacy_scope_request.py +4 -6
  169. agenta/client/backend/types/legacy_scopes_response.py +3 -5
  170. agenta/client/backend/types/legacy_subscription_request.py +19 -0
  171. agenta/client/backend/types/legacy_user_request.py +5 -7
  172. agenta/client/backend/types/legacy_user_response.py +3 -5
  173. agenta/client/backend/types/lifecycle_dto.py +3 -5
  174. agenta/client/backend/types/link_dto.py +4 -6
  175. agenta/client/backend/types/list_api_keys_response.py +3 -5
  176. agenta/client/backend/types/llm_run_rate_limit.py +3 -5
  177. agenta/client/backend/types/meta_request.py +30 -0
  178. agenta/client/backend/types/metrics_dto.py +3 -5
  179. agenta/client/backend/types/new_testset.py +3 -5
  180. agenta/client/backend/types/node_dto.py +4 -6
  181. agenta/client/backend/types/o_tel_context_dto.py +3 -5
  182. agenta/client/backend/types/o_tel_event.py +35 -0
  183. agenta/client/backend/types/o_tel_event_dto.py +3 -5
  184. agenta/client/backend/types/o_tel_extra_dto.py +4 -6
  185. agenta/client/backend/types/o_tel_flat_span.py +56 -0
  186. agenta/client/backend/types/o_tel_flat_span_input_end_time.py +6 -0
  187. agenta/client/backend/types/o_tel_flat_span_input_start_time.py +6 -0
  188. agenta/client/backend/types/o_tel_flat_span_output_end_time.py +6 -0
  189. agenta/client/backend/types/o_tel_flat_span_output_start_time.py +6 -0
  190. agenta/client/backend/types/o_tel_link.py +34 -0
  191. agenta/client/backend/types/o_tel_link_dto.py +4 -6
  192. agenta/client/backend/types/o_tel_links_response.py +22 -0
  193. agenta/client/backend/types/o_tel_span.py +58 -0
  194. agenta/client/backend/types/o_tel_span_dto.py +8 -10
  195. agenta/client/backend/types/o_tel_span_input_end_time.py +6 -0
  196. agenta/client/backend/types/o_tel_span_input_spans_value.py +7 -0
  197. agenta/client/backend/types/o_tel_span_input_start_time.py +6 -0
  198. agenta/client/backend/types/o_tel_span_output_end_time.py +6 -0
  199. agenta/client/backend/types/o_tel_span_output_spans_value.py +30 -0
  200. agenta/client/backend/types/o_tel_span_output_start_time.py +6 -0
  201. agenta/client/backend/types/o_tel_spans_tree.py +22 -0
  202. agenta/client/backend/types/o_tel_spans_tree_input_spans_value.py +7 -0
  203. agenta/client/backend/types/o_tel_spans_tree_output_spans_value.py +5 -0
  204. agenta/client/backend/types/o_tel_status_code.py +1 -1
  205. agenta/client/backend/types/o_tel_tracing_data_response.py +22 -0
  206. agenta/client/backend/types/o_tel_tracing_request.py +22 -0
  207. agenta/client/backend/types/o_tel_tracing_response.py +27 -0
  208. agenta/client/backend/types/organization.py +3 -5
  209. agenta/client/backend/types/organization_details.py +3 -5
  210. agenta/client/backend/types/organization_membership_request.py +5 -7
  211. agenta/client/backend/types/organization_output.py +3 -5
  212. agenta/client/backend/types/organization_request.py +3 -5
  213. agenta/client/backend/types/parent_dto.py +3 -5
  214. agenta/client/backend/types/permission.py +11 -0
  215. agenta/client/backend/types/plan.py +14 -0
  216. agenta/client/backend/types/project_membership_request.py +5 -7
  217. agenta/client/backend/types/project_request.py +4 -6
  218. agenta/client/backend/types/project_scope.py +5 -7
  219. agenta/client/backend/types/projects_response.py +3 -5
  220. agenta/client/backend/types/recursive_types.py +23 -0
  221. agenta/client/backend/types/reference.py +18 -5
  222. agenta/client/backend/types/reference_dto.py +4 -5
  223. agenta/client/backend/types/reference_request_model.py +4 -5
  224. agenta/client/backend/types/result.py +4 -6
  225. agenta/client/backend/types/root_dto.py +3 -5
  226. agenta/client/backend/types/scopes_response_model.py +4 -6
  227. agenta/client/backend/types/secret_dto.py +5 -7
  228. agenta/client/backend/types/secret_response_dto.py +11 -11
  229. agenta/client/backend/types/simple_evaluation_output.py +4 -6
  230. agenta/client/backend/types/span_dto.py +18 -14
  231. agenta/client/backend/types/span_dto_nodes_value.py +1 -1
  232. agenta/client/backend/types/standard_provider_dto.py +5 -7
  233. agenta/client/backend/types/standard_provider_settings_dto.py +3 -5
  234. agenta/client/backend/types/status_dto.py +4 -6
  235. agenta/client/backend/types/tags_request.py +30 -0
  236. agenta/client/backend/types/test_set_output_response.py +5 -7
  237. agenta/client/backend/types/test_set_simple_response.py +3 -5
  238. agenta/client/backend/types/testcase_response.py +33 -0
  239. agenta/client/backend/types/testset.py +46 -0
  240. agenta/client/backend/types/testset_request.py +20 -0
  241. agenta/client/backend/types/testset_response.py +21 -0
  242. agenta/client/backend/types/testsets_response.py +21 -0
  243. agenta/client/backend/types/time_dto.py +3 -5
  244. agenta/client/backend/types/timestamp.py +6 -0
  245. agenta/client/backend/types/tree_dto.py +4 -6
  246. agenta/client/backend/types/update_app_output.py +3 -5
  247. agenta/client/backend/types/user_request.py +3 -5
  248. agenta/client/backend/types/validation_error.py +4 -6
  249. agenta/client/backend/types/workflow_artifact.py +45 -0
  250. agenta/client/backend/types/workflow_data.py +20 -0
  251. agenta/client/backend/types/workflow_flags.py +21 -0
  252. agenta/client/backend/types/workflow_request.py +20 -0
  253. agenta/client/backend/types/workflow_response.py +21 -0
  254. agenta/client/backend/types/workflow_revision.py +57 -0
  255. agenta/client/backend/types/workflow_revision_request.py +20 -0
  256. agenta/client/backend/types/workflow_revision_response.py +21 -0
  257. agenta/client/backend/types/workflow_revisions_response.py +21 -0
  258. agenta/client/backend/types/workflow_variant.py +48 -0
  259. agenta/client/backend/types/workflow_variant_request.py +20 -0
  260. agenta/client/backend/types/workflow_variant_response.py +21 -0
  261. agenta/client/backend/types/workflow_variants_response.py +21 -0
  262. agenta/client/backend/types/workflows_response.py +21 -0
  263. agenta/client/backend/types/workspace.py +3 -5
  264. agenta/client/backend/types/workspace_member_response.py +4 -6
  265. agenta/client/backend/types/workspace_membership_request.py +5 -7
  266. agenta/client/backend/types/workspace_permission.py +5 -7
  267. agenta/client/backend/types/workspace_request.py +4 -6
  268. agenta/client/backend/types/workspace_response.py +4 -6
  269. agenta/client/backend/variants/__init__.py +2 -0
  270. agenta/client/backend/variants/client.py +306 -1651
  271. agenta/client/backend/variants/raw_client.py +2482 -0
  272. agenta/client/backend/variants/types/__init__.py +2 -0
  273. agenta/client/backend/variants/types/add_variant_from_base_and_config_response.py +1 -0
  274. agenta/client/backend/vault/__init__.py +2 -0
  275. agenta/client/backend/vault/client.py +69 -323
  276. agenta/client/backend/vault/raw_client.py +616 -0
  277. agenta/client/backend/workflows/__init__.py +3 -0
  278. agenta/client/backend/workflows/client.py +2398 -0
  279. agenta/client/backend/workflows/raw_client.py +3639 -0
  280. agenta/client/backend/workspace/__init__.py +2 -0
  281. agenta/client/backend/workspace/client.py +46 -147
  282. agenta/client/backend/workspace/raw_client.py +376 -0
  283. agenta/client/types.py +4 -0
  284. agenta/sdk/decorators/tracing.py +2 -4
  285. agenta/sdk/tracing/processors.py +26 -39
  286. agenta/sdk/types.py +28 -1
  287. {agenta-0.48.8.dist-info → agenta-0.48.10.dist-info}/METADATA +1 -1
  288. agenta-0.48.10.dist-info/RECORD +362 -0
  289. agenta/client/backend/containers/types/__init__.py +0 -5
  290. agenta/client/backend/containers/types/container_templates_response.py +0 -6
  291. agenta/client/backend/types/image.py +0 -25
  292. agenta/client/backend/types/provider_kind.py +0 -21
  293. agenta/client/backend/types/template.py +0 -23
  294. agenta/client/backend/types/template_image_info.py +0 -29
  295. agenta/client/backend/types/variant_action.py +0 -22
  296. agenta-0.48.8.dist-info/RECORD +0 -255
  297. {agenta-0.48.8.dist-info → agenta-0.48.10.dist-info}/WHEEL +0 -0
@@ -0,0 +1,8 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ from .fetch_trace_request_trace_id import FetchTraceRequestTraceId
6
+ from .remove_trace_request_trace_id import RemoveTraceRequestTraceId
7
+
8
+ __all__ = ["FetchTraceRequestTraceId", "RemoveTraceRequestTraceId"]
@@ -2,4 +2,4 @@
2
2
 
3
3
  import typing
4
4
 
5
- VariantActionEnum = typing.Union[typing.Literal["START", "STOP"], typing.Any]
5
+ FetchTraceRequestTraceId = typing.Union[str, int]
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ RemoveTraceRequestTraceId = typing.Union[str, int]
@@ -1,8 +1,17 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
+ # isort: skip_file
4
+
5
+ # Import Pydantic schema fix to prevent recursion errors
6
+ # try:
7
+ # from .__pydantic_init__ import SafeGenerateJsonSchema, disable_schema_generation
8
+ # except ImportError:
9
+ # pass # Fallback gracefully if the file doesn't exist
10
+
11
+
12
+ from .account_request import AccountRequest
3
13
  from .account_response import AccountResponse
4
14
  from .agenta_node_dto import AgentaNodeDto
5
- from .agenta_node_dto_nodes_value import AgentaNodeDtoNodesValue
6
15
  from .agenta_nodes_response import AgentaNodesResponse
7
16
  from .agenta_root_dto import AgentaRootDto
8
17
  from .agenta_roots_response import AgentaRootsResponse
@@ -11,10 +20,25 @@ from .agenta_trees_response import AgentaTreesResponse
11
20
  from .aggregated_result import AggregatedResult
12
21
  from .aggregated_result_evaluator_config import AggregatedResultEvaluatorConfig
13
22
  from .analytics_response import AnalyticsResponse
23
+ from .annotation import Annotation
24
+ from .annotation_create import AnnotationCreate
25
+ from .annotation_edit import AnnotationEdit
26
+ from .annotation_kind import AnnotationKind
27
+ from .annotation_link import AnnotationLink
28
+ from .annotation_link_response import AnnotationLinkResponse
29
+ from .annotation_query import AnnotationQuery
30
+ from .annotation_query_request import AnnotationQueryRequest
31
+ from .annotation_reference import AnnotationReference
32
+ from .annotation_references import AnnotationReferences
33
+ from .annotation_response import AnnotationResponse
34
+ from .annotation_source import AnnotationSource
35
+ from .annotations_response import AnnotationsResponse
14
36
  from .app import App
15
37
  from .app_variant_response import AppVariantResponse
16
38
  from .app_variant_revision import AppVariantRevision
39
+ from .artifact import Artifact
17
40
  from .base_output import BaseOutput
41
+ from .body_fetch_workflow_revision import BodyFetchWorkflowRevision
18
42
  from .body_import_testset import BodyImportTestset
19
43
  from .bucket_dto import BucketDto
20
44
  from .collect_status_response import CollectStatusResponse
@@ -29,7 +53,6 @@ from .custom_provider_kind import CustomProviderKind
29
53
  from .custom_provider_settings_dto import CustomProviderSettingsDto
30
54
  from .data import Data
31
55
  from .delete_evaluation import DeleteEvaluation
32
- from .docker_env_vars import DockerEnvVars
33
56
  from .environment_output import EnvironmentOutput
34
57
  from .environment_output_extended import EnvironmentOutputExtended
35
58
  from .environment_revision import EnvironmentRevision
@@ -43,40 +66,72 @@ from .evaluation_status_enum import EvaluationStatusEnum
43
66
  from .evaluation_type import EvaluationType
44
67
  from .evaluator import Evaluator
45
68
  from .evaluator_config import EvaluatorConfig
69
+ from .evaluator_flags import EvaluatorFlags
46
70
  from .evaluator_mapping_output_interface import EvaluatorMappingOutputInterface
47
71
  from .evaluator_output_interface import EvaluatorOutputInterface
72
+ from .evaluator_query import EvaluatorQuery
73
+ from .evaluator_query_request import EvaluatorQueryRequest
74
+ from .evaluator_request import EvaluatorRequest
75
+ from .evaluator_response import EvaluatorResponse
76
+ from .evaluators_response import EvaluatorsResponse
48
77
  from .exception_dto import ExceptionDto
78
+ from .focus import Focus
79
+ from .format import Format
80
+ from .full_json_input import FullJsonInput
81
+ from .full_json_output import FullJsonOutput
49
82
  from .get_config_response import GetConfigResponse
50
- from .header_dto import HeaderDto
83
+ from .header import Header
51
84
  from .http_validation_error import HttpValidationError
52
85
  from .human_evaluation import HumanEvaluation
53
86
  from .human_evaluation_scenario import HumanEvaluationScenario
54
87
  from .human_evaluation_scenario_input import HumanEvaluationScenarioInput
55
88
  from .human_evaluation_scenario_output import HumanEvaluationScenarioOutput
56
- from .image import Image
57
89
  from .invite_request import InviteRequest
58
90
  from .legacy_analytics_response import LegacyAnalyticsResponse
59
91
  from .legacy_data_point import LegacyDataPoint
92
+ from .legacy_evaluator import LegacyEvaluator
60
93
  from .legacy_scope_request import LegacyScopeRequest
61
94
  from .legacy_scopes_response import LegacyScopesResponse
95
+ from .legacy_subscription_request import LegacySubscriptionRequest
62
96
  from .legacy_user_request import LegacyUserRequest
63
97
  from .legacy_user_response import LegacyUserResponse
64
98
  from .lifecycle_dto import LifecycleDto
65
99
  from .link_dto import LinkDto
66
100
  from .list_api_keys_response import ListApiKeysResponse
67
101
  from .llm_run_rate_limit import LlmRunRateLimit
102
+ from .meta_request import MetaRequest
68
103
  from .metrics_dto import MetricsDto
69
104
  from .new_testset import NewTestset
70
105
  from .node_dto import NodeDto
71
106
  from .node_type import NodeType
72
107
  from .o_tel_context_dto import OTelContextDto
108
+ from .o_tel_event import OTelEvent
73
109
  from .o_tel_event_dto import OTelEventDto
74
110
  from .o_tel_extra_dto import OTelExtraDto
111
+ from .o_tel_flat_span import OTelFlatSpan
112
+ from .o_tel_flat_span_input_end_time import OTelFlatSpanInputEndTime
113
+ from .o_tel_flat_span_input_start_time import OTelFlatSpanInputStartTime
114
+ from .o_tel_flat_span_output_end_time import OTelFlatSpanOutputEndTime
115
+ from .o_tel_flat_span_output_start_time import OTelFlatSpanOutputStartTime
116
+ from .o_tel_link import OTelLink
75
117
  from .o_tel_link_dto import OTelLinkDto
118
+ from .o_tel_links_response import OTelLinksResponse
119
+ from .o_tel_span import OTelSpan
76
120
  from .o_tel_span_dto import OTelSpanDto
121
+ from .o_tel_span_input_end_time import OTelSpanInputEndTime
122
+ from .o_tel_span_input_spans_value import OTelSpanInputSpansValue
123
+ from .o_tel_span_input_start_time import OTelSpanInputStartTime
77
124
  from .o_tel_span_kind import OTelSpanKind
78
- from .o_tel_spans_response import OTelSpansResponse
125
+ from .o_tel_span_output_end_time import OTelSpanOutputEndTime
126
+ from .o_tel_span_output_spans_value import OTelSpanOutputSpansValue
127
+ from .o_tel_span_output_start_time import OTelSpanOutputStartTime
128
+ from .o_tel_spans_tree import OTelSpansTree
129
+ from .o_tel_spans_tree_input_spans_value import OTelSpansTreeInputSpansValue
130
+ from .o_tel_spans_tree_output_spans_value import OTelSpansTreeOutputSpansValue
79
131
  from .o_tel_status_code import OTelStatusCode
132
+ from .o_tel_tracing_data_response import OTelTracingDataResponse
133
+ from .o_tel_tracing_request import OTelTracingRequest
134
+ from .o_tel_tracing_response import OTelTracingResponse
80
135
  from .organization import Organization
81
136
  from .organization_details import OrganizationDetails
82
137
  from .organization_membership_request import OrganizationMembershipRequest
@@ -84,6 +139,7 @@ from .organization_output import OrganizationOutput
84
139
  from .organization_request import OrganizationRequest
85
140
  from .parent_dto import ParentDto
86
141
  from .permission import Permission
142
+ from .plan import Plan
87
143
  from .project_membership_request import ProjectMembershipRequest
88
144
  from .project_request import ProjectRequest
89
145
  from .project_scope import ProjectScope
@@ -100,40 +156,52 @@ from .secret_dto import SecretDto
100
156
  from .secret_kind import SecretKind
101
157
  from .secret_response_dto import SecretResponseDto
102
158
  from .simple_evaluation_output import SimpleEvaluationOutput
103
- from .span_dto import SpanDto
104
- from .span_dto_nodes_value import SpanDtoNodesValue
105
159
  from .standard_provider_dto import StandardProviderDto
106
160
  from .standard_provider_kind import StandardProviderKind
107
161
  from .standard_provider_settings_dto import StandardProviderSettingsDto
108
162
  from .status_code import StatusCode
109
163
  from .status_dto import StatusDto
110
- from .template import Template
111
- from .template_image_info import TemplateImageInfo
112
164
  from .test_set_output_response import TestSetOutputResponse
113
165
  from .test_set_simple_response import TestSetSimpleResponse
166
+ from .testcase_response import TestcaseResponse
167
+ from .testset import Testset
168
+ from .testset_request import TestsetRequest
169
+ from .testset_response import TestsetResponse
170
+ from .testsets_response import TestsetsResponse
114
171
  from .time_dto import TimeDto
172
+ from .timestamp import Timestamp
115
173
  from .tree_dto import TreeDto
116
174
  from .tree_type import TreeType
117
175
  from .update_app_output import UpdateAppOutput
118
- from .uri import Uri
119
176
  from .user_request import UserRequest
120
177
  from .validation_error import ValidationError
121
178
  from .validation_error_loc_item import ValidationErrorLocItem
122
- from .variant_action import VariantAction
123
- from .variant_action_enum import VariantActionEnum
179
+ from .workflow_artifact import WorkflowArtifact
180
+ from .workflow_data import WorkflowData
181
+ from .workflow_flags import WorkflowFlags
182
+ from .workflow_request import WorkflowRequest
183
+ from .workflow_response import WorkflowResponse
184
+ from .workflow_revision import WorkflowRevision
185
+ from .workflow_revision_request import WorkflowRevisionRequest
186
+ from .workflow_revision_response import WorkflowRevisionResponse
187
+ from .workflow_revisions_response import WorkflowRevisionsResponse
188
+ from .workflow_variant import WorkflowVariant
189
+ from .workflow_variant_request import WorkflowVariantRequest
190
+ from .workflow_variant_response import WorkflowVariantResponse
191
+ from .workflow_variants_response import WorkflowVariantsResponse
192
+ from .workflows_response import WorkflowsResponse
124
193
  from .workspace import Workspace
125
194
  from .workspace_member_response import WorkspaceMemberResponse
126
195
  from .workspace_membership_request import WorkspaceMembershipRequest
127
196
  from .workspace_permission import WorkspacePermission
128
197
  from .workspace_request import WorkspaceRequest
129
198
  from .workspace_response import WorkspaceResponse
130
- from .workspace_role_response import WorkspaceRoleResponse
131
199
  from .workspace_role import WorkspaceRole
132
200
 
133
201
  __all__ = [
202
+ "AccountRequest",
134
203
  "AccountResponse",
135
204
  "AgentaNodeDto",
136
- "AgentaNodeDtoNodesValue",
137
205
  "AgentaNodesResponse",
138
206
  "AgentaRootDto",
139
207
  "AgentaRootsResponse",
@@ -142,10 +210,25 @@ __all__ = [
142
210
  "AggregatedResult",
143
211
  "AggregatedResultEvaluatorConfig",
144
212
  "AnalyticsResponse",
213
+ "Annotation",
214
+ "AnnotationCreate",
215
+ "AnnotationEdit",
216
+ "AnnotationKind",
217
+ "AnnotationLink",
218
+ "AnnotationLinkResponse",
219
+ "AnnotationQuery",
220
+ "AnnotationQueryRequest",
221
+ "AnnotationReference",
222
+ "AnnotationReferences",
223
+ "AnnotationResponse",
224
+ "AnnotationSource",
225
+ "AnnotationsResponse",
145
226
  "App",
146
227
  "AppVariantResponse",
147
228
  "AppVariantRevision",
229
+ "Artifact",
148
230
  "BaseOutput",
231
+ "BodyFetchWorkflowRevision",
149
232
  "BodyImportTestset",
150
233
  "BucketDto",
151
234
  "CollectStatusResponse",
@@ -160,7 +243,6 @@ __all__ = [
160
243
  "CustomProviderSettingsDto",
161
244
  "Data",
162
245
  "DeleteEvaluation",
163
- "DockerEnvVars",
164
246
  "EnvironmentOutput",
165
247
  "EnvironmentOutputExtended",
166
248
  "EnvironmentRevision",
@@ -174,40 +256,72 @@ __all__ = [
174
256
  "EvaluationType",
175
257
  "Evaluator",
176
258
  "EvaluatorConfig",
259
+ "EvaluatorFlags",
177
260
  "EvaluatorMappingOutputInterface",
178
261
  "EvaluatorOutputInterface",
262
+ "EvaluatorQuery",
263
+ "EvaluatorQueryRequest",
264
+ "EvaluatorRequest",
265
+ "EvaluatorResponse",
266
+ "EvaluatorsResponse",
179
267
  "ExceptionDto",
268
+ "Focus",
269
+ "Format",
270
+ "FullJsonInput",
271
+ "FullJsonOutput",
180
272
  "GetConfigResponse",
181
- "HeaderDto",
273
+ "Header",
182
274
  "HttpValidationError",
183
275
  "HumanEvaluation",
184
276
  "HumanEvaluationScenario",
185
277
  "HumanEvaluationScenarioInput",
186
278
  "HumanEvaluationScenarioOutput",
187
- "Image",
188
279
  "InviteRequest",
189
280
  "LegacyAnalyticsResponse",
190
281
  "LegacyDataPoint",
282
+ "LegacyEvaluator",
191
283
  "LegacyScopeRequest",
192
284
  "LegacyScopesResponse",
285
+ "LegacySubscriptionRequest",
193
286
  "LegacyUserRequest",
194
287
  "LegacyUserResponse",
195
288
  "LifecycleDto",
196
289
  "LinkDto",
197
290
  "ListApiKeysResponse",
198
291
  "LlmRunRateLimit",
292
+ "MetaRequest",
199
293
  "MetricsDto",
200
294
  "NewTestset",
201
295
  "NodeDto",
202
296
  "NodeType",
203
297
  "OTelContextDto",
298
+ "OTelEvent",
204
299
  "OTelEventDto",
205
300
  "OTelExtraDto",
301
+ "OTelFlatSpan",
302
+ "OTelFlatSpanInputEndTime",
303
+ "OTelFlatSpanInputStartTime",
304
+ "OTelFlatSpanOutputEndTime",
305
+ "OTelFlatSpanOutputStartTime",
306
+ "OTelLink",
206
307
  "OTelLinkDto",
308
+ "OTelLinksResponse",
309
+ "OTelSpan",
207
310
  "OTelSpanDto",
311
+ "OTelSpanInputEndTime",
312
+ "OTelSpanInputSpansValue",
313
+ "OTelSpanInputStartTime",
208
314
  "OTelSpanKind",
209
- "OTelSpansResponse",
315
+ "OTelSpanOutputEndTime",
316
+ "OTelSpanOutputSpansValue",
317
+ "OTelSpanOutputStartTime",
318
+ "OTelSpansTree",
319
+ "OTelSpansTreeInputSpansValue",
320
+ "OTelSpansTreeOutputSpansValue",
210
321
  "OTelStatusCode",
322
+ "OTelTracingDataResponse",
323
+ "OTelTracingRequest",
324
+ "OTelTracingResponse",
211
325
  "Organization",
212
326
  "OrganizationDetails",
213
327
  "OrganizationMembershipRequest",
@@ -215,6 +329,7 @@ __all__ = [
215
329
  "OrganizationRequest",
216
330
  "ParentDto",
217
331
  "Permission",
332
+ "Plan",
218
333
  "ProjectMembershipRequest",
219
334
  "ProjectRequest",
220
335
  "ProjectScope",
@@ -231,33 +346,45 @@ __all__ = [
231
346
  "SecretKind",
232
347
  "SecretResponseDto",
233
348
  "SimpleEvaluationOutput",
234
- "SpanDto",
235
- "SpanDtoNodesValue",
236
349
  "StandardProviderDto",
237
350
  "StandardProviderKind",
238
351
  "StandardProviderSettingsDto",
239
352
  "StatusCode",
240
353
  "StatusDto",
241
- "Template",
242
- "TemplateImageInfo",
243
354
  "TestSetOutputResponse",
244
355
  "TestSetSimpleResponse",
356
+ "TestcaseResponse",
357
+ "Testset",
358
+ "TestsetRequest",
359
+ "TestsetResponse",
360
+ "TestsetsResponse",
245
361
  "TimeDto",
362
+ "Timestamp",
246
363
  "TreeDto",
247
364
  "TreeType",
248
365
  "UpdateAppOutput",
249
- "Uri",
250
366
  "UserRequest",
251
367
  "ValidationError",
252
368
  "ValidationErrorLocItem",
253
- "VariantAction",
254
- "VariantActionEnum",
369
+ "WorkflowArtifact",
370
+ "WorkflowData",
371
+ "WorkflowFlags",
372
+ "WorkflowRequest",
373
+ "WorkflowResponse",
374
+ "WorkflowRevision",
375
+ "WorkflowRevisionRequest",
376
+ "WorkflowRevisionResponse",
377
+ "WorkflowRevisionsResponse",
378
+ "WorkflowVariant",
379
+ "WorkflowVariantRequest",
380
+ "WorkflowVariantResponse",
381
+ "WorkflowVariantsResponse",
382
+ "WorkflowsResponse",
255
383
  "Workspace",
256
384
  "WorkspaceMemberResponse",
257
385
  "WorkspaceMembershipRequest",
258
386
  "WorkspacePermission",
259
387
  "WorkspaceRequest",
260
388
  "WorkspaceResponse",
261
- "WorkspaceRoleResponse",
262
389
  "WorkspaceRole",
263
390
  ]
@@ -0,0 +1,24 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ import pydantic
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7
+ from .legacy_scope_request import LegacyScopeRequest
8
+ from .legacy_subscription_request import LegacySubscriptionRequest
9
+ from .legacy_user_request import LegacyUserRequest
10
+
11
+
12
+ class AccountRequest(UniversalBaseModel):
13
+ user: typing.Optional[LegacyUserRequest] = None
14
+ scope: typing.Optional[LegacyScopeRequest] = None
15
+ subscription: typing.Optional[LegacySubscriptionRequest] = None
16
+
17
+ if IS_PYDANTIC_V2:
18
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
19
+ else:
20
+
21
+ class Config:
22
+ frozen = True
23
+ smart_union = True
24
+ extra = pydantic.Extra.allow
@@ -1,11 +1,11 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
3
  import typing
5
- from .legacy_user_response import LegacyUserResponse
6
- from .legacy_scopes_response import LegacyScopesResponse
7
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
4
+
8
5
  import pydantic
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7
+ from .legacy_scopes_response import LegacyScopesResponse
8
+ from .legacy_user_response import LegacyUserResponse
9
9
 
10
10
 
11
11
  class AccountResponse(UniversalBaseModel):
@@ -13,9 +13,7 @@ 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(
17
- extra="allow", frozen=True
18
- ) # type: ignore # Pydantic v2
16
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
19
17
  else:
20
18
 
21
19
  class Config:
@@ -1,23 +1,25 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
3
  import typing
4
+
5
+ import pydantic
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7
+ from .agenta_node_dto_nodes_value import AgentaNodeDtoNodesValue
8
+ from .exception_dto import ExceptionDto
5
9
  from .lifecycle_dto import LifecycleDto
6
- from .root_dto import RootDto
7
- from .tree_dto import TreeDto
10
+ from .link_dto import LinkDto
8
11
  from .node_dto import NodeDto
12
+ from .o_tel_extra_dto import OTelExtraDto
9
13
  from .parent_dto import ParentDto
10
- from .time_dto import TimeDto
14
+ from .root_dto import RootDto
11
15
  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
16
+ from .time_dto import TimeDto
17
+ from .tree_dto import TreeDto
18
18
 
19
19
 
20
20
  class AgentaNodeDto(UniversalBaseModel):
21
+ trace_id: str
22
+ span_id: str
21
23
  lifecycle: typing.Optional[LifecycleDto] = None
22
24
  root: RootDto
23
25
  tree: TreeDto
@@ -37,9 +39,7 @@ class AgentaNodeDto(UniversalBaseModel):
37
39
  ] = None
38
40
 
39
41
  if IS_PYDANTIC_V2:
40
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
41
- extra="allow", frozen=True
42
- ) # type: ignore # Pydantic v2
42
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
43
43
  else:
44
44
 
45
45
  class Config:
@@ -1,6 +1,7 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  import typing
4
+
4
5
  from .span_dto import SpanDto
5
6
 
6
7
  AgentaNodeDtoNodesValue = typing.Union[SpanDto, typing.List[SpanDto]]
@@ -1,25 +1,31 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- from .span_dto import SpanDto
5
3
  import typing
6
- from .agenta_node_dto import AgentaNodeDto
7
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
4
+
8
5
  import pydantic
6
+ from ..core.pydantic_utilities import (
7
+ IS_PYDANTIC_V2,
8
+ UniversalBaseModel,
9
+ update_forward_refs,
10
+ )
11
+ from .agenta_node_dto import AgentaNodeDto
9
12
 
10
13
 
11
14
  class AgentaNodesResponse(UniversalBaseModel):
12
- nodes: typing.List[AgentaNodeDto]
15
+ nodes: typing.Optional[typing.List[AgentaNodeDto]] = None
13
16
  version: str
14
17
  count: typing.Optional[int] = None
15
18
 
16
19
  if IS_PYDANTIC_V2:
17
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
18
- extra="allow", frozen=True
19
- ) # type: ignore # Pydantic v2
20
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
20
21
  else:
21
22
 
22
23
  class Config:
23
24
  frozen = True
24
25
  smart_union = True
25
26
  extra = pydantic.Extra.allow
27
+
28
+
29
+ from .span_dto import SpanDto # noqa: E402, F401, I001
30
+
31
+ update_forward_refs(AgentaNodesResponse)
@@ -1,12 +1,17 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- from .span_dto import SpanDto
5
- from .root_dto import RootDto
3
+ from __future__ import annotations
4
+
6
5
  import typing
7
- from .agenta_tree_dto import AgentaTreeDto
8
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+
9
7
  import pydantic
8
+ from ..core.pydantic_utilities import (
9
+ IS_PYDANTIC_V2,
10
+ UniversalBaseModel,
11
+ update_forward_refs,
12
+ )
13
+ from .agenta_tree_dto import AgentaTreeDto
14
+ from .root_dto import RootDto
10
15
 
11
16
 
12
17
  class AgentaRootDto(UniversalBaseModel):
@@ -14,12 +19,15 @@ class AgentaRootDto(UniversalBaseModel):
14
19
  trees: typing.List[AgentaTreeDto]
15
20
 
16
21
  if IS_PYDANTIC_V2:
17
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
18
- extra="allow", frozen=True
19
- ) # type: ignore # Pydantic v2
22
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
20
23
  else:
21
24
 
22
25
  class Config:
23
26
  frozen = True
24
27
  smart_union = True
25
28
  extra = pydantic.Extra.allow
29
+
30
+
31
+ from .span_dto import SpanDto # noqa: E402, F401, I001
32
+
33
+ update_forward_refs(AgentaRootDto)
@@ -1,25 +1,33 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- from .span_dto import SpanDto
3
+ from __future__ import annotations
4
+
5
5
  import typing
6
- from .agenta_root_dto import AgentaRootDto
7
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+
8
7
  import pydantic
8
+ from ..core.pydantic_utilities import (
9
+ IS_PYDANTIC_V2,
10
+ UniversalBaseModel,
11
+ update_forward_refs,
12
+ )
13
+ from .agenta_root_dto import AgentaRootDto
9
14
 
10
15
 
11
16
  class AgentaRootsResponse(UniversalBaseModel):
12
- roots: typing.List[AgentaRootDto]
17
+ roots: typing.Optional[typing.List[AgentaRootDto]] = None
13
18
  version: str
14
19
  count: typing.Optional[int] = None
15
20
 
16
21
  if IS_PYDANTIC_V2:
17
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
18
- extra="allow", frozen=True
19
- ) # type: ignore # Pydantic v2
22
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
20
23
  else:
21
24
 
22
25
  class Config:
23
26
  frozen = True
24
27
  smart_union = True
25
28
  extra = pydantic.Extra.allow
29
+
30
+
31
+ from .span_dto import SpanDto # noqa: E402, F401, I001
32
+
33
+ update_forward_refs(AgentaRootsResponse)
@@ -1,12 +1,17 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- from .span_dto import SpanDto
5
- from .tree_dto import TreeDto
3
+ from __future__ import annotations
4
+
6
5
  import typing
7
- from .agenta_node_dto import AgentaNodeDto
8
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+
9
7
  import pydantic
8
+ from ..core.pydantic_utilities import (
9
+ IS_PYDANTIC_V2,
10
+ UniversalBaseModel,
11
+ update_forward_refs,
12
+ )
13
+ from .agenta_node_dto import AgentaNodeDto
14
+ from .tree_dto import TreeDto
10
15
 
11
16
 
12
17
  class AgentaTreeDto(UniversalBaseModel):
@@ -14,12 +19,15 @@ class AgentaTreeDto(UniversalBaseModel):
14
19
  nodes: typing.List[AgentaNodeDto]
15
20
 
16
21
  if IS_PYDANTIC_V2:
17
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
18
- extra="allow", frozen=True
19
- ) # type: ignore # Pydantic v2
22
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
20
23
  else:
21
24
 
22
25
  class Config:
23
26
  frozen = True
24
27
  smart_union = True
25
28
  extra = pydantic.Extra.allow
29
+
30
+
31
+ from .span_dto import SpanDto # noqa: E402, F401, I001
32
+
33
+ update_forward_refs(AgentaTreeDto)