agenta 0.30.0__py3-none-any.whl → 0.30.0a2__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 (45) hide show
  1. agenta/client/backend/__init__.py +3 -32
  2. agenta/client/backend/apps/client.py +10 -70
  3. agenta/client/backend/client.py +45 -61
  4. agenta/client/backend/configs/client.py +0 -6
  5. agenta/client/backend/containers/client.py +0 -6
  6. agenta/client/backend/core/file.py +8 -13
  7. agenta/client/backend/environments/client.py +0 -6
  8. agenta/client/backend/evaluations/client.py +1 -14
  9. agenta/client/backend/evaluators/client.py +0 -24
  10. agenta/client/backend/observability/client.py +16 -22
  11. agenta/client/backend/observability_v_1/__init__.py +2 -2
  12. agenta/client/backend/observability_v_1/client.py +0 -203
  13. agenta/client/backend/observability_v_1/types/__init__.py +1 -2
  14. agenta/client/backend/observability_v_1/types/format.py +1 -1
  15. agenta/client/backend/testsets/client.py +121 -305
  16. agenta/client/backend/types/__init__.py +2 -24
  17. agenta/client/backend/types/app.py +1 -2
  18. agenta/client/backend/types/body_import_testset.py +1 -0
  19. agenta/client/backend/types/lm_providers_enum.py +21 -0
  20. agenta/client/backend/types/permission.py +0 -1
  21. agenta/client/backend/variants/client.py +0 -66
  22. agenta/sdk/decorators/routing.py +0 -102
  23. {agenta-0.30.0.dist-info → agenta-0.30.0a2.dist-info}/METADATA +3 -4
  24. {agenta-0.30.0.dist-info → agenta-0.30.0a2.dist-info}/RECORD +26 -44
  25. {agenta-0.30.0.dist-info → agenta-0.30.0a2.dist-info}/WHEEL +1 -1
  26. agenta/client/backend/access_control/__init__.py +0 -1
  27. agenta/client/backend/access_control/client.py +0 -167
  28. agenta/client/backend/observability_v_1/types/query_analytics_response.py +0 -7
  29. agenta/client/backend/scopes/__init__.py +0 -1
  30. agenta/client/backend/scopes/client.py +0 -114
  31. agenta/client/backend/types/analytics_response.py +0 -24
  32. agenta/client/backend/types/bucket_dto.py +0 -26
  33. agenta/client/backend/types/header_dto.py +0 -22
  34. agenta/client/backend/types/legacy_analytics_response.py +0 -29
  35. agenta/client/backend/types/legacy_data_point.py +0 -27
  36. agenta/client/backend/types/metrics_dto.py +0 -24
  37. agenta/client/backend/types/projects_response.py +0 -28
  38. agenta/client/backend/types/provider_key_dto.py +0 -23
  39. agenta/client/backend/types/provider_kind.py +0 -21
  40. agenta/client/backend/types/secret_dto.py +0 -24
  41. agenta/client/backend/types/secret_kind.py +0 -5
  42. agenta/client/backend/types/secret_response_dto.py +0 -27
  43. agenta/client/backend/vault/__init__.py +0 -1
  44. agenta/client/backend/vault/client.py +0 -685
  45. {agenta-0.30.0.dist-info → agenta-0.30.0a2.dist-info}/entry_points.txt +0 -0
@@ -156,9 +156,6 @@ class ContainersClient:
156
156
  json={
157
157
  "variant_id": variant_id,
158
158
  },
159
- headers={
160
- "content-type": "application/json",
161
- },
162
159
  request_options=request_options,
163
160
  omit=OMIT,
164
161
  )
@@ -471,9 +468,6 @@ class AsyncContainersClient:
471
468
  json={
472
469
  "variant_id": variant_id,
473
470
  },
474
- headers={
475
- "content-type": "application/json",
476
- },
477
471
  request_options=request_options,
478
472
  omit=OMIT,
479
473
  )
