agenta 0.13.0a0__py3-none-any.whl → 0.13.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.

Files changed (97) hide show
  1. agenta/__init__.py +1 -0
  2. agenta/client/backend/client.py +169 -50
  3. agenta/client/backend/core/api_error.py +3 -1
  4. agenta/client/backend/core/datetime_utils.py +3 -1
  5. agenta/client/backend/core/jsonable_encoder.py +9 -3
  6. agenta/client/backend/resources/__init__.py +12 -1
  7. agenta/client/backend/resources/apps/__init__.py +0 -1
  8. agenta/client/backend/resources/apps/client.py +88 -26
  9. agenta/client/backend/resources/bases/__init__.py +0 -1
  10. agenta/client/backend/resources/bases/client.py +8 -2
  11. agenta/client/backend/resources/configs/__init__.py +0 -1
  12. agenta/client/backend/resources/configs/client.py +58 -14
  13. agenta/client/backend/resources/containers/client.py +46 -14
  14. agenta/client/backend/resources/environments/__init__.py +0 -1
  15. agenta/client/backend/resources/environments/client.py +18 -6
  16. agenta/client/backend/resources/evaluations/__init__.py +0 -1
  17. agenta/client/backend/resources/evaluations/client.py +86 -26
  18. agenta/client/backend/resources/evaluators/__init__.py +0 -1
  19. agenta/client/backend/resources/evaluators/client.py +57 -17
  20. agenta/client/backend/resources/observability/__init__.py +0 -1
  21. agenta/client/backend/resources/observability/client.py +100 -30
  22. agenta/client/backend/resources/testsets/__init__.py +0 -1
  23. agenta/client/backend/resources/testsets/client.py +56 -16
  24. agenta/client/backend/resources/variants/client.py +92 -26
  25. agenta/client/backend/resources/variants/types/__init__.py +3 -1
  26. agenta/client/backend/types/aggregated_result.py +10 -2
  27. agenta/client/backend/types/aggregated_result_evaluator_config.py +3 -1
  28. agenta/client/backend/types/app.py +10 -2
  29. agenta/client/backend/types/app_variant_response.py +10 -2
  30. agenta/client/backend/types/app_variant_revision.py +10 -2
  31. agenta/client/backend/types/base_output.py +10 -2
  32. agenta/client/backend/types/body_import_testset.py +10 -2
  33. agenta/client/backend/types/config_db.py +10 -2
  34. agenta/client/backend/types/create_app_output.py +10 -2
  35. agenta/client/backend/types/create_span.py +10 -2
  36. agenta/client/backend/types/create_trace_response.py +10 -2
  37. agenta/client/backend/types/docker_env_vars.py +10 -2
  38. agenta/client/backend/types/environment_output.py +10 -2
  39. agenta/client/backend/types/environment_output_extended.py +10 -2
  40. agenta/client/backend/types/environment_revision.py +10 -2
  41. agenta/client/backend/types/error.py +10 -2
  42. agenta/client/backend/types/evaluation.py +10 -2
  43. agenta/client/backend/types/evaluation_scenario.py +10 -2
  44. agenta/client/backend/types/evaluation_scenario_input.py +10 -2
  45. agenta/client/backend/types/evaluation_scenario_output.py +10 -2
  46. agenta/client/backend/types/evaluation_scenario_result.py +10 -2
  47. agenta/client/backend/types/evaluation_scenario_score_update.py +10 -2
  48. agenta/client/backend/types/evaluation_type.py +3 -1
  49. agenta/client/backend/types/evaluation_webhook.py +10 -2
  50. agenta/client/backend/types/evaluator.py +10 -2
  51. agenta/client/backend/types/evaluator_config.py +10 -2
  52. agenta/client/backend/types/feedback.py +10 -2
  53. agenta/client/backend/types/get_config_response.py +10 -2
  54. agenta/client/backend/types/http_validation_error.py +10 -2
  55. agenta/client/backend/types/human_evaluation.py +10 -2
  56. agenta/client/backend/types/human_evaluation_scenario.py +10 -2
  57. agenta/client/backend/types/human_evaluation_scenario_input.py +10 -2
  58. agenta/client/backend/types/human_evaluation_scenario_output.py +10 -2
  59. agenta/client/backend/types/human_evaluation_scenario_update.py +10 -2
  60. agenta/client/backend/types/human_evaluation_update.py +10 -2
  61. agenta/client/backend/types/image.py +10 -2
  62. agenta/client/backend/types/invite_request.py +10 -2
  63. agenta/client/backend/types/list_api_keys_response.py +10 -2
  64. agenta/client/backend/types/llm_run_rate_limit.py +10 -2
  65. agenta/client/backend/types/llm_tokens.py +10 -2
  66. agenta/client/backend/types/new_human_evaluation.py +10 -2
  67. agenta/client/backend/types/new_testset.py +10 -2
  68. agenta/client/backend/types/organization.py +10 -2
  69. agenta/client/backend/types/organization_output.py +10 -2
  70. agenta/client/backend/types/result.py +10 -2
  71. agenta/client/backend/types/simple_evaluation_output.py +10 -2
  72. agenta/client/backend/types/span.py +10 -2
  73. agenta/client/backend/types/span_detail.py +10 -2
  74. agenta/client/backend/types/span_variant.py +10 -2
  75. agenta/client/backend/types/template.py +10 -2
  76. agenta/client/backend/types/template_image_info.py +10 -2
  77. agenta/client/backend/types/test_set_output_response.py +10 -2
  78. agenta/client/backend/types/test_set_simple_response.py +10 -2
  79. agenta/client/backend/types/trace_detail.py +10 -2
  80. agenta/client/backend/types/uri.py +10 -2
  81. agenta/client/backend/types/validation_error.py +10 -2
  82. agenta/client/backend/types/variant_action.py +10 -2
  83. agenta/client/backend/types/variant_action_enum.py +3 -1
  84. agenta/client/backend/types/with_pagination.py +10 -2
  85. agenta/client/backend/types/workspace_member_response.py +10 -2
  86. agenta/client/backend/types/workspace_permission.py +10 -2
  87. agenta/client/backend/types/workspace_response.py +10 -2
  88. agenta/client/backend/types/workspace_role_response.py +10 -2
  89. agenta/sdk/__init__.py +1 -0
  90. agenta/sdk/agenta_decorator.py +11 -3
  91. agenta/sdk/tracing/llm_tracing.py +31 -18
  92. agenta/sdk/types.py +38 -0
  93. {agenta-0.13.0a0.dist-info → agenta-0.13.0a1.dist-info}/METADATA +46 -96
  94. agenta-0.13.0a1.dist-info/RECORD +161 -0
  95. agenta-0.13.0a0.dist-info/RECORD +0 -161
  96. {agenta-0.13.0a0.dist-info → agenta-0.13.0a1.dist-info}/WHEEL +0 -0
  97. {agenta-0.13.0a0.dist-info → agenta-0.13.0a1.dist-info}/entry_points.txt +0 -0
