agenta 0.36.4__py3-none-any.whl → 0.37.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.

Potentially problematic release.


This version of agenta might be problematic. Click here for more details.

Files changed (209) hide show
  1. agenta/__init__.py +1 -2
  2. agenta/client/__init__.py +6 -10
  3. agenta/client/{admin → backend/admin}/client.py +2 -0
  4. agenta/client/backend/api_keys/client.py +531 -0
  5. agenta/client/{apps → backend/apps}/client.py +0 -222
  6. agenta/client/{containers → backend/containers}/client.py +10 -70
  7. agenta/client/{core → backend/core}/http_client.py +6 -6
  8. agenta/client/{core → backend/core}/pydantic_utilities.py +2 -2
  9. agenta/client/{environments → backend/environments}/client.py +0 -2
  10. agenta/client/{human_evaluations → backend/human_evaluations}/client.py +0 -2
  11. agenta/client/{observability → backend/observability}/client.py +98 -0
  12. agenta/client/backend/organization/client.py +839 -0
  13. agenta/client/backend/testsets/__init__.py +1 -0
  14. agenta/client/{types → backend/types}/__init__.py +22 -6
  15. agenta/client/{types → backend/types}/agenta_nodes_response.py +0 -5
  16. agenta/client/{types → backend/types}/agenta_root_dto.py +0 -5
  17. agenta/client/{types → backend/types}/agenta_roots_response.py +0 -5
  18. agenta/client/{types → backend/types}/agenta_tree_dto.py +0 -5
  19. agenta/client/{types → backend/types}/agenta_trees_response.py +0 -5
  20. agenta/client/backend/types/custom_model_settings_dto.py +22 -0
  21. agenta/client/backend/types/custom_provider_dto.py +29 -0
  22. agenta/client/backend/types/custom_provider_kind.py +26 -0
  23. agenta/client/backend/types/custom_provider_settings_dto.py +24 -0
  24. agenta/client/backend/types/data.py +7 -0
  25. agenta/client/{types → backend/types}/organization.py +1 -4
  26. agenta/client/backend/types/organization_details.py +29 -0
  27. agenta/client/{types → backend/types}/organization_membership_request.py +3 -2
  28. agenta/client/{types → backend/types}/permission.py +1 -0
  29. agenta/client/backend/types/provider_key_dto.py +21 -0
  30. agenta/client/backend/types/provider_kind.py +21 -0
  31. agenta/client/backend/types/score.py +3 -0
  32. agenta/client/{types → backend/types}/secret_dto.py +3 -3
  33. agenta/client/backend/types/secret_kind.py +5 -0
  34. agenta/client/backend/types/standard_provider_dto.py +24 -0
  35. agenta/client/backend/types/standard_provider_kind.py +21 -0
  36. agenta/client/backend/types/standard_provider_settings_dto.py +21 -0
  37. agenta/client/backend/types/workspace.py +24 -0
  38. agenta/client/{variants → backend/variants}/client.py +18 -24
  39. agenta/client/backend/vault/__init__.py +1 -0
  40. agenta/client/{vault → backend/vault}/client.py +26 -8
  41. agenta/client/backend/workspace/__init__.py +1 -0
  42. agenta/client/backend/workspace/client.py +405 -0
  43. agenta/client/client.py +46 -46
  44. agenta/client/types/provider_key_dto.py~feat_model-registry +21 -0
  45. agenta/client/types/provider_kind.py~feat_model-registry +21 -0
  46. agenta/sdk/__init__.py +1 -1
  47. agenta/sdk/managers/secrets.py +175 -11
  48. agenta/sdk/managers/shared.py +3 -3
  49. agenta/sdk/middleware/vault.py +29 -37
  50. agenta/sdk/types.py +4 -7
  51. {agenta-0.36.4.dist-info → agenta-0.37.0.dist-info}/METADATA +2 -6
  52. agenta-0.37.0.dist-info/RECORD +255 -0
  53. agenta/client/types/score.py +0 -5
  54. agenta/client/types/secret_kind.py +0 -5
  55. agenta/sdk/client.py +0 -56
  56. agenta-0.36.4.dist-info/RECORD +0 -236
  57. /agenta/client/{access_control → backend/access_control}/__init__.py +0 -0
  58. /agenta/client/{access_control → backend/access_control}/client.py +0 -0
  59. /agenta/client/{admin → backend/admin}/__init__.py +0 -0
  60. /agenta/client/{apps → backend/api_keys}/__init__.py +0 -0
  61. /agenta/client/{bases → backend/apps}/__init__.py +0 -0
  62. /agenta/client/{configs → backend/bases}/__init__.py +0 -0
  63. /agenta/client/{bases → backend/bases}/client.py +0 -0
  64. /agenta/client/{environments → backend/configs}/__init__.py +0 -0
  65. /agenta/client/{configs → backend/configs}/client.py +0 -0
  66. /agenta/client/{containers → backend/containers}/__init__.py +0 -0
  67. /agenta/client/{containers → backend/containers}/types/__init__.py +0 -0
  68. /agenta/client/{containers → backend/containers}/types/container_templates_response.py +0 -0
  69. /agenta/client/{core → backend/core}/__init__.py +0 -0
  70. /agenta/client/{core → backend/core}/api_error.py +0 -0
  71. /agenta/client/{core → backend/core}/client_wrapper.py +0 -0
  72. /agenta/client/{core → backend/core}/datetime_utils.py +0 -0
  73. /agenta/client/{core → backend/core}/file.py +0 -0
  74. /agenta/client/{core → backend/core}/jsonable_encoder.py +0 -0
  75. /agenta/client/{core → backend/core}/query_encoder.py +0 -0
  76. /agenta/client/{core → backend/core}/remove_none_from_dict.py +0 -0
  77. /agenta/client/{core → backend/core}/request_options.py +0 -0
  78. /agenta/client/{core → backend/core}/serialization.py +0 -0
  79. /agenta/client/{evaluations → backend/environments}/__init__.py +0 -0
  80. /agenta/client/{errors → backend/errors}/__init__.py +0 -0
  81. /agenta/client/{errors → backend/errors}/unprocessable_entity_error.py +0 -0
  82. /agenta/client/{evaluators → backend/evaluations}/__init__.py +0 -0
  83. /agenta/client/{evaluations → backend/evaluations}/client.py +0 -0
  84. /agenta/client/{human_evaluations → backend/evaluators}/__init__.py +0 -0
  85. /agenta/client/{evaluators → backend/evaluators}/client.py +0 -0
  86. /agenta/client/{scopes → backend/human_evaluations}/__init__.py +0 -0
  87. /agenta/client/{observability → backend/observability}/__init__.py +0 -0
  88. /agenta/client/{observability → backend/observability}/types/__init__.py +0 -0
  89. /agenta/client/{observability → backend/observability}/types/format.py +0 -0
  90. /agenta/client/{observability → backend/observability}/types/query_analytics_response.py +0 -0
  91. /agenta/client/{observability → backend/observability}/types/query_traces_response.py +0 -0
  92. /agenta/client/{testsets → backend/organization}/__init__.py +0 -0
  93. /agenta/client/{vault → backend/scopes}/__init__.py +0 -0
  94. /agenta/client/{scopes → backend/scopes}/client.py +0 -0
  95. /agenta/client/{testsets → backend/testsets}/client.py +0 -0
  96. /agenta/client/{types → backend/types}/account_response.py +0 -0
  97. /agenta/client/{types → backend/types}/agenta_node_dto.py +0 -0
  98. /agenta/client/{types → backend/types}/agenta_node_dto_nodes_value.py +0 -0
  99. /agenta/client/{types → backend/types}/aggregated_result.py +0 -0
  100. /agenta/client/{types → backend/types}/aggregated_result_evaluator_config.py +0 -0
  101. /agenta/client/{types → backend/types}/analytics_response.py +0 -0
  102. /agenta/client/{types → backend/types}/app.py +0 -0
  103. /agenta/client/{types → backend/types}/app_variant_response.py +0 -0
  104. /agenta/client/{types → backend/types}/app_variant_revision.py +0 -0
  105. /agenta/client/{types → backend/types}/base_output.py +0 -0
  106. /agenta/client/{types → backend/types}/body_import_testset.py +0 -0
  107. /agenta/client/{types → backend/types}/bucket_dto.py +0 -0
  108. /agenta/client/{types → backend/types}/collect_status_response.py +0 -0
  109. /agenta/client/{types → backend/types}/config_db.py +0 -0
  110. /agenta/client/{types → backend/types}/config_dto.py +0 -0
  111. /agenta/client/{types → backend/types}/config_response_model.py +0 -0
  112. /agenta/client/{types → backend/types}/correct_answer.py +0 -0
  113. /agenta/client/{types → backend/types}/create_app_output.py +0 -0
  114. /agenta/client/{types → backend/types}/delete_evaluation.py +0 -0
  115. /agenta/client/{types → backend/types}/docker_env_vars.py +0 -0
  116. /agenta/client/{types → backend/types}/environment_output.py +0 -0
  117. /agenta/client/{types → backend/types}/environment_output_extended.py +0 -0
  118. /agenta/client/{types → backend/types}/environment_revision.py +0 -0
  119. /agenta/client/{types → backend/types}/error.py +0 -0
  120. /agenta/client/{types → backend/types}/evaluation.py +0 -0
  121. /agenta/client/{types → backend/types}/evaluation_scenario.py +0 -0
  122. /agenta/client/{types → backend/types}/evaluation_scenario_input.py +0 -0
  123. /agenta/client/{types → backend/types}/evaluation_scenario_output.py +0 -0
  124. /agenta/client/{types → backend/types}/evaluation_scenario_result.py +0 -0
  125. /agenta/client/{types → backend/types}/evaluation_status_enum.py +0 -0
  126. /agenta/client/{types → backend/types}/evaluation_type.py +0 -0
  127. /agenta/client/{types → backend/types}/evaluator.py +0 -0
  128. /agenta/client/{types → backend/types}/evaluator_config.py +0 -0
  129. /agenta/client/{types → backend/types}/evaluator_mapping_output_interface.py +0 -0
  130. /agenta/client/{types → backend/types}/evaluator_output_interface.py +0 -0
  131. /agenta/client/{types → backend/types}/exception_dto.py +0 -0
  132. /agenta/client/{types → backend/types}/get_config_response.py +0 -0
  133. /agenta/client/{types → backend/types}/header_dto.py +0 -0
  134. /agenta/client/{types → backend/types}/http_validation_error.py +0 -0
  135. /agenta/client/{types → backend/types}/human_evaluation.py +0 -0
  136. /agenta/client/{types → backend/types}/human_evaluation_scenario.py +0 -0
  137. /agenta/client/{types → backend/types}/human_evaluation_scenario_input.py +0 -0
  138. /agenta/client/{types → backend/types}/human_evaluation_scenario_output.py +0 -0
  139. /agenta/client/{types → backend/types}/image.py +0 -0
  140. /agenta/client/{types → backend/types}/invite_request.py +0 -0
  141. /agenta/client/{types → backend/types}/legacy_analytics_response.py +0 -0
  142. /agenta/client/{types → backend/types}/legacy_data_point.py +0 -0
  143. /agenta/client/{types → backend/types}/legacy_scope_request.py +0 -0
  144. /agenta/client/{types → backend/types}/legacy_scopes_response.py +0 -0
  145. /agenta/client/{types → backend/types}/legacy_user_request.py +0 -0
  146. /agenta/client/{types → backend/types}/legacy_user_response.py +0 -0
  147. /agenta/client/{types → backend/types}/lifecycle_dto.py +0 -0
  148. /agenta/client/{types → backend/types}/link_dto.py +0 -0
  149. /agenta/client/{types → backend/types}/list_api_keys_response.py +0 -0
  150. /agenta/client/{types → backend/types}/llm_run_rate_limit.py +0 -0
  151. /agenta/client/{types → backend/types}/metrics_dto.py +0 -0
  152. /agenta/client/{types → backend/types}/new_testset.py +0 -0
  153. /agenta/client/{types → backend/types}/node_dto.py +0 -0
  154. /agenta/client/{types → backend/types}/node_type.py +0 -0
  155. /agenta/client/{types → backend/types}/o_tel_context_dto.py +0 -0
  156. /agenta/client/{types → backend/types}/o_tel_event_dto.py +0 -0
  157. /agenta/client/{types → backend/types}/o_tel_extra_dto.py +0 -0
  158. /agenta/client/{types → backend/types}/o_tel_link_dto.py +0 -0
  159. /agenta/client/{types → backend/types}/o_tel_span_dto.py +0 -0
  160. /agenta/client/{types → backend/types}/o_tel_span_kind.py +0 -0
  161. /agenta/client/{types → backend/types}/o_tel_spans_response.py +0 -0
  162. /agenta/client/{types → backend/types}/o_tel_status_code.py +0 -0
  163. /agenta/client/{types → backend/types}/organization_output.py +0 -0
  164. /agenta/client/{types → backend/types}/organization_request.py +0 -0
  165. /agenta/client/{types → backend/types}/parent_dto.py +0 -0
  166. /agenta/client/{types → backend/types}/project_membership_request.py +0 -0
  167. /agenta/client/{types → backend/types}/project_request.py +0 -0
  168. /agenta/client/{types → backend/types}/project_scope.py +0 -0
  169. /agenta/client/{types → backend/types}/projects_response.py +0 -0
  170. /agenta/client/{types → backend/types}/reference.py +0 -0
  171. /agenta/client/{types → backend/types}/reference_dto.py +0 -0
  172. /agenta/client/{types → backend/types}/reference_request_model.py +0 -0
  173. /agenta/client/{types → backend/types}/result.py +0 -0
  174. /agenta/client/{types → backend/types}/role.py +0 -0
  175. /agenta/client/{types → backend/types}/root_dto.py +0 -0
  176. /agenta/client/{types → backend/types}/scopes_response_model.py +0 -0
  177. /agenta/client/{types → backend/types}/secret_response_dto.py +0 -0
  178. /agenta/client/{types → backend/types}/simple_evaluation_output.py +0 -0
  179. /agenta/client/{types → backend/types}/span_dto.py +0 -0
  180. /agenta/client/{types → backend/types}/span_dto_nodes_value.py +0 -0
  181. /agenta/client/{types → backend/types}/status_code.py +0 -0
  182. /agenta/client/{types → backend/types}/status_dto.py +0 -0
  183. /agenta/client/{types → backend/types}/template.py +0 -0
  184. /agenta/client/{types → backend/types}/template_image_info.py +0 -0
  185. /agenta/client/{types → backend/types}/test_set_output_response.py +0 -0
  186. /agenta/client/{types → backend/types}/test_set_simple_response.py +0 -0
  187. /agenta/client/{types → backend/types}/time_dto.py +0 -0
  188. /agenta/client/{types → backend/types}/tree_dto.py +0 -0
  189. /agenta/client/{types → backend/types}/tree_type.py +0 -0
  190. /agenta/client/{types → backend/types}/update_app_output.py +0 -0
  191. /agenta/client/{types → backend/types}/uri.py +0 -0
  192. /agenta/client/{types → backend/types}/user_request.py +0 -0
  193. /agenta/client/{types → backend/types}/validation_error.py +0 -0
  194. /agenta/client/{types → backend/types}/validation_error_loc_item.py +0 -0
  195. /agenta/client/{types → backend/types}/variant_action.py +0 -0
  196. /agenta/client/{types → backend/types}/variant_action_enum.py +0 -0
  197. /agenta/client/{types → backend/types}/workspace_member_response.py +0 -0
  198. /agenta/client/{types → backend/types}/workspace_membership_request.py +0 -0
  199. /agenta/client/{types → backend/types}/workspace_permission.py +0 -0
  200. /agenta/client/{types → backend/types}/workspace_request.py +0 -0
  201. /agenta/client/{types → backend/types}/workspace_response.py +0 -0
  202. /agenta/client/{types → backend/types}/workspace_role.py +0 -0
  203. /agenta/client/{types → backend/types}/workspace_role_response.py +0 -0
  204. /agenta/client/{variants → backend/variants}/__init__.py +0 -0
  205. /agenta/client/{variants → backend/variants}/types/__init__.py +0 -0
  206. /agenta/client/{variants → backend/variants}/types/add_variant_from_base_and_config_response.py +0 -0
  207. /agenta/client/types/{provider_key_dto.py → provider_key_dto.py~HEAD} +0 -0
  208. /agenta/client/types/{provider_kind.py → provider_kind.py~HEAD} +0 -0
  209. {agenta-0.36.4.dist-info → agenta-0.37.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1 @@
1
+ # This file was auto-generated by Fern from our API Definition.
@@ -23,6 +23,11 @@ from .config_dto import ConfigDto
23
23
  from .config_response_model import ConfigResponseModel
24
24
  from .correct_answer import CorrectAnswer
25
25
  from .create_app_output import CreateAppOutput
26
+ from .custom_model_settings_dto import CustomModelSettingsDto
27
+ from .custom_provider_dto import CustomProviderDto
28
+ from .custom_provider_kind import CustomProviderKind
29
+ from .custom_provider_settings_dto import CustomProviderSettingsDto
30
+ from .data import Data
26
31
  from .delete_evaluation import DeleteEvaluation
27
32
  from .docker_env_vars import DockerEnvVars
28
33
  from .environment_output import EnvironmentOutput
@@ -73,6 +78,7 @@ from .o_tel_span_kind import OTelSpanKind
73
78
  from .o_tel_spans_response import OTelSpansResponse
74
79
  from .o_tel_status_code import OTelStatusCode
75
80
  from .organization import Organization
81
+ from .organization_details import OrganizationDetails
76
82
  from .organization_membership_request import OrganizationMembershipRequest
77
83
  from .organization_output import OrganizationOutput
78
84
  from .organization_request import OrganizationRequest
@@ -82,8 +88,6 @@ from .project_membership_request import ProjectMembershipRequest
82
88
  from .project_request import ProjectRequest
83
89
  from .project_scope import ProjectScope
84
90
  from .projects_response import ProjectsResponse
85
- from .provider_key_dto import ProviderKeyDto
86
- from .provider_kind import ProviderKind
87
91
  from .reference import Reference
88
92
  from .reference_dto import ReferenceDto
89
93
  from .reference_request_model import ReferenceRequestModel
@@ -98,6 +102,9 @@ from .secret_response_dto import SecretResponseDto
98
102
  from .simple_evaluation_output import SimpleEvaluationOutput
99
103
  from .span_dto import SpanDto
100
104
  from .span_dto_nodes_value import SpanDtoNodesValue
105
+ from .standard_provider_dto import StandardProviderDto
106
+ from .standard_provider_kind import StandardProviderKind
107
+ from .standard_provider_settings_dto import StandardProviderSettingsDto
101
108
  from .status_code import StatusCode
102
109
  from .status_dto import StatusDto
103
110
  from .template import Template
@@ -114,13 +121,14 @@ from .validation_error import ValidationError
114
121
  from .validation_error_loc_item import ValidationErrorLocItem
115
122
  from .variant_action import VariantAction
116
123
  from .variant_action_enum import VariantActionEnum
124
+ from .workspace import Workspace
117
125
  from .workspace_member_response import WorkspaceMemberResponse
118
126
  from .workspace_membership_request import WorkspaceMembershipRequest
119
127
  from .workspace_permission import WorkspacePermission
120
128
  from .workspace_request import WorkspaceRequest
121
129
  from .workspace_response import WorkspaceResponse
122
- from .workspace_role import WorkspaceRole
123
130
  from .workspace_role_response import WorkspaceRoleResponse
131
+ from .workspace_role import WorkspaceRole
124
132
 
125
133
  __all__ = [
126
134
  "AccountResponse",
@@ -146,6 +154,11 @@ __all__ = [
146
154
  "ConfigResponseModel",
147
155
  "CorrectAnswer",
148
156
  "CreateAppOutput",
157
+ "CustomModelSettingsDto",
158
+ "CustomProviderDto",
159
+ "CustomProviderKind",
160
+ "CustomProviderSettingsDto",
161
+ "Data",
149
162
  "DeleteEvaluation",
150
163
  "DockerEnvVars",
151
164
  "EnvironmentOutput",
@@ -196,6 +209,7 @@ __all__ = [
196
209
  "OTelSpansResponse",
197
210
  "OTelStatusCode",
198
211
  "Organization",
212
+ "OrganizationDetails",
199
213
  "OrganizationMembershipRequest",
200
214
  "OrganizationOutput",
201
215
  "OrganizationRequest",
@@ -205,8 +219,6 @@ __all__ = [
205
219
  "ProjectRequest",
206
220
  "ProjectScope",
207
221
  "ProjectsResponse",
208
- "ProviderKeyDto",
209
- "ProviderKind",
210
222
  "Reference",
211
223
  "ReferenceDto",
212
224
  "ReferenceRequestModel",
@@ -221,6 +233,9 @@ __all__ = [
221
233
  "SimpleEvaluationOutput",
222
234
  "SpanDto",
223
235
  "SpanDtoNodesValue",
236
+ "StandardProviderDto",
237
+ "StandardProviderKind",
238
+ "StandardProviderSettingsDto",
224
239
  "StatusCode",
225
240
  "StatusDto",
226
241
  "Template",
@@ -237,11 +252,12 @@ __all__ = [
237
252
  "ValidationErrorLocItem",
238
253
  "VariantAction",
239
254
  "VariantActionEnum",
255
+ "Workspace",
240
256
  "WorkspaceMemberResponse",
241
257
  "WorkspaceMembershipRequest",
242
258
  "WorkspacePermission",
243
259
  "WorkspaceRequest",
244
260
  "WorkspaceResponse",
245
- "WorkspaceRole",
246
261
  "WorkspaceRoleResponse",
262
+ "WorkspaceRole",
247
263
  ]
@@ -1,13 +1,11 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from __future__ import annotations
4
3
  from ..core.pydantic_utilities import UniversalBaseModel
5
4
  from .span_dto import SpanDto
6
5
  import typing
7
6
  from .agenta_node_dto import AgentaNodeDto
8
7
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
8
  import pydantic
10
- from ..core.pydantic_utilities import update_forward_refs
11
9
 
12
10
 
13
11
  class AgentaNodesResponse(UniversalBaseModel):
@@ -25,6 +23,3 @@ class AgentaNodesResponse(UniversalBaseModel):
25
23
  frozen = True
26
24
  smart_union = True
27
25
  extra = pydantic.Extra.allow
28
-
29
-
30
- update_forward_refs(SpanDto, AgentaNodesResponse=AgentaNodesResponse)
@@ -1,6 +1,5 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from __future__ import annotations
4
3
  from ..core.pydantic_utilities import UniversalBaseModel
5
4
  from .span_dto import SpanDto
6
5
  from .root_dto import RootDto
@@ -8,7 +7,6 @@ import typing
8
7
  from .agenta_tree_dto import AgentaTreeDto
9
8
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
9
  import pydantic
11
- from ..core.pydantic_utilities import update_forward_refs
12
10
 
13
11
 
14
12
  class AgentaRootDto(UniversalBaseModel):
@@ -25,6 +23,3 @@ class AgentaRootDto(UniversalBaseModel):
25
23
  frozen = True
26
24
  smart_union = True
27
25
  extra = pydantic.Extra.allow
28
-
29
-
30
- update_forward_refs(SpanDto, AgentaRootDto=AgentaRootDto)
@@ -1,13 +1,11 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from __future__ import annotations
4
3
  from ..core.pydantic_utilities import UniversalBaseModel
5
4
  from .span_dto import SpanDto
6
5
  import typing
7
6
  from .agenta_root_dto import AgentaRootDto
8
7
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
8
  import pydantic
10
- from ..core.pydantic_utilities import update_forward_refs
11
9
 
12
10
 
13
11
  class AgentaRootsResponse(UniversalBaseModel):
@@ -25,6 +23,3 @@ class AgentaRootsResponse(UniversalBaseModel):
25
23
  frozen = True
26
24
  smart_union = True
27
25
  extra = pydantic.Extra.allow
28
-
29
-
30
- update_forward_refs(SpanDto, AgentaRootsResponse=AgentaRootsResponse)
@@ -1,6 +1,5 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from __future__ import annotations
4
3
  from ..core.pydantic_utilities import UniversalBaseModel
5
4
  from .span_dto import SpanDto
6
5
  from .tree_dto import TreeDto
@@ -8,7 +7,6 @@ import typing
8
7
  from .agenta_node_dto import AgentaNodeDto
9
8
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
9
  import pydantic
11
- from ..core.pydantic_utilities import update_forward_refs
12
10
 
13
11
 
14
12
  class AgentaTreeDto(UniversalBaseModel):
@@ -25,6 +23,3 @@ class AgentaTreeDto(UniversalBaseModel):
25
23
  frozen = True
26
24
  smart_union = True
27
25
  extra = pydantic.Extra.allow
28
-
29
-
30
- update_forward_refs(SpanDto, AgentaTreeDto=AgentaTreeDto)
@@ -1,13 +1,11 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from __future__ import annotations
4
3
  from ..core.pydantic_utilities import UniversalBaseModel
5
4
  from .span_dto import SpanDto
6
5
  import typing
7
6
  from .agenta_tree_dto import AgentaTreeDto
8
7
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
8
  import pydantic
10
- from ..core.pydantic_utilities import update_forward_refs
11
9
 
12
10
 
13
11
  class AgentaTreesResponse(UniversalBaseModel):
@@ -25,6 +23,3 @@ class AgentaTreesResponse(UniversalBaseModel):
25
23
  frozen = True
26
24
  smart_union = True
27
25
  extra = pydantic.Extra.allow
28
-
29
-
30
- update_forward_refs(SpanDto, AgentaTreesResponse=AgentaTreesResponse)
@@ -0,0 +1,22 @@
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 CustomModelSettingsDto(UniversalBaseModel):
10
+ slug: str
11
+ extras: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
12
+
13
+ if IS_PYDANTIC_V2:
14
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
15
+ extra="allow", frozen=True
16
+ ) # type: ignore # Pydantic v2
17
+ else:
18
+
19
+ class Config:
20
+ frozen = True
21
+ smart_union = True
22
+ extra = pydantic.Extra.allow
@@ -0,0 +1,29 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from .custom_provider_kind import CustomProviderKind
5
+ from .custom_provider_settings_dto import CustomProviderSettingsDto
6
+ import typing
7
+ from .custom_model_settings_dto import CustomModelSettingsDto
8
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
+ import pydantic
10
+
11
+
12
+ class CustomProviderDto(UniversalBaseModel):
13
+ kind: CustomProviderKind
14
+ provider: CustomProviderSettingsDto
15
+ models: typing.List[CustomModelSettingsDto]
16
+
17
+ provider_slug: typing.Optional[str] = None
18
+ model_keys: typing.Optional[typing.List[str]] = None
19
+
20
+ if IS_PYDANTIC_V2:
21
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
22
+ extra="allow", frozen=True
23
+ ) # type: ignore # Pydantic v2
24
+ else:
25
+
26
+ class Config:
27
+ frozen = True
28
+ smart_union = True
29
+ extra = pydantic.Extra.allow
@@ -0,0 +1,26 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ CustomProviderKind = typing.Union[
6
+ typing.Literal[
7
+ "openai",
8
+ "cohere",
9
+ "anyscale",
10
+ "deepinfra",
11
+ "alephalpha",
12
+ "groq",
13
+ "mistralai",
14
+ "anthropic",
15
+ "perplexityai",
16
+ "togetherai",
17
+ "openrouter",
18
+ "gemini",
19
+ "custom",
20
+ "azure",
21
+ "bedrock",
22
+ "sagemaker",
23
+ "vertex",
24
+ ],
25
+ typing.Any,
26
+ ]
@@ -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 ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+ import pydantic
7
+
8
+
9
+ class CustomProviderSettingsDto(UniversalBaseModel):
10
+ url: typing.Optional[str] = None
11
+ version: typing.Optional[str] = None
12
+ key: typing.Optional[str] = None
13
+ extras: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
14
+
15
+ if IS_PYDANTIC_V2:
16
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
17
+ extra="allow", frozen=True
18
+ ) # type: ignore # Pydantic v2
19
+ else:
20
+
21
+ class Config:
22
+ frozen = True
23
+ smart_union = True
24
+ extra = pydantic.Extra.allow
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .standard_provider_dto import StandardProviderDto
5
+ from .custom_provider_dto import CustomProviderDto
6
+
7
+ Data = typing.Union[StandardProviderDto, CustomProviderDto]
@@ -9,13 +9,10 @@ import pydantic
9
9
  class Organization(UniversalBaseModel):
10
10
  id: str
11
11
  name: str
12
+ owner: str
12
13
  description: str
13
14
  type: typing.Optional[str] = None
14
- owner: str
15
15
  workspaces: typing.Optional[typing.List[str]] = None
16
- members: typing.Optional[typing.List[str]] = None
17
- invitations: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None
18
- is_paying: typing.Optional[bool] = None
19
16
 
20
17
  if IS_PYDANTIC_V2:
21
18
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
@@ -0,0 +1,29 @@
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 OrganizationDetails(UniversalBaseModel):
10
+ id: str
11
+ name: str
12
+ owner: str
13
+ description: str
14
+ type: typing.Optional[str] = None
15
+ workspaces: typing.Optional[typing.List[str]] = None
16
+ default_workspace: typing.Optional[
17
+ typing.Dict[str, typing.Optional[typing.Any]]
18
+ ] = None
19
+
20
+ if IS_PYDANTIC_V2:
21
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
22
+ extra="allow", frozen=True
23
+ ) # type: ignore # Pydantic v2
24
+ else:
25
+
26
+ class Config:
27
+ frozen = True
28
+ smart_union = True
29
+ extra = pydantic.Extra.allow
@@ -1,14 +1,15 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  from ..core.pydantic_utilities import UniversalBaseModel
4
- import typing
4
+ from .role import Role
5
5
  from .reference import Reference
6
6
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import typing
7
8
  import pydantic
8
9
 
9
10
 
10
11
  class OrganizationMembershipRequest(UniversalBaseModel):
11
- role: typing.Literal["owner"] = "owner"
12
+ role: Role
12
13
  is_demo: bool
13
14
  user_ref: Reference
14
15
  organization_ref: Reference
@@ -40,6 +40,7 @@ Permission = typing.Union[
40
40
  "edit_organization",
41
41
  "delete_organization",
42
42
  "add_new_user_to_organization",
43
+ "reset_password",
43
44
  ],
44
45
  typing.Any,
45
46
  ]
@@ -0,0 +1,21 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
5
+ import typing
6
+ import pydantic
7
+
8
+
9
+ class StandardProviderSettingsDto(UniversalBaseModel):
10
+ key: str
11
+
12
+ if IS_PYDANTIC_V2:
13
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
14
+ extra="allow", frozen=True
15
+ ) # type: ignore # Pydantic v2
16
+ else:
17
+
18
+ class Config:
19
+ frozen = True
20
+ smart_union = True
21
+ extra = pydantic.Extra.allow
@@ -0,0 +1,21 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ StandardProviderKind = typing.Union[
6
+ typing.Literal[
7
+ "openai",
8
+ "cohere",
9
+ "anyscale",
10
+ "deepinfra",
11
+ "alephalpha",
12
+ "groq",
13
+ "mistralai",
14
+ "anthropic",
15
+ "perplexityai",
16
+ "togetherai",
17
+ "openrouter",
18
+ "gemini",
19
+ ],
20
+ typing.Any,
21
+ ]
@@ -0,0 +1,3 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ Score = int
@@ -2,15 +2,15 @@
2
2
 
3
3
  from ..core.pydantic_utilities import UniversalBaseModel
4
4
  from .secret_kind import SecretKind
5
- from .provider_key_dto import ProviderKeyDto
5
+ from .data import Data
6
6
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
7
  import typing
8
8
  import pydantic
9
9
 
10
10
 
11
11
  class SecretDto(UniversalBaseModel):
12
- kind: SecretKind = "provider_key"
13
- data: ProviderKeyDto
12
+ kind: SecretKind
13
+ data: Data
14
14
 
15
15
  if IS_PYDANTIC_V2:
16
16
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ SecretKind = typing.Union[typing.Literal["provider_key", "custom_provider"], typing.Any]
@@ -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
+ from .standard_provider_kind import StandardProviderKind
5
+ from .standard_provider_settings_dto import StandardProviderSettingsDto
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import typing
8
+ import pydantic
9
+
10
+
11
+ class StandardProviderDto(UniversalBaseModel):
12
+ kind: StandardProviderKind
13
+ provider: StandardProviderSettingsDto
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,21 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ StandardProviderKind = typing.Union[
6
+ typing.Literal[
7
+ "openai",
8
+ "cohere",
9
+ "anyscale",
10
+ "deepinfra",
11
+ "alephalpha",
12
+ "groq",
13
+ "mistralai",
14
+ "anthropic",
15
+ "perplexityai",
16
+ "togetherai",
17
+ "openrouter",
18
+ "gemini",
19
+ ],
20
+ typing.Any,
21
+ ]
@@ -0,0 +1,21 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
5
+ import typing
6
+ import pydantic
7
+
8
+
9
+ class StandardProviderSettingsDto(UniversalBaseModel):
10
+ key: str
11
+
12
+ if IS_PYDANTIC_V2:
13
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
14
+ extra="allow", frozen=True
15
+ ) # type: ignore # Pydantic v2
16
+ else:
17
+
18
+ class Config:
19
+ frozen = True
20
+ smart_union = True
21
+ 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 ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+ import pydantic
7
+
8
+
9
+ class Workspace(UniversalBaseModel):
10
+ id: typing.Optional[str] = None
11
+ name: str
12
+ description: typing.Optional[str] = None
13
+ type: typing.Optional[str] = None
14
+
15
+ if IS_PYDANTIC_V2:
16
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
17
+ extra="allow", frozen=True
18
+ ) # type: ignore # Pydantic v2
19
+ else:
20
+
21
+ class Config:
22
+ frozen = True
23
+ smart_union = True
24
+ extra = pydantic.Extra.allow
@@ -47,7 +47,6 @@ class VariantsClient:
47
47
 
48
48
  Args:
49
49
  payload (AddVariantFromBasePayload): Payload containing base variant ID, new variant name, and parameters.
50
- stoken_session (SessionContainer, optional): Session container. Defaults to result of verify_session().
51
50
 
52
51
  Raises:
53
52
  HTTPException: Raised if the variant could not be added or accessed.
@@ -198,17 +197,16 @@ class VariantsClient:
198
197
  """
199
198
  Start a variant of an app.
200
199
 
201
- Args:
202
- variant_id (str): The ID of the variant to start.
203
- action (VariantAction): The action to perform on the variant (start).
204
- env_vars (Optional[DockerEnvVars], optional): The environment variables to inject to the Docker container. Defaults to None.
205
- stoken_session (SessionContainer, optional): The session container. Defaults to Depends(verify_session()).
206
-
207
- Returns:
208
- URI: The URL of the started variant.
200
+ Args:
201
+ variant_id (str): The ID of the variant to start.
202
+ action (VariantAction): The action to perform on the variant (start).
203
+ env_vars (Optional[DockerEnvVars], optional): The environment variables to inject to the Docker container. Defaults to None.
204
+ =
205
+ Returns:
206
+ URI: The URL of the started variant.
209
207
 
210
- Raises:
211
- HTTPException: If the app container cannot be started.
208
+ Raises:
209
+ HTTPException: If the app container cannot be started.
212
210
 
213
211
  Parameters
214
212
  ----------
@@ -364,7 +362,6 @@ class VariantsClient:
364
362
  Args:
365
363
  variant_id (str): The ID of the app variant to update.
366
364
  payload (UpdateVariantParameterPayload): The payload containing the updated parameters.
367
- stoken_session (SessionContainer, optional): The session container. Defaults to Depends(verify_session()).
368
365
 
369
366
  Raises:
370
367
  HTTPException: If there is an error while trying to update the app variant.
@@ -1451,7 +1448,6 @@ class AsyncVariantsClient:
1451
1448
 
1452
1449
  Args:
1453
1450
  payload (AddVariantFromBasePayload): Payload containing base variant ID, new variant name, and parameters.
1454
- stoken_session (SessionContainer, optional): Session container. Defaults to result of verify_session().
1455
1451
 
1456
1452
  Raises:
1457
1453
  HTTPException: Raised if the variant could not be added or accessed.
@@ -1618,17 +1614,16 @@ class AsyncVariantsClient:
1618
1614
  """