@@ -43,28 +43,23 @@ def convert_file_dict_to_httpx_tuples(
43
43
  return httpx_tuples
44
44
 
45
45
 
46
- def with_content_type(*, file: File, default_content_type: str) -> File:
47
- """
48
- This function resolves to the file's content type, if provided, and defaults
49
- to the default_content_type value if not.
50
- """
46
+ def with_content_type(*, file: File, content_type: str) -> File:
47
+ """ """
51
48
  if isinstance(file, tuple):
52
49
  if len(file) == 2:
53
50
  filename, content = cast(Tuple[Optional[str], FileContent], file) # type: ignore
54
- return (filename, content, default_content_type)
51
+ return (filename, content, content_type)
55
52
  elif len(file) == 3:
56
- filename, content, file_content_type = cast(
53
+ filename, content, _ = cast(
57
54
  Tuple[Optional[str], FileContent, Optional[str]], file
58
55
  ) # type: ignore
59
- out_content_type = file_content_type or default_content_type
60
- return (filename, content, out_content_type)
56
+ return (filename, content, content_type)
61
57
  elif len(file) == 4:
62
- filename, content, file_content_type, headers = cast( # type: ignore
58
+ filename, content, _, headers = cast( # type: ignore
63
59
  Tuple[Optional[str], FileContent, Optional[str], Mapping[str, str]],
64
60
  file,
65
61
  )
66
- out_content_type = file_content_type or default_content_type
67
- return (filename, content, out_content_type, headers)
62
+ return (filename, content, content_type, headers)
68
63
  else:
69
64
  raise ValueError(f"Unexpected tuple length: {len(file)}")
70
- return (None, file, default_content_type)
65
+ return (None, file, content_type)
@@ -70,9 +70,6 @@ class EnvironmentsClient:
70
70
  "environment_name": environment_name,
71
71
  "variant_id": variant_id,
72
72
  },
73
- headers={
74
- "content-type": "application/json",
75
- },
76
73
  request_options=request_options,
77
74
  omit=OMIT,
78
75
  )
@@ -165,9 +162,6 @@ class AsyncEnvironmentsClient:
165
162
  "environment_name": environment_name,
166
163
  "variant_id": variant_id,
167
164
  },
168
- headers={
169
- "content-type": "application/json",
170
- },
171
165
  request_options=request_options,
172
166
  omit=OMIT,
173
167
  )
@@ -34,7 +34,6 @@ class EvaluationsClient:
34
34
  Fetches evaluation ids for a given resource type and id.
35
35
 
36
36
  Arguments:
37
- app_id (str): The ID of the app for which to fetch evaluations.
38
37
  resource_type (str): The type of resource for which to fetch evaluations.
39
38
  resource_ids List[ObjectId]: The IDs of resource for which to fetch evaluations.
40
39
 
@@ -251,9 +250,6 @@ class EvaluationsClient:
251
250
  "lm_providers_keys": lm_providers_keys,
252
251
  "correct_answer_column": correct_answer_column,
253
252
  },
254
- headers={
255
- "content-type": "application/json",
256
- },
257
253
  request_options=request_options,
258
254
  omit=OMIT,
259
255
  )
@@ -326,9 +322,6 @@ class EvaluationsClient:
326
322
  json={
327
323
  "evaluations_ids": evaluations_ids,
328
324
  },
329
- headers={
330
- "content-type": "application/json",
331
- },
332
325
  request_options=request_options,
333
326
  omit=OMIT,
334
327
  )
@@ -723,7 +716,6 @@ class AsyncEvaluationsClient:
723
716
  Fetches evaluation ids for a given resource type and id.
724
717
 
725
718
  Arguments:
726
- app_id (str): The ID of the app for which to fetch evaluations.
727
719
  resource_type (str): The type of resource for which to fetch evaluations.
728
720
  resource_ids List[ObjectId]: The IDs of resource for which to fetch evaluations.
729
721
 
@@ -735,6 +727,7 @@ class AsyncEvaluationsClient:
735
727
 
736
728
  Parameters
737
729
  ----------
730
+
738
731
  resource_type : str
739
732
 
740
733
  resource_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
@@ -964,9 +957,6 @@ class AsyncEvaluationsClient:
964
957
  "lm_providers_keys": lm_providers_keys,
965
958
  "correct_answer_column": correct_answer_column,
966
959
  },
967
- headers={
968
- "content-type": "application/json",
969
- },
970
960
  request_options=request_options,
971
961
  omit=OMIT,
972
962
  )
@@ -1047,9 +1037,6 @@ class AsyncEvaluationsClient:
1047
1037
  json={
1048
1038
  "evaluations_ids": evaluations_ids,
1049
1039
  },
1050
- headers={
1051
- "content-type": "application/json",
1052
- },
1053
1040
  request_options=request_options,
1054
1041
  omit=OMIT,
1055
1042
  )
@@ -122,9 +122,6 @@ class EvaluatorsClient:
122
122
  "inputs": inputs,
123
123
  "mapping": mapping,
124
124
  },
125
- headers={
126
- "content-type": "application/json",
127
- },
128
125
  request_options=request_options,
129
126
  omit=OMIT,
130
127
  )
@@ -212,9 +209,6 @@ class EvaluatorsClient:
212
209
  "settings": settings,
213
210
  "credentials": credentials,
214
211
  },
215
- headers={
216
- "content-type": "application/json",
217
- },
218
212
  request_options=request_options,
219
213
  omit=OMIT,
220
214
  )
@@ -370,9 +364,6 @@ class EvaluatorsClient:
370
364
  "evaluator_key": evaluator_key,
371
365
  "settings_values": settings_values,
372
366
  },
373
- headers={
374
- "content-type": "application/json",
375
- },
376
367
  request_options=request_options,
377
368
  omit=OMIT,
378
369
  )
@@ -520,9 +511,6 @@ class EvaluatorsClient:
520
511
  "evaluator_key": evaluator_key,
521
512
  "settings_values": settings_values,
522
513
  },
523
- headers={
524
- "content-type": "application/json",
525
- },
526
514
  request_options=request_options,
527
515
  omit=OMIT,
528
516
  )
@@ -738,9 +726,6 @@ class AsyncEvaluatorsClient:
738
726
  "inputs": inputs,
739
727
  "mapping": mapping,
740
728
  },
741
- headers={
742
- "content-type": "application/json",
743
- },
744
729
  request_options=request_options,
745
730
  omit=OMIT,
746
731
  )
@@ -836,9 +821,6 @@ class AsyncEvaluatorsClient:
836
821
  "settings": settings,
837
822
  "credentials": credentials,
838
823
  },
839
- headers={
840
- "content-type": "application/json",
841
- },
842
824
  request_options=request_options,
843
825
  omit=OMIT,
844
826
  )
@@ -1010,9 +992,6 @@ class AsyncEvaluatorsClient:
1010
992
  "evaluator_key": evaluator_key,
1011
993
  "settings_values": settings_values,
1012
994
  },
1013
- headers={
1014
- "content-type": "application/json",
1015
- },
1016
995
  request_options=request_options,
1017
996
  omit=OMIT,
1018
997
  )
@@ -1176,9 +1155,6 @@ class AsyncEvaluatorsClient:
1176
1155
  "evaluator_key": evaluator_key,
1177
1156
  "settings_values": settings_values,
1178
1157
  },
1179
- headers={
1180
- "content-type": "application/json",
1181
- },
1182
1158
  request_options=request_options,
1183
1159
  omit=OMIT,
1184
1160
  )
@@ -66,7 +66,7 @@ class ObservabilityClient:
66
66
  )
67
67
  """
68
68
  _response = self._client_wrapper.httpx_client.request(
69
- "observability/dashboard",
69
+ "observability/dashboard/",
70
70
  method="GET",
71
71
  params={
72
72
  "app_id": app_id,
@@ -152,7 +152,7 @@ class ObservabilityClient:
152
152
  )
153
153
  """
154
154
  _response = self._client_wrapper.httpx_client.request(
155
- "observability/trace",
155
+ "observability/trace/",
156
156
  method="POST",
157
157
  json={
158
158
  "trace": trace,
@@ -162,9 +162,6 @@ class ObservabilityClient:
162
162
  direction="write",
163
163
  ),
164
164
  },
165
- headers={
166
- "content-type": "application/json",
167
- },
168
165
  request_options=request_options,
169
166
  omit=OMIT,
170
167
  )
@@ -245,7 +242,7 @@ class ObservabilityClient:
245
242
  )
246
243
  """
247
244
  _response = self._client_wrapper.httpx_client.request(
248
- "observability/traces",
245
+ "observability/traces/",
249
246
  method="GET",
250
247
  params={
251
248
  "app_id": app_id,
@@ -315,7 +312,7 @@ class ObservabilityClient:
315
312
  )
316
313
  """
317
314
  _response = self._client_wrapper.httpx_client.request(
318
- "observability/traces",
315
+ "observability/traces/",
319
316
  method="DELETE",
320
317
  json=request,
321
318
  request_options=request_options,
@@ -374,7 +371,7 @@ class ObservabilityClient:
374
371
  )
375
372
  """
376
373
  _response = self._client_wrapper.httpx_client.request(
377
- f"observability/traces/{jsonable_encoder(trace_id)}",
374
+ f"observability/traces/{jsonable_encoder(trace_id)}/",
378
375
  method="GET",
379
376
  request_options=request_options,
380
377
  )
@@ -455,7 +452,7 @@ class ObservabilityClient:
455
452
  )
456
453
  """
457
454
  _response = self._client_wrapper.httpx_client.request(
458
- "observability/spans",
455
+ "observability/spans/",
459
456
  method="GET",
460
457
  params={
461
458
  "app_id": app_id,
@@ -525,7 +522,7 @@ class ObservabilityClient:
525
522
  )
526
523
  """
527
524
  _response = self._client_wrapper.httpx_client.request(
528
- "observability/spans",
525
+ "observability/spans/",
529
526
  method="DELETE",
530
527
  json=request,
531
528
  request_options=request_options,
@@ -590,7 +587,7 @@ class ObservabilityClient:
590
587
  )
591
588
  """
592
589
  _response = self._client_wrapper.httpx_client.request(
593
- f"observability/spans/{jsonable_encoder(span_id)}",
590
+ f"observability/spans/{jsonable_encoder(span_id)}/",
594
591
  method="GET",
595
592
  params={
596
593
  "type": type,
@@ -675,7 +672,7 @@ class AsyncObservabilityClient:
675
672
  asyncio.run(main())
676
673
  """
677
674
  _response = await self._client_wrapper.httpx_client.request(
678
- "observability/dashboard",
675
+ "observability/dashboard/",
679
676
  method="GET",
680
677
  params={
681
678
  "app_id": app_id,
@@ -768,7 +765,7 @@ class AsyncObservabilityClient:
768
765
  asyncio.run(main())
769
766
  """
770
767
  _response = await self._client_wrapper.httpx_client.request(
771
- "observability/trace",
768
+ "observability/trace/",
772
769
  method="POST",
773
770
  json={
774
771
  "trace": trace,
@@ -778,9 +775,6 @@ class AsyncObservabilityClient:
778
775
  direction="write",
779
776
  ),
780
777
  },
781
- headers={
782
- "content-type": "application/json",
783
- },
784
778
  request_options=request_options,
785
779
  omit=OMIT,
786
780
  )
@@ -869,7 +863,7 @@ class AsyncObservabilityClient:
869
863
  asyncio.run(main())
870
864
  """
871
865
  _response = await self._client_wrapper.httpx_client.request(
872
- "observability/traces",
866
+ "observability/traces/",
873
867
  method="GET",
874
868
  params={
875
869
  "app_id": app_id,
@@ -947,7 +941,7 @@ class AsyncObservabilityClient:
947
941
  asyncio.run(main())
948
942
  """
949
943
  _response = await self._client_wrapper.httpx_client.request(
950
- "observability/traces",
944
+ "observability/traces/",
951
945
  method="DELETE",
952
946
  json=request,
953
947
  request_options=request_options,
@@ -1014,7 +1008,7 @@ class AsyncObservabilityClient:
1014
1008
  asyncio.run(main())
1015
1009
  """
1016
1010
  _response = await self._client_wrapper.httpx_client.request(
1017
- f"observability/traces/{jsonable_encoder(trace_id)}",
1011
+ f"observability/traces/{jsonable_encoder(trace_id)}/",
1018
1012
  method="GET",
1019
1013
  request_options=request_options,
1020
1014
  )
@@ -1103,7 +1097,7 @@ class AsyncObservabilityClient:
1103
1097
  asyncio.run(main())
1104
1098
  """
1105
1099
  _response = await self._client_wrapper.httpx_client.request(
1106
- "observability/spans",
1100
+ "observability/spans/",
1107
1101
  method="GET",
1108
1102
  params={
1109
1103
  "app_id": app_id,
@@ -1181,7 +1175,7 @@ class AsyncObservabilityClient:
1181
1175
  asyncio.run(main())
1182
1176
  """
1183
1177
  _response = await self._client_wrapper.httpx_client.request(
1184
- "observability/spans",
1178
+ "observability/spans/",
1185
1179
  method="DELETE",
1186
1180
  json=request,
1187
1181
  request_options=request_options,
@@ -1254,7 +1248,7 @@ class AsyncObservabilityClient:
1254
1248
  asyncio.run(main())
1255
1249
  """
1256
1250
  _response = await self._client_wrapper.httpx_client.request(
1257
- f"observability/spans/{jsonable_encoder(span_id)}",
1251
+ f"observability/spans/{jsonable_encoder(span_id)}/",
1258
1252
  method="GET",
1259
1253
  params={
1260
1254
  "type": type,
@@ -1,5 +1,5 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from .types import Format, QueryAnalyticsResponse, QueryTracesResponse
3
+ from .types import Format, QueryTracesResponse
4
4
 
5
- __all__ = ["Format", "QueryAnalyticsResponse", "QueryTracesResponse"]
5
+ __all__ = ["Format", "QueryTracesResponse"]
@@ -11,7 +11,6 @@ from .types.format import Format
11
11
  from .types.query_traces_response import QueryTracesResponse
12
12
  from ..errors.unprocessable_entity_error import UnprocessableEntityError
13
13
  from ..types.http_validation_error import HttpValidationError
14
- from .types.query_analytics_response import QueryAnalyticsResponse
15
14
  from ..core.client_wrapper import AsyncClientWrapper
16
15
 
17
16
 
@@ -271,103 +270,6 @@ class ObservabilityV1Client:
271
270
  raise ApiError(status_code=_response.status_code, body=_response.text)
272
271
  raise ApiError(status_code=_response.status_code, body=_response_json)
273
272
 
274
- def query_analytics(
275
- self,
276
- *,
277
- format: typing.Optional[Format] = None,
278
- focus: typing.Optional[str] = None,
279
- oldest: typing.Optional[str] = None,
280
- newest: typing.Optional[str] = None,
281
- window: typing.Optional[int] = None,
282
- filtering: typing.Optional[str] = None,
283
- time_range: typing.Optional[str] = None,
284
- app_id: typing.Optional[str] = None,
285
- environment: typing.Optional[str] = None,
286
- variant: typing.Optional[str] = None,
287
- request_options: typing.Optional[RequestOptions] = None,
288
- ) -> QueryAnalyticsResponse:
289
- """
290
- Parameters
291
- ----------
292
- format : typing.Optional[Format]
293
-
294
- focus : typing.Optional[str]
295
-
296
- oldest : typing.Optional[str]
297
-
298
- newest : typing.Optional[str]
299
-
300
- window : typing.Optional[int]
301
-
302
- filtering : typing.Optional[str]
303
-
304
- time_range : typing.Optional[str]
305
-
306
- app_id : typing.Optional[str]
307
-
308
- environment : typing.Optional[str]
309
-
310
- variant : typing.Optional[str]
311
-
312
- request_options : typing.Optional[RequestOptions]
313
- Request-specific configuration.
314
-
315
- Returns
316
- -------
317
- QueryAnalyticsResponse
318
- Successful Response
319
-
320
- Examples
321
- --------
322
- from agenta import AgentaApi
323
-
324
- client = AgentaApi(
325
- api_key="YOUR_API_KEY",
326
- base_url="https://yourhost.com/path/to/api",
327
- )
328
- client.observability_v_1.query_analytics()
329
- """
330
- _response = self._client_wrapper.httpx_client.request(
331
- "observability/v1/analytics",
332
- method="GET",
333
- params={
334
- "format": format,
335
- "focus": focus,
336
- "oldest": oldest,
337
- "newest": newest,
338
- "window": window,
339
- "filtering": filtering,
340
- "timeRange": time_range,
341
- "app_id": app_id,
342
- "environment": environment,
343
- "variant": variant,
344
- },
345
- request_options=request_options,
346
- )
347
- try:
348
- if 200 <= _response.status_code < 300:
349
- return typing.cast(
350
- QueryAnalyticsResponse,
351
- parse_obj_as(
352
- type_=QueryAnalyticsResponse, # type: ignore
353
- object_=_response.json(),
354
- ),
355
- )
356
- if _response.status_code == 422:
357
- raise UnprocessableEntityError(
358
- typing.cast(
359
- HttpValidationError,
360
- parse_obj_as(
361
- type_=HttpValidationError, # type: ignore
362
- object_=_response.json(),
363
- ),
364
- )
365
- )
366
- _response_json = _response.json()
367
- except JSONDecodeError:
368
- raise ApiError(status_code=_response.status_code, body=_response.text)
369
- raise ApiError(status_code=_response.status_code, body=_response_json)
370
-
371
273
 
372
274
  class AsyncObservabilityV1Client:
373
275
  def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -656,108 +558,3 @@ class AsyncObservabilityV1Client:
656
558
  except JSONDecodeError:
657
559
  raise ApiError(status_code=_response.status_code, body=_response.text)
658
560
  raise ApiError(status_code=_response.status_code, body=_response_json)
659
-
660
- async def query_analytics(
661
- self,
662
- *,
663
- format: typing.Optional[Format] = None,
664
- focus: typing.Optional[str] = None,
665
- oldest: typing.Optional[str] = None,
666
- newest: typing.Optional[str] = None,
667
- window: typing.Optional[int] = None,
668
- filtering: typing.Optional[str] = None,
669
- time_range: typing.Optional[str] = None,
670
- app_id: typing.Optional[str] = None,
671
- environment: typing.Optional[str] = None,
672
- variant: typing.Optional[str] = None,
673
- request_options: typing.Optional[RequestOptions] = None,
674
- ) -> QueryAnalyticsResponse:
675
- """
676
- Parameters
677
- ----------
678
- format : typing.Optional[Format]
679
-
680
- focus : typing.Optional[str]
681
-
682
- oldest : typing.Optional[str]
683
-
684
- newest : typing.Optional[str]
685
-
686
- window : typing.Optional[int]
687
-
688
- filtering : typing.Optional[str]
689
-
690
- time_range : typing.Optional[str]
691
-
692
- app_id : typing.Optional[str]
693
-
694
- environment : typing.Optional[str]
695
-
696
- variant : typing.Optional[str]
697
-
698
- request_options : typing.Optional[RequestOptions]
699
- Request-specific configuration.
700
-
701
- Returns
702
- -------
703
- QueryAnalyticsResponse
704
- Successful Response
705
-
706
- Examples
707
- --------
708
- import asyncio
709
-
710
- from agenta import AsyncAgentaApi
711
-
712
- client = AsyncAgentaApi(
713
- api_key="YOUR_API_KEY",
714
- base_url="https://yourhost.com/path/to/api",
715
- )
716
-
717
-
718
- async def main() -> None:
719
- await client.observability_v_1.query_analytics()
720
-
721
-
722
- asyncio.run(main())
723
- """
724
- _response = await self._client_wrapper.httpx_client.request(
725
- "observability/v1/analytics",
726
- method="GET",
727
- params={
728
- "format": format,
729
- "focus": focus,
730
- "oldest": oldest,
731
- "newest": newest,
732
- "window": window,
733
- "filtering": filtering,
734
- "timeRange": time_range,
735
- "app_id": app_id,
736
- "environment": environment,
737
- "variant": variant,
738
- },
739
- request_options=request_options,
740
- )
741
- try:
742
- if 200 <= _response.status_code < 300:
743
- return typing.cast(
744
- QueryAnalyticsResponse,
745
- parse_obj_as(
746
- type_=QueryAnalyticsResponse, # type: ignore
747
- object_=_response.json(),
748
- ),
749
- )
750
- if _response.status_code == 422:
751
- raise UnprocessableEntityError(
752
- typing.cast(
753
- HttpValidationError,
754
- parse_obj_as(
755
- type_=HttpValidationError, # type: ignore
756
- object_=_response.json(),
757
- ),
758
- )
759
- )
760
- _response_json = _response.json()
761
- except JSONDecodeError:
762
- raise ApiError(status_code=_response.status_code, body=_response.text)
763
- raise ApiError(status_code=_response.status_code, body=_response_json)
@@ -1,7 +1,6 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  from .format import Format
4
- from .query_analytics_response import QueryAnalyticsResponse
5
4
  from .query_traces_response import QueryTracesResponse
6
5
 
7
- __all__ = ["Format", "QueryAnalyticsResponse", "QueryTracesResponse"]
6
+ __all__ = ["Format", "QueryTracesResponse"]
@@ -2,4 +2,4 @@
2
2
 
3
3
  import typing
4
4
 
5
- Format = typing.Union[typing.Literal["legacy", "agenta"], typing.Any]
5
+ Format = typing.Union[typing.Literal["opentelemetry", "agenta"], typing.Any]