@@ -15,7 +15,9 @@ from ...types.http_validation_error import HttpValidationError
15
15
  from ...types.image import Image
16
16
  from ...types.uri import Uri
17
17
  from ...types.variant_action import VariantAction
18
- from .types.add_variant_from_base_and_config_response import AddVariantFromBaseAndConfigResponse
18
+ from .types.add_variant_from_base_and_config_response import (
19
+ AddVariantFromBaseAndConfigResponse,
20
+ )
19
21
 
20
22
  try:
21
23
  import pydantic.v1 as pydantic # type: ignore
@@ -31,7 +33,12 @@ class VariantsClient:
31
33
  self._client_wrapper = client_wrapper
32
34
 
33
35
  def add_variant_from_base_and_config(
34
- self, *, base_id: str, new_variant_name: str, new_config_name: str, parameters: typing.Dict[str, typing.Any]
36
+ self,
37
+ *,
38
+ base_id: str,
39
+ new_variant_name: str,
40
+ new_config_name: str,
41
+ parameters: typing.Dict[str, typing.Any],
35
42
  ) -> AddVariantFromBaseAndConfigResponse:
36
43
  """
37
44
  Add a new variant based on an existing one.
@@ -58,7 +65,9 @@ class VariantsClient:
58
65
  """
59
66
  _response = self._client_wrapper.httpx_client.request(
60
67
  "POST",
61
- urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "variants/from-base"),
68
+ urllib.parse.urljoin(
69
+ f"{self._client_wrapper.get_base_url()}/", "variants/from-base"
70
+ ),
62
71
  json=jsonable_encoder(
63
72
  {
64
73
  "base_id": base_id,
@@ -97,7 +106,9 @@ class VariantsClient:
97
106
  """
98
107
  _response = self._client_wrapper.httpx_client.request(
99
108
  "GET",
100
- urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}"),
109
+ urllib.parse.urljoin(
110
+ f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}"
111
+ ),
101
112
  headers=self._client_wrapper.get_headers(),
102
113
  timeout=60,
103
114
  )
@@ -112,7 +123,11 @@ class VariantsClient:
112
123
  raise ApiError(status_code=_response.status_code, body=_response_json)
113
124
 
114
125
  def start_variant(
115
- self, variant_id: str, *, action: VariantAction, env_vars: typing.Optional[DockerEnvVars] = OMIT
126
+ self,
127
+ variant_id: str,
128
+ *,
129
+ action: VariantAction,
130
+ env_vars: typing.Optional[DockerEnvVars] = OMIT,
116
131
  ) -> Uri:
117
132
  """
118
133
  Start a variant of an app.
@@ -155,7 +170,9 @@ class VariantsClient:
155
170
  _request["env_vars"] = env_vars
156
171
  _response = self._client_wrapper.httpx_client.request(
157
172
  "PUT",
158
- urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}"),
173
+ urllib.parse.urljoin(
174
+ f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}"
175
+ ),
159
176
  json=jsonable_encoder(_request),
160
177
  headers=self._client_wrapper.get_headers(),
161
178
  timeout=60,
@@ -196,7 +213,9 @@ class VariantsClient:
196
213
  """
197
214
  _response = self._client_wrapper.httpx_client.request(
198
215
  "DELETE",
199
- urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}"),
216
+ urllib.parse.urljoin(
217
+ f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}"
218
+ ),
200
219
  headers=self._client_wrapper.get_headers(),
201
220
  timeout=60,
202
221
  )
@@ -210,7 +229,9 @@ class VariantsClient:
210
229
  raise ApiError(status_code=_response.status_code, body=_response.text)
211
230
  raise ApiError(status_code=_response.status_code, body=_response_json)
212
231
 
213
- def update_variant_parameters(self, variant_id: str, *, parameters: typing.Dict[str, typing.Any]) -> typing.Any:
232
+ def update_variant_parameters(
233
+ self, variant_id: str, *, parameters: typing.Dict[str, typing.Any]
234
+ ) -> typing.Any:
214
235
  """
215
236
  Updates the parameters for an app variant.
216
237
 
@@ -243,7 +264,10 @@ class VariantsClient:
243
264
  """
244
265
  _response = self._client_wrapper.httpx_client.request(
245
266
  "PUT",
246
- urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}/parameters"),
267
+ urllib.parse.urljoin(
268
+ f"{self._client_wrapper.get_base_url()}/",
269
+ f"variants/{variant_id}/parameters",
270
+ ),
247
271
  json=jsonable_encoder({"parameters": parameters}),
248
272
  headers=self._client_wrapper.get_headers(),
249
273
  timeout=60,
@@ -294,7 +318,10 @@ class VariantsClient:
294
318
  """
295
319
  _response = self._client_wrapper.httpx_client.request(
296
320
  "PUT",
297
- urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}/image"),
321
+ urllib.parse.urljoin(
322
+ f"{self._client_wrapper.get_base_url()}/",
323
+ f"variants/{variant_id}/image",
324
+ ),
298
325
  json=jsonable_encoder(request),
299
326
  headers=self._client_wrapper.get_headers(),
300
327
  timeout=60,
@@ -326,7 +353,10 @@ class VariantsClient:
326
353
  """
327
354
  _response = self._client_wrapper.httpx_client.request(
328
355
  "GET",
329
- urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}/revisions"),
356
+ urllib.parse.urljoin(
357
+ f"{self._client_wrapper.get_base_url()}/",
358
+ f"variants/{variant_id}/revisions",
359
+ ),
330
360
  headers=self._client_wrapper.get_headers(),
331
361
  timeout=60,
332
362
  )
@@ -340,7 +370,9 @@ class VariantsClient:
340
370
  raise ApiError(status_code=_response.status_code, body=_response.text)
341
371
  raise ApiError(status_code=_response.status_code, body=_response_json)
342
372
 
343
- def get_variant_revision(self, variant_id: str, revision_number: int) -> AppVariantRevision:
373
+ def get_variant_revision(
374
+ self, variant_id: str, revision_number: int
375
+ ) -> AppVariantRevision:
344
376
  """
345
377
  Parameters:
346
378
  - variant_id: str.
@@ -361,7 +393,8 @@ class VariantsClient:
361
393
  _response = self._client_wrapper.httpx_client.request(
362
394
  "GET",
363
395
  urllib.parse.urljoin(
364
- f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}/revisions/{revision_number}"
396
+ f"{self._client_wrapper.get_base_url()}/",
397
+ f"variants/{variant_id}/revisions/{revision_number}",
365
398
  ),
366
399
  headers=self._client_wrapper.get_headers(),
367
400
  timeout=60,
@@ -382,7 +415,12 @@ class AsyncVariantsClient:
382
415
  self._client_wrapper = client_wrapper
383
416
 
384
417
  async def add_variant_from_base_and_config(
385
- self, *, base_id: str, new_variant_name: str, new_config_name: str, parameters: typing.Dict[str, typing.Any]
418
+ self,
419
+ *,
420
+ base_id: str,
421
+ new_variant_name: str,
422
+ new_config_name: str,
423
+ parameters: typing.Dict[str, typing.Any],
386
424
  ) -> AddVariantFromBaseAndConfigResponse:
387
425
  """
388
426
  Add a new variant based on an existing one.
@@ -409,7 +447,9 @@ class AsyncVariantsClient:
409
447
  """
410
448
  _response = await self._client_wrapper.httpx_client.request(
411
449
  "POST",
412
- urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "variants/from-base"),
450
+ urllib.parse.urljoin(
451
+ f"{self._client_wrapper.get_base_url()}/", "variants/from-base"
452
+ ),
413
453
  json=jsonable_encoder(
414
454
  {
415
455
  "base_id": base_id,
@@ -448,7 +488,9 @@ class AsyncVariantsClient:
448
488
  """
449
489
  _response = await self._client_wrapper.httpx_client.request(
450
490
  "GET",
451
- urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}"),
491
+ urllib.parse.urljoin(
492
+ f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}"
493
+ ),
452
494
  headers=self._client_wrapper.get_headers(),
453
495
  timeout=60,
454
496
  )
@@ -463,7 +505,11 @@ class AsyncVariantsClient:
463
505
  raise ApiError(status_code=_response.status_code, body=_response_json)
464
506
 
465
507
  async def start_variant(
466
- self, variant_id: str, *, action: VariantAction, env_vars: typing.Optional[DockerEnvVars] = OMIT
508
+ self,
509
+ variant_id: str,
510
+ *,
511
+ action: VariantAction,
512
+ env_vars: typing.Optional[DockerEnvVars] = OMIT,
467
513
  ) -> Uri:
468
514
  """
469
515
  Start a variant of an app.
@@ -506,7 +552,9 @@ class AsyncVariantsClient:
506
552
  _request["env_vars"] = env_vars
507
553
  _response = await self._client_wrapper.httpx_client.request(
508
554
  "PUT",
509
- urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}"),
555
+ urllib.parse.urljoin(
556
+ f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}"
557
+ ),
510
558
  json=jsonable_encoder(_request),
511
559
  headers=self._client_wrapper.get_headers(),
512
560
  timeout=60,
@@ -547,7 +595,9 @@ class AsyncVariantsClient:
547
595
  """
548
596
  _response = await self._client_wrapper.httpx_client.request(
549
597
  "DELETE",
550
- urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}"),
598
+ urllib.parse.urljoin(
599
+ f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}"
600
+ ),
551
601
  headers=self._client_wrapper.get_headers(),
552
602
  timeout=60,
553
603
  )
@@ -596,7 +646,10 @@ class AsyncVariantsClient:
596
646
  """
597
647
  _response = await self._client_wrapper.httpx_client.request(
598
648
  "PUT",
599
- urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}/parameters"),
649
+ urllib.parse.urljoin(
650
+ f"{self._client_wrapper.get_base_url()}/",
651
+ f"variants/{variant_id}/parameters",
652
+ ),
600
653
  json=jsonable_encoder({"parameters": parameters}),
601
654
  headers=self._client_wrapper.get_headers(),
602
655
  timeout=60,
@@ -611,7 +664,9 @@ class AsyncVariantsClient:
611
664
  raise ApiError(status_code=_response.status_code, body=_response.text)
612
665
  raise ApiError(status_code=_response.status_code, body=_response_json)
613
666
 
614
- async def update_variant_image(self, variant_id: str, *, request: Image) -> typing.Any:
667
+ async def update_variant_image(
668
+ self, variant_id: str, *, request: Image
669
+ ) -> typing.Any:
615
670
  """
616
671
  Updates the image used in an app variant.
617
672
 
@@ -647,7 +702,10 @@ class AsyncVariantsClient:
647
702
  """
648
703
  _response = await self._client_wrapper.httpx_client.request(
649
704
  "PUT",
650
- urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}/image"),
705
+ urllib.parse.urljoin(
706
+ f"{self._client_wrapper.get_base_url()}/",
707
+ f"variants/{variant_id}/image",
708
+ ),
651
709
  json=jsonable_encoder(request),
652
710
  headers=self._client_wrapper.get_headers(),
653
711
  timeout=60,
@@ -662,7 +720,9 @@ class AsyncVariantsClient:
662
720
  raise ApiError(status_code=_response.status_code, body=_response.text)
663
721
  raise ApiError(status_code=_response.status_code, body=_response_json)
664
722
 
665
- async def get_variant_revisions(self, variant_id: str) -> typing.List[AppVariantRevision]:
723
+ async def get_variant_revisions(
724
+ self, variant_id: str
725
+ ) -> typing.List[AppVariantRevision]:
666
726
  """
667
727
  Parameters:
668
728
  - variant_id: str.
@@ -679,7 +739,10 @@ class AsyncVariantsClient:
679
739
  """
680
740
  _response = await self._client_wrapper.httpx_client.request(
681
741
  "GET",
682
- urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}/revisions"),
742
+ urllib.parse.urljoin(
743
+ f"{self._client_wrapper.get_base_url()}/",
744
+ f"variants/{variant_id}/revisions",
745
+ ),
683
746
  headers=self._client_wrapper.get_headers(),
684
747
  timeout=60,
685
748
  )
@@ -693,7 +756,9 @@ class AsyncVariantsClient:
693
756
  raise ApiError(status_code=_response.status_code, body=_response.text)
694
757
  raise ApiError(status_code=_response.status_code, body=_response_json)
695
758
 
696
- async def get_variant_revision(self, variant_id: str, revision_number: int) -> AppVariantRevision:
759
+ async def get_variant_revision(
760
+ self, variant_id: str, revision_number: int
761
+ ) -> AppVariantRevision:
697
762
  """
698
763
  Parameters:
699
764
  - variant_id: str.
@@ -714,7 +779,8 @@ class AsyncVariantsClient:
714
779
  _response = await self._client_wrapper.httpx_client.request(
715
780
  "GET",
716
781
  urllib.parse.urljoin(
717
- f"{self._client_wrapper.get_base_url()}/", f"variants/{variant_id}/revisions/{revision_number}"
782
+ f"{self._client_wrapper.get_base_url()}/",
783
+ f"variants/{variant_id}/revisions/{revision_number}",
718
784
  ),
719
785
  headers=self._client_wrapper.get_headers(),
720
786
  timeout=60,
@@ -1,5 +1,7 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from .add_variant_from_base_and_config_response import AddVariantFromBaseAndConfigResponse
3
+ from .add_variant_from_base_and_config_response import (
4
+ AddVariantFromBaseAndConfigResponse,
5
+ )
4
6
 
5
7
  __all__ = ["AddVariantFromBaseAndConfigResponse"]
@@ -18,11 +18,19 @@ class AggregatedResult(pydantic.BaseModel):
18
18
  result: Result
19
19
 
20
20
  def json(self, **kwargs: typing.Any) -> str:
21
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
21
+ kwargs_with_defaults: typing.Any = {
22
+ "by_alias": True,
23
+ "exclude_unset": True,
24
+ **kwargs,
25
+ }
22
26
  return super().json(**kwargs_with_defaults)
23
27
 
24
28
  def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
25
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
29
+ kwargs_with_defaults: typing.Any = {
30
+ "by_alias": True,
31
+ "exclude_unset": True,
32
+ **kwargs,
33
+ }
26
34
  return super().dict(**kwargs_with_defaults)
27
35
 
28
36
  class Config:
@@ -4,4 +4,6 @@ import typing
4
4
 
5
5
  from .evaluator_config import EvaluatorConfig
6
6
 
7
- AggregatedResultEvaluatorConfig = typing.Union[EvaluatorConfig, typing.Dict[str, typing.Any]]
7
+ AggregatedResultEvaluatorConfig = typing.Union[
8
+ EvaluatorConfig, typing.Dict[str, typing.Any]
9
+ ]
@@ -16,11 +16,19 @@ class App(pydantic.BaseModel):
16
16
  app_name: str
17
17
 
18
18
  def json(self, **kwargs: typing.Any) -> str:
19
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
19
+ kwargs_with_defaults: typing.Any = {
20
+ "by_alias": True,
21
+ "exclude_unset": True,
22
+ **kwargs,
23
+ }
20
24
  return super().json(**kwargs_with_defaults)
21
25
 
22
26
  def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
23
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
27
+ kwargs_with_defaults: typing.Any = {
28
+ "by_alias": True,
29
+ "exclude_unset": True,
30
+ **kwargs,
31
+ }
24
32
  return super().dict(**kwargs_with_defaults)
25
33
 
26
34
  class Config:
@@ -28,11 +28,19 @@ class AppVariantResponse(pydantic.BaseModel):
28
28
  workspace_id: typing.Optional[str]
29
29
 
30
30
  def json(self, **kwargs: typing.Any) -> str:
31
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
31
+ kwargs_with_defaults: typing.Any = {
32
+ "by_alias": True,
33
+ "exclude_unset": True,
34
+ **kwargs,
35
+ }
32
36
  return super().json(**kwargs_with_defaults)
33
37
 
34
38
  def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
35
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
39
+ kwargs_with_defaults: typing.Any = {
40
+ "by_alias": True,
41
+ "exclude_unset": True,
42
+ **kwargs,
43
+ }
36
44
  return super().dict(**kwargs_with_defaults)
37
45
 
38
46
  class Config:
@@ -19,11 +19,19 @@ class AppVariantRevision(pydantic.BaseModel):
19
19
  created_at: dt.datetime
20
20
 
21
21
  def json(self, **kwargs: typing.Any) -> str:
22
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
22
+ kwargs_with_defaults: typing.Any = {
23
+ "by_alias": True,
24
+ "exclude_unset": True,
25
+ **kwargs,
26
+ }
23
27
  return super().json(**kwargs_with_defaults)
24
28
 
25
29
  def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
26
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
30
+ kwargs_with_defaults: typing.Any = {
31
+ "by_alias": True,
32
+ "exclude_unset": True,
33
+ **kwargs,
34
+ }
27
35
  return super().dict(**kwargs_with_defaults)
28
36
 
29
37
  class Config:
@@ -16,11 +16,19 @@ class BaseOutput(pydantic.BaseModel):
16
16
  base_name: str
17
17
 
18
18
  def json(self, **kwargs: typing.Any) -> str:
19
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
19
+ kwargs_with_defaults: typing.Any = {
20
+ "by_alias": True,
21
+ "exclude_unset": True,
22
+ **kwargs,
23
+ }
20
24
  return super().json(**kwargs_with_defaults)
21
25
 
22
26
  def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
23
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
27
+ kwargs_with_defaults: typing.Any = {
28
+ "by_alias": True,
29
+ "exclude_unset": True,
30
+ **kwargs,
31
+ }
24
32
  return super().dict(**kwargs_with_defaults)
25
33
 
26
34
  class Config:
@@ -17,11 +17,19 @@ class BodyImportTestset(pydantic.BaseModel):
17
17
  app_id: typing.Optional[str]
18
18
 
19
19
  def json(self, **kwargs: typing.Any) -> str:
20
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
20
+ kwargs_with_defaults: typing.Any = {
21
+ "by_alias": True,
22
+ "exclude_unset": True,
23
+ **kwargs,
24
+ }
21
25
  return super().json(**kwargs_with_defaults)
22
26
 
23
27
  def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
24
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
28
+ kwargs_with_defaults: typing.Any = {
29
+ "by_alias": True,
30
+ "exclude_unset": True,
31
+ **kwargs,
32
+ }
25
33
  return super().dict(**kwargs_with_defaults)
26
34
 
27
35
  class Config:
@@ -16,11 +16,19 @@ class ConfigDb(pydantic.BaseModel):
16
16
  parameters: typing.Optional[typing.Dict[str, typing.Any]]
17
17
 
18
18
  def json(self, **kwargs: typing.Any) -> str:
19
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
19
+ kwargs_with_defaults: typing.Any = {
20
+ "by_alias": True,
21
+ "exclude_unset": True,
22
+ **kwargs,
23
+ }
20
24
  return super().json(**kwargs_with_defaults)
21
25
 
22
26
  def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
23
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
27
+ kwargs_with_defaults: typing.Any = {
28
+ "by_alias": True,
29
+ "exclude_unset": True,
30
+ **kwargs,
31
+ }
24
32
  return super().dict(**kwargs_with_defaults)
25
33
 
26
34
  class Config:
@@ -16,11 +16,19 @@ class CreateAppOutput(pydantic.BaseModel):
16
16
  app_name: str
17
17
 
18
18
  def json(self, **kwargs: typing.Any) -> str:
19
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
19
+ kwargs_with_defaults: typing.Any = {
20
+ "by_alias": True,
21
+ "exclude_unset": True,
22
+ **kwargs,
23
+ }
20
24
  return super().json(**kwargs_with_defaults)
21
25
 
22
26
  def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
23
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
27
+ kwargs_with_defaults: typing.Any = {
28
+ "by_alias": True,
29
+ "exclude_unset": True,
30
+ **kwargs,
31
+ }
24
32
  return super().dict(**kwargs_with_defaults)
25
33
 
26
34
  class Config:
@@ -36,11 +36,19 @@ class CreateSpan(pydantic.BaseModel):
36
36
  cost: typing.Optional[float]
37
37
 
38
38
  def json(self, **kwargs: typing.Any) -> str:
39
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
39
+ kwargs_with_defaults: typing.Any = {
40
+ "by_alias": True,
41
+ "exclude_unset": True,
42
+ **kwargs,
43
+ }
40
44
  return super().json(**kwargs_with_defaults)
41
45
 
42
46
  def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
43
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
47
+ kwargs_with_defaults: typing.Any = {
48
+ "by_alias": True,
49
+ "exclude_unset": True,
50
+ **kwargs,
51
+ }
44
52
  return super().dict(**kwargs_with_defaults)
45
53
 
46
54
  class Config:
@@ -16,11 +16,19 @@ class CreateTraceResponse(pydantic.BaseModel):
16
16
  data: typing.Dict[str, typing.Any]
17
17
 
18
18
  def json(self, **kwargs: typing.Any) -> str:
19
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
19
+ kwargs_with_defaults: typing.Any = {
20
+ "by_alias": True,
21
+ "exclude_unset": True,
22
+ **kwargs,
23
+ }
20
24
  return super().json(**kwargs_with_defaults)
21
25
 
22
26
  def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
23
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
27
+ kwargs_with_defaults: typing.Any = {
28
+ "by_alias": True,
29
+ "exclude_unset": True,
30
+ **kwargs,
31
+ }
24
32
  return super().dict(**kwargs_with_defaults)
25
33
 
26
34
  class Config:
@@ -15,11 +15,19 @@ class DockerEnvVars(pydantic.BaseModel):
15
15
  env_vars: typing.Dict[str, str]
16
16
 
17
17
  def json(self, **kwargs: typing.Any) -> str:
18
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
18
+ kwargs_with_defaults: typing.Any = {
19
+ "by_alias": True,
20
+ "exclude_unset": True,
21
+ **kwargs,
22
+ }
19
23
  return super().json(**kwargs_with_defaults)
20
24
 
21
25
  def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
22
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
26
+ kwargs_with_defaults: typing.Any = {
27
+ "by_alias": True,
28
+ "exclude_unset": True,
29
+ **kwargs,
30
+ }
23
31
  return super().dict(**kwargs_with_defaults)
24
32
 
25
33
  class Config:
@@ -22,11 +22,19 @@ class EnvironmentOutput(pydantic.BaseModel):
22
22
  workspace_id: typing.Optional[str]
23
23
 
24
24
  def json(self, **kwargs: typing.Any) -> str:
25
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
25
+ kwargs_with_defaults: typing.Any = {
26
+ "by_alias": True,
27
+ "exclude_unset": True,
28
+ **kwargs,
29
+ }
26
30
  return super().json(**kwargs_with_defaults)
27
31
 
28
32
  def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
29
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
33
+ kwargs_with_defaults: typing.Any = {
34
+ "by_alias": True,
35
+ "exclude_unset": True,
36
+ **kwargs,
37
+ }
30
38
  return super().dict(**kwargs_with_defaults)
31
39
 
32
40
  class Config:
@@ -24,11 +24,19 @@ class EnvironmentOutputExtended(pydantic.BaseModel):
24
24
  workspace_id: typing.Optional[str]
25
25
 
26
26
  def json(self, **kwargs: typing.Any) -> str:
27
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
27
+ kwargs_with_defaults: typing.Any = {
28
+ "by_alias": True,
29
+ "exclude_unset": True,
30
+ **kwargs,
31
+ }
28
32
  return super().json(**kwargs_with_defaults)
29
33
 
30
34
  def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
31
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
35
+ kwargs_with_defaults: typing.Any = {
36
+ "by_alias": True,
37
+ "exclude_unset": True,
38
+ **kwargs,
39
+ }
32
40
  return super().dict(**kwargs_with_defaults)
33
41
 
34
42
  class Config:
@@ -20,11 +20,19 @@ class EnvironmentRevision(pydantic.BaseModel):
20
20
  created_at: dt.datetime
21
21
 
22
22
  def json(self, **kwargs: typing.Any) -> str:
23
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
23
+ kwargs_with_defaults: typing.Any = {
24
+ "by_alias": True,
25
+ "exclude_unset": True,
26
+ **kwargs,
27
+ }
24
28
  return super().json(**kwargs_with_defaults)
25
29
 
26
30
  def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
27
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
31
+ kwargs_with_defaults: typing.Any = {
32
+ "by_alias": True,
33
+ "exclude_unset": True,
34
+ **kwargs,
35
+ }
28
36
  return super().dict(**kwargs_with_defaults)
29
37
 
30
38
  class Config:
@@ -16,11 +16,19 @@ class Error(pydantic.BaseModel):
16
16
  stacktrace: typing.Optional[str]
17
17
 
18
18
  def json(self, **kwargs: typing.Any) -> str:
19
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
19
+ kwargs_with_defaults: typing.Any = {
20
+ "by_alias": True,
21
+ "exclude_unset": True,
22
+ **kwargs,
23
+ }
20
24
  return super().json(**kwargs_with_defaults)
21
25
 
22
26
  def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
23
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
27
+ kwargs_with_defaults: typing.Any = {
28
+ "by_alias": True,
29
+ "exclude_unset": True,
30
+ **kwargs,
31
+ }
24
32
  return super().dict(**kwargs_with_defaults)
25
33
 
26
34
  class Config: