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