1619
1615
  Start a variant of an app.
1620
1616
 
1621
- Args:
1622
- variant_id (str): The ID of the variant to start.
1623
- action (VariantAction): The action to perform on the variant (start).
1624
- env_vars (Optional[DockerEnvVars], optional): The environment variables to inject to the Docker container. Defaults to None.
1625
- stoken_session (SessionContainer, optional): The session container. Defaults to Depends(verify_session()).
1626
-
1627
- Returns:
1628
- URI: The URL of the started variant.
1617
+ Args:
1618
+ variant_id (str): The ID of the variant to start.
1619
+ action (VariantAction): The action to perform on the variant (start).
1620
+ env_vars (Optional[DockerEnvVars], optional): The environment variables to inject to the Docker container. Defaults to None.
1621
+ =
1622
+ Returns:
1623
+ URI: The URL of the started variant.
1629
1624
 
1630
- Raises:
1631
- HTTPException: If the app container cannot be started.
1625
+ Raises:
1626
+ HTTPException: If the app container cannot be started.
1632
1627
 
1633
1628
  Parameters
1634
1629
  ----------
@@ -1800,7 +1795,6 @@ class AsyncVariantsClient:
1800
1795
  Args:
1801
1796
  variant_id (str): The ID of the app variant to update.
1802
1797
  payload (UpdateVariantParameterPayload): The payload containing the updated parameters.
1803
- stoken_session (SessionContainer, optional): The session container. Defaults to Depends(verify_session()).
1804
1798
 
1805
1799
  Raises:
1806
1800
  HTTPException: If there is an error while trying to update the app variant.
@@ -0,0 +1 @@
1
+ # This file was auto-generated by Fern from our API Definition.