orca-sdk 0.0.102__py3-none-any.whl → 0.0.104__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.
orca_sdk/client.py CHANGED
@@ -9,7 +9,16 @@ import uuid
9
9
  from string import Formatter
10
10
  from typing import Any, Literal, Mapping, NotRequired, TypedDict, cast, overload
11
11
 
12
- from httpx import URL, USE_CLIENT_DEFAULT, Client, Headers, Request, Response, Timeout
12
+ from httpx import (
13
+ URL,
14
+ USE_CLIENT_DEFAULT,
15
+ Client,
16
+ Headers,
17
+ HTTPTransport,
18
+ Request,
19
+ Response,
20
+ Timeout,
21
+ )
13
22
  from httpx._client import UseClientDefault # type: ignore
14
23
  from httpx._types import AuthTypes # type: ignore
15
24
  from httpx._types import CookieTypes # type: ignore
@@ -18,6 +27,7 @@ from httpx._types import HeaderTypes # type: ignore
18
27
  from httpx._types import RequestContent # type: ignore
19
28
  from httpx._types import RequestExtensions # type: ignore
20
29
  from httpx._types import TimeoutTypes # type: ignore
30
+ from httpx_retries import Retry, RetryTransport
21
31
 
22
32
 
23
33
  class ActionRecommendation(TypedDict):
@@ -36,6 +46,10 @@ class AddMemorySuggestion(TypedDict):
36
46
  label_name: str
37
47
 
38
48
 
49
+ class AliveResponse(TypedDict):
50
+ ok: bool
51
+
52
+
39
53
  class ApiKeyMetadata(TypedDict):
40
54
  id: str
41
55
  org_id: str
@@ -50,7 +64,7 @@ class BaseLabelPredictionResult(TypedDict):
50
64
  prediction_id: str | None
51
65
  confidence: float
52
66
  anomaly_score: float | None
53
- label: int
67
+ label: int | None
54
68
  label_name: str | None
55
69
  logits: list[float]
56
70
 
@@ -63,11 +77,11 @@ class BaseScorePredictionResult(TypedDict):
63
77
  prediction_id: str | None
64
78
  confidence: float
65
79
  anomaly_score: float | None
66
- score: float
80
+ score: float | None
67
81
 
68
82
 
69
83
  class CascadeEditSuggestionsRequest(TypedDict):
70
- old_label: int
84
+ old_label: int | None
71
85
  new_label: int
72
86
  max_neighbors: NotRequired[int]
73
87
  max_validation_neighbors: NotRequired[int]
@@ -105,6 +119,13 @@ class ClassificationEvaluationRequest(TypedDict):
105
119
  telemetry_tags: NotRequired[list[str] | None]
106
120
 
107
121
 
122
+ class CleanupResponse(TypedDict):
123
+ deleted_milvus_collections: list[str]
124
+ deleted_milvus_collections_count: int
125
+ deleted_blob_paths: list[str]
126
+ deleted_blob_paths_count: int
127
+
128
+
108
129
  class ClusterMetrics(TypedDict):
109
130
  cluster: int
110
131
  memory_count: int
@@ -201,6 +222,14 @@ class GetMemoriesRequest(TypedDict):
201
222
  memory_ids: list[str]
202
223
 
203
224
 
225
+ class HealthyResponse(TypedDict):
226
+ ok: bool
227
+ checks: dict[str, bool]
228
+ durations: dict[str, int]
229
+ draining: bool
230
+ config: dict[str, str | float | int | bool | None]
231
+
232
+
204
233
  class InternalServerErrorResponse(TypedDict):
205
234
  status_code: NotRequired[int]
206
235
  message: str
@@ -208,7 +237,7 @@ class InternalServerErrorResponse(TypedDict):
208
237
 
209
238
 
210
239
  class LabelClassMetrics(TypedDict):
211
- label: int
240
+ label: int | None
212
241
  label_name: NotRequired[str | None]
213
242
  average_lookup_score: float
214
243
  memory_count: int
@@ -224,7 +253,7 @@ class LabeledMemoryInsert(TypedDict):
224
253
  value: str | bytes
225
254
  metadata: NotRequired[dict[str, str | int | float | bool | None]]
226
255
  source_id: NotRequired[str | None]
227
- label: int
256
+ label: int | None
228
257
 
229
258
 
230
259
  class ListMemoriesRequest(TypedDict):
@@ -255,7 +284,7 @@ class MemoryMetrics(TypedDict):
255
284
  embedding_2d: NotRequired[list]
256
285
  anomaly_score: NotRequired[float]
257
286
  neighbor_label_logits: NotRequired[list[float]]
258
- neighbor_predicted_label: NotRequired[int]
287
+ neighbor_predicted_label: NotRequired[int | None]
259
288
  neighbor_predicted_label_ambiguity: NotRequired[float]
260
289
  neighbor_predicted_label_confidence: NotRequired[float]
261
290
  current_label_neighbor_confidence: NotRequired[float]
@@ -282,6 +311,7 @@ class MemorysetClassPatternsMetrics(TypedDict):
282
311
  variance_spread: float
283
312
  mean_uniformity: float
284
313
  variance_uniformity: float
314
+ updated_at: str
285
315
 
286
316
 
287
317
  class MemorysetClusterAnalysisConfig(TypedDict):
@@ -299,6 +329,7 @@ class MemorysetClusterMetrics(TypedDict):
299
329
  cluster_metrics: list[ClusterMetrics]
300
330
  num_outliers: int
301
331
  num_clusters: int
332
+ updated_at: str
302
333
 
303
334
 
304
335
  class MemorysetConceptAnalysisConfig(TypedDict):
@@ -321,6 +352,7 @@ class MemorysetDuplicateAnalysisConfig(TypedDict):
321
352
  class MemorysetDuplicateMetrics(TypedDict):
322
353
  num_duplicates: int
323
354
  num_potential_duplicates: int
355
+ updated_at: str
324
356
 
325
357
 
326
358
  class MemorysetLabelAnalysisConfig(TypedDict):
@@ -333,7 +365,9 @@ class MemorysetLabelMetrics(TypedDict):
333
365
  mean_neighbor_label_confidence: float
334
366
  mean_neighbor_label_entropy: float
335
367
  mean_neighbor_predicted_label_ambiguity: float
368
+ num_no_labeled_neighbors: int
336
369
  num_potential_mislabels: int
370
+ updated_at: str
337
371
 
338
372
 
339
373
  class MemorysetNeighborAnalysisConfig(TypedDict):
@@ -343,6 +377,7 @@ class MemorysetNeighborAnalysisConfig(TypedDict):
343
377
 
344
378
  class MemorysetNeighborMetrics(TypedDict):
345
379
  lookup_score_metrics: dict[str, LookupScoreMetrics]
380
+ updated_at: str
346
381
 
347
382
 
348
383
  class MemorysetProjectionAnalysisConfig(TypedDict):
@@ -351,7 +386,7 @@ class MemorysetProjectionAnalysisConfig(TypedDict):
351
386
 
352
387
 
353
388
  class MemorysetProjectionMetrics(TypedDict):
354
- pass
389
+ updated_at: str
355
390
 
356
391
 
357
392
  class MemorysetUpdate(TypedDict):
@@ -359,6 +394,7 @@ class MemorysetUpdate(TypedDict):
359
394
  description: NotRequired[str | None]
360
395
  name: NotRequired[str]
361
396
  notes: NotRequired[str | None]
397
+ hidden: NotRequired[bool]
362
398
 
363
399
 
364
400
  class NotFoundErrorResponse(TypedDict):
@@ -477,6 +513,11 @@ class ROCCurve(TypedDict):
477
513
  true_positive_rates: list[float]
478
514
 
479
515
 
516
+ class ReadyResponse(TypedDict):
517
+ ok: bool
518
+ draining: bool
519
+
520
+
480
521
  class RegressionEvaluationRequest(TypedDict):
481
522
  datasource_name_or_id: str
482
523
  memoryset_override_name_or_id: NotRequired[str | None]
@@ -487,6 +528,7 @@ class RegressionEvaluationRequest(TypedDict):
487
528
 
488
529
 
489
530
  class RegressionMetrics(TypedDict):
531
+ coverage: float
490
532
  mse: float
491
533
  rmse: float
492
534
  mae: float
@@ -539,7 +581,7 @@ class ScorePredictionMemoryLookup(TypedDict):
539
581
  edited_at: str
540
582
  metrics: MemoryMetrics
541
583
  lookup_score: float
542
- score: float
584
+ score: float | None
543
585
  prediction_id: str
544
586
  attention_weight: float
545
587
 
@@ -548,7 +590,7 @@ class ScorePredictionWithMemoriesAndFeedback(TypedDict):
548
590
  prediction_id: str
549
591
  confidence: float
550
592
  anomaly_score: float | None
551
- score: float
593
+ score: float | None
552
594
  timestamp: str
553
595
  input_value: str | bytes
554
596
  input_embedding: list[float]
@@ -575,7 +617,7 @@ class ScoredMemory(TypedDict):
575
617
  updated_at: str
576
618
  edited_at: str
577
619
  metrics: MemoryMetrics
578
- score: float
620
+ score: float | None
579
621
 
580
622
 
581
623
  class ScoredMemoryInsert(TypedDict):
@@ -583,7 +625,7 @@ class ScoredMemoryInsert(TypedDict):
583
625
  value: str | bytes
584
626
  metadata: NotRequired[dict[str, str | int | float | bool | None]]
585
627
  source_id: NotRequired[str | None]
586
- score: float
628
+ score: float | None
587
629
 
588
630
 
589
631
  class ScoredMemoryLookup(TypedDict):
@@ -598,7 +640,7 @@ class ScoredMemoryLookup(TypedDict):
598
640
  edited_at: str
599
641
  metrics: MemoryMetrics
600
642
  lookup_score: float
601
- score: float
643
+ score: float | None
602
644
 
603
645
 
604
646
  class ScoredMemoryUpdate(TypedDict):
@@ -607,7 +649,7 @@ class ScoredMemoryUpdate(TypedDict):
607
649
  metadata: NotRequired[dict[str, str | int | float | bool | None] | None]
608
650
  source_id: NotRequired[str | None]
609
651
  metrics: NotRequired[MemoryMetrics | None]
610
- score: NotRequired[float]
652
+ score: NotRequired[float | None]
611
653
 
612
654
 
613
655
  class ScoredMemoryWithFeedbackMetrics(TypedDict):
@@ -621,7 +663,7 @@ class ScoredMemoryWithFeedbackMetrics(TypedDict):
621
663
  updated_at: str
622
664
  edited_at: str
623
665
  metrics: MemoryMetrics
624
- score: float
666
+ score: float | None
625
667
  feedback_metrics: dict[str, FeedbackMetrics]
626
668
  lookup_count: int
627
669
 
@@ -639,7 +681,7 @@ class SubConceptMetrics(TypedDict):
639
681
  memory_count: int
640
682
 
641
683
 
642
- TaskStatus = Literal["INITIALIZED", "DISPATCHED", "PROCESSING", "COMPLETED", "FAILED", "ABORTING", "ABORTED"]
684
+ TaskStatus = Literal["INITIALIZED", "DISPATCHED", "WAITING", "PROCESSING", "COMPLETED", "FAILED", "ABORTING", "ABORTED"]
643
685
 
644
686
 
645
687
  class TaskStatusInfo(TypedDict):
@@ -697,6 +739,7 @@ class DeleteAuthApiKeyByNameOrIdParams(TypedDict):
697
739
 
698
740
  class GetMemorysetParams(TypedDict):
699
741
  type: NotRequired[MemoryType | None]
742
+ show_hidden: NotRequired[bool | None]
700
743
 
701
744
 
702
745
  class PostMemorysetByNameOrIdCloneParams(TypedDict):
@@ -1025,14 +1068,6 @@ class AddMemoryRecommendations(TypedDict):
1025
1068
  memories: list[AddMemorySuggestion]
1026
1069
 
1027
1070
 
1028
- class AnalyzeNeighborLabelsResult(TypedDict):
1029
- label_metrics: list[LabelClassMetrics]
1030
- neighbor_prediction_accuracy: float
1031
- mean_neighbor_label_confidence: float
1032
- mean_neighbor_label_entropy: float
1033
- mean_neighbor_predicted_label_ambiguity: float
1034
-
1035
-
1036
1071
  class BootstrapClassificationModelRequest(TypedDict):
1037
1072
  model_description: str
1038
1073
  label_names: list[str]
@@ -1048,9 +1083,10 @@ class BootstrapClassificationModelResult(TypedDict):
1048
1083
 
1049
1084
 
1050
1085
  class ClassificationMetrics(TypedDict):
1086
+ coverage: float
1051
1087
  f1_score: float
1052
1088
  accuracy: float
1053
- loss: float
1089
+ loss: float | None
1054
1090
  anomaly_score_mean: NotRequired[float | None]
1055
1091
  anomaly_score_median: NotRequired[float | None]
1056
1092
  anomaly_score_variance: NotRequired[float | None]
@@ -1108,6 +1144,7 @@ class ColumnInfo(TypedDict):
1108
1144
  type: ColumnType
1109
1145
  enum_options: NotRequired[list[str] | None]
1110
1146
  int_values: NotRequired[list[int] | None]
1147
+ contains_nones: NotRequired[bool]
1111
1148
 
1112
1149
 
1113
1150
  class ConceptMetrics(TypedDict):
@@ -1149,6 +1186,7 @@ class CreateMemorysetRequest(TypedDict):
1149
1186
  index_type: NotRequired[Literal["FLAT", "IVF_FLAT", "IVF_SQ8", "IVF_PQ", "HNSW", "DISKANN"]]
1150
1187
  index_params: NotRequired[dict[str, int | float | str]]
1151
1188
  prompt: NotRequired[str]
1189
+ hidden: NotRequired[bool]
1152
1190
 
1153
1191
 
1154
1192
  class CreateRegressionModelRequest(TypedDict):
@@ -1212,7 +1250,7 @@ class EmbeddingEvaluationResponseUnionClassificationMetricsRegressionMetrics(Typ
1212
1250
  class EmbeddingModelResult(TypedDict):
1213
1251
  embedding_model_name: str
1214
1252
  embedding_model_path: str
1215
- analysis_result: AnalyzeNeighborLabelsResult
1253
+ analysis_result: MemorysetLabelMetrics
1216
1254
  memoryset_name: NotRequired[str | None]
1217
1255
  is_finetuned: NotRequired[bool]
1218
1256
 
@@ -1291,7 +1329,7 @@ class LabelPredictionMemoryLookup(TypedDict):
1291
1329
  updated_at: str
1292
1330
  edited_at: str
1293
1331
  metrics: MemoryMetrics
1294
- label: int
1332
+ label: int | None
1295
1333
  label_name: str | None
1296
1334
  lookup_score: float
1297
1335
  prediction_id: str
@@ -1302,7 +1340,7 @@ class LabelPredictionWithMemoriesAndFeedback(TypedDict):
1302
1340
  prediction_id: str
1303
1341
  confidence: float
1304
1342
  anomaly_score: float | None
1305
- label: int
1343
+ label: int | None
1306
1344
  label_name: str | None
1307
1345
  logits: list[float]
1308
1346
  timestamp: str
@@ -1332,7 +1370,7 @@ class LabeledMemory(TypedDict):
1332
1370
  updated_at: str
1333
1371
  edited_at: str
1334
1372
  metrics: MemoryMetrics
1335
- label: int
1373
+ label: int | None
1336
1374
  label_name: str | None
1337
1375
 
1338
1376
 
@@ -1347,7 +1385,7 @@ class LabeledMemoryLookup(TypedDict):
1347
1385
  updated_at: str
1348
1386
  edited_at: str
1349
1387
  metrics: MemoryMetrics
1350
- label: int
1388
+ label: int | None
1351
1389
  label_name: str | None
1352
1390
  lookup_score: float
1353
1391
 
@@ -1358,7 +1396,7 @@ class LabeledMemoryUpdate(TypedDict):
1358
1396
  metadata: NotRequired[dict[str, str | int | float | bool | None] | None]
1359
1397
  source_id: NotRequired[str | None]
1360
1398
  metrics: NotRequired[MemoryMetrics | None]
1361
- label: NotRequired[int]
1399
+ label: NotRequired[int | None]
1362
1400
 
1363
1401
 
1364
1402
  class LabeledMemoryWithFeedbackMetrics(TypedDict):
@@ -1372,7 +1410,7 @@ class LabeledMemoryWithFeedbackMetrics(TypedDict):
1372
1410
  updated_at: str
1373
1411
  edited_at: str
1374
1412
  metrics: MemoryMetrics
1375
- label: int
1413
+ label: int | None
1376
1414
  label_name: str | None
1377
1415
  feedback_metrics: dict[str, FeedbackMetrics]
1378
1416
  lookup_count: int
@@ -1410,6 +1448,7 @@ class MemorysetAnalysisRequest(TypedDict):
1410
1448
  class MemorysetConceptMetrics(TypedDict):
1411
1449
  concepts: list[ConceptMetrics]
1412
1450
  num_outliers: int
1451
+ updated_at: str
1413
1452
 
1414
1453
 
1415
1454
  class MemorysetMetrics(TypedDict):
@@ -1451,6 +1490,7 @@ class Task(TypedDict):
1451
1490
  type: str
1452
1491
  payload: BaseModel
1453
1492
  result: BaseModel | None
1493
+ depends_on: NotRequired[list[str]]
1454
1494
 
1455
1495
 
1456
1496
  class TelemetryMemoriesRequest(TypedDict):
@@ -1514,6 +1554,7 @@ class MemorysetMetadata(TypedDict):
1514
1554
  database_uri: str | None
1515
1555
  document_prompt_override: str | None
1516
1556
  query_prompt_override: str | None
1557
+ hidden: bool
1517
1558
 
1518
1559
 
1519
1560
  class PaginatedTask(TypedDict):
@@ -1563,9 +1604,9 @@ class OrcaClient(Client):
1563
1604
  return path_params, query_params
1564
1605
 
1565
1606
  @overload
1566
- def GET(
1607
+ def DELETE(
1567
1608
  self,
1568
- path: Literal["/"],
1609
+ path: Literal["/cleanup"],
1569
1610
  *,
1570
1611
  params: None = None,
1571
1612
  parse_as: Literal["json"] = "json",
@@ -1575,15 +1616,16 @@ class OrcaClient(Client):
1575
1616
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1576
1617
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1577
1618
  extensions: RequestExtensions | None = None,
1578
- ) -> Any:
1619
+ ) -> CleanupResponse:
1620
+ """Cleanup orphaned milvus collections and blobs"""
1579
1621
  pass
1580
1622
 
1581
1623
  @overload
1582
- def GET(
1624
+ def DELETE(
1583
1625
  self,
1584
- path: Literal["/check/alive"],
1626
+ path: Literal["/auth/api_key/{name_or_id}"],
1585
1627
  *,
1586
- params: None = None,
1628
+ params: DeleteAuthApiKeyByNameOrIdParams,
1587
1629
  parse_as: Literal["json"] = "json",
1588
1630
  headers: HeaderTypes | None = None,
1589
1631
  cookies: CookieTypes | None = None,
@@ -1591,13 +1633,14 @@ class OrcaClient(Client):
1591
1633
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1592
1634
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1593
1635
  extensions: RequestExtensions | None = None,
1594
- ) -> Any:
1636
+ ) -> None:
1637
+ """Delete an API key by name or ID."""
1595
1638
  pass
1596
1639
 
1597
1640
  @overload
1598
- def GET(
1641
+ def DELETE(
1599
1642
  self,
1600
- path: Literal["/check/ready"],
1643
+ path: Literal["/auth/org"],
1601
1644
  *,
1602
1645
  params: None = None,
1603
1646
  parse_as: Literal["json"] = "json",
@@ -1607,15 +1650,16 @@ class OrcaClient(Client):
1607
1650
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1608
1651
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1609
1652
  extensions: RequestExtensions | None = None,
1610
- ) -> Any:
1653
+ ) -> None:
1654
+ """Deletes the org and all associated resources"""
1611
1655
  pass
1612
1656
 
1613
1657
  @overload
1614
- def GET(
1658
+ def DELETE(
1615
1659
  self,
1616
- path: Literal["/auth/root"],
1660
+ path: Literal["/memoryset/{name_or_id}"],
1617
1661
  *,
1618
- params: None = None,
1662
+ params: DeleteMemorysetByNameOrIdParams,
1619
1663
  parse_as: Literal["json"] = "json",
1620
1664
  headers: HeaderTypes | None = None,
1621
1665
  cookies: CookieTypes | None = None,
@@ -1623,16 +1667,15 @@ class OrcaClient(Client):
1623
1667
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1624
1668
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1625
1669
  extensions: RequestExtensions | None = None,
1626
- ) -> bool:
1627
- """Return true only when called with a valid root API key; otherwise 401 Unauthenticated."""
1670
+ ) -> None:
1628
1671
  pass
1629
1672
 
1630
1673
  @overload
1631
- def GET(
1674
+ def DELETE(
1632
1675
  self,
1633
- path: Literal["/auth/api_key"],
1676
+ path: Literal["/memoryset/{name_or_id}/memory/{memory_id}"],
1634
1677
  *,
1635
- params: None = None,
1678
+ params: DeleteMemorysetByNameOrIdMemoryByMemoryIdParams,
1636
1679
  parse_as: Literal["json"] = "json",
1637
1680
  headers: HeaderTypes | None = None,
1638
1681
  cookies: CookieTypes | None = None,
@@ -1640,16 +1683,15 @@ class OrcaClient(Client):
1640
1683
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1641
1684
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1642
1685
  extensions: RequestExtensions | None = None,
1643
- ) -> list[ApiKeyMetadata]:
1644
- """List all API keys for the organization."""
1686
+ ) -> None:
1645
1687
  pass
1646
1688
 
1647
1689
  @overload
1648
- def GET(
1690
+ def DELETE(
1649
1691
  self,
1650
- path: Literal["/auth"],
1692
+ path: Literal["/finetuned_embedding_model/{name_or_id}"],
1651
1693
  *,
1652
- params: None = None,
1694
+ params: DeleteFinetunedEmbeddingModelByNameOrIdParams,
1653
1695
  parse_as: Literal["json"] = "json",
1654
1696
  headers: HeaderTypes | None = None,
1655
1697
  cookies: CookieTypes | None = None,
@@ -1657,16 +1699,16 @@ class OrcaClient(Client):
1657
1699
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1658
1700
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1659
1701
  extensions: RequestExtensions | None = None,
1660
- ) -> bool:
1661
- """Returns true if the api key header is valid for the org (will be false for admin api key)"""
1702
+ ) -> None:
1703
+ """Delete a finetuned embedding model by name or ID."""
1662
1704
  pass
1663
1705
 
1664
1706
  @overload
1665
- def GET(
1707
+ def DELETE(
1666
1708
  self,
1667
- path: Literal["/auth/org/plan"],
1709
+ path: Literal["/datasource/{name_or_id}"],
1668
1710
  *,
1669
- params: None = None,
1711
+ params: DeleteDatasourceByNameOrIdParams,
1670
1712
  parse_as: Literal["json"] = "json",
1671
1713
  headers: HeaderTypes | None = None,
1672
1714
  cookies: CookieTypes | None = None,
@@ -1674,16 +1716,16 @@ class OrcaClient(Client):
1674
1716
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1675
1717
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1676
1718
  extensions: RequestExtensions | None = None,
1677
- ) -> OrgPlan:
1678
- """Get the organization plan."""
1719
+ ) -> None:
1720
+ """Delete a datasource by name or ID."""
1679
1721
  pass
1680
1722
 
1681
1723
  @overload
1682
- def GET(
1724
+ def DELETE(
1683
1725
  self,
1684
- path: Literal["/memoryset"],
1726
+ path: Literal["/classification_model/{name_or_id}"],
1685
1727
  *,
1686
- params: GetMemorysetParams,
1728
+ params: DeleteClassificationModelByNameOrIdParams,
1687
1729
  parse_as: Literal["json"] = "json",
1688
1730
  headers: HeaderTypes | None = None,
1689
1731
  cookies: CookieTypes | None = None,
@@ -1691,15 +1733,15 @@ class OrcaClient(Client):
1691
1733
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1692
1734
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1693
1735
  extensions: RequestExtensions | None = None,
1694
- ) -> list[MemorysetMetadata]:
1736
+ ) -> None:
1695
1737
  pass
1696
1738
 
1697
1739
  @overload
1698
- def GET(
1740
+ def DELETE(
1699
1741
  self,
1700
- path: Literal["/memoryset/{name_or_id}"],
1742
+ path: Literal["/classification_model/{model_name_or_id}/evaluation/{task_id}"],
1701
1743
  *,
1702
- params: GetMemorysetByNameOrIdParams,
1744
+ params: DeleteClassificationModelByModelNameOrIdEvaluationByTaskIdParams,
1703
1745
  parse_as: Literal["json"] = "json",
1704
1746
  headers: HeaderTypes | None = None,
1705
1747
  cookies: CookieTypes | None = None,
@@ -1707,15 +1749,15 @@ class OrcaClient(Client):
1707
1749
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1708
1750
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1709
1751
  extensions: RequestExtensions | None = None,
1710
- ) -> MemorysetMetadata:
1752
+ ) -> None:
1711
1753
  pass
1712
1754
 
1713
1755
  @overload
1714
- def GET(
1756
+ def DELETE(
1715
1757
  self,
1716
- path: Literal["/memoryset/{name_or_id}/memory/{memory_id}"],
1758
+ path: Literal["/regression_model/{name_or_id}"],
1717
1759
  *,
1718
- params: GetMemorysetByNameOrIdMemoryByMemoryIdParams,
1760
+ params: DeleteRegressionModelByNameOrIdParams,
1719
1761
  parse_as: Literal["json"] = "json",
1720
1762
  headers: HeaderTypes | None = None,
1721
1763
  cookies: CookieTypes | None = None,
@@ -1723,15 +1765,15 @@ class OrcaClient(Client):
1723
1765
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1724
1766
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1725
1767
  extensions: RequestExtensions | None = None,
1726
- ) -> LabeledMemory | ScoredMemory:
1768
+ ) -> None:
1727
1769
  pass
1728
1770
 
1729
1771
  @overload
1730
- def GET(
1772
+ def DELETE(
1731
1773
  self,
1732
- path: Literal["/memoryset/{name_or_id}/potential_duplicate_groups"],
1774
+ path: Literal["/regression_model/{model_name_or_id}/evaluation/{task_id}"],
1733
1775
  *,
1734
- params: GetMemorysetByNameOrIdPotentialDuplicateGroupsParams,
1776
+ params: DeleteRegressionModelByModelNameOrIdEvaluationByTaskIdParams,
1735
1777
  parse_as: Literal["json"] = "json",
1736
1778
  headers: HeaderTypes | None = None,
1737
1779
  cookies: CookieTypes | None = None,
@@ -1739,15 +1781,15 @@ class OrcaClient(Client):
1739
1781
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1740
1782
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1741
1783
  extensions: RequestExtensions | None = None,
1742
- ) -> list[list[LabeledMemory]] | list[list[ScoredMemory]]:
1784
+ ) -> None:
1743
1785
  pass
1744
1786
 
1745
1787
  @overload
1746
- def GET(
1788
+ def DELETE(
1747
1789
  self,
1748
- path: Literal["/memoryset/{name_or_id}/analysis"],
1790
+ path: Literal["/task/{task_id}/abort"],
1749
1791
  *,
1750
- params: GetMemorysetByNameOrIdAnalysisParams,
1792
+ params: DeleteTaskByTaskIdAbortParams,
1751
1793
  parse_as: Literal["json"] = "json",
1752
1794
  headers: HeaderTypes | None = None,
1753
1795
  cookies: CookieTypes | None = None,
@@ -1755,15 +1797,15 @@ class OrcaClient(Client):
1755
1797
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1756
1798
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1757
1799
  extensions: RequestExtensions | None = None,
1758
- ) -> list[MemorysetAnalysisResponse]:
1800
+ ) -> None:
1759
1801
  pass
1760
1802
 
1761
1803
  @overload
1762
- def GET(
1804
+ def DELETE(
1763
1805
  self,
1764
- path: Literal["/memoryset/{name_or_id}/analysis/{analysis_task_id}"],
1806
+ path: Literal["/telemetry/feedback_category/{name_or_id}"],
1765
1807
  *,
1766
- params: GetMemorysetByNameOrIdAnalysisByAnalysisTaskIdParams,
1808
+ params: DeleteTelemetryFeedbackCategoryByNameOrIdParams,
1767
1809
  parse_as: Literal["json"] = "json",
1768
1810
  headers: HeaderTypes | None = None,
1769
1811
  cookies: CookieTypes | None = None,
@@ -1771,32 +1813,46 @@ class OrcaClient(Client):
1771
1813
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1772
1814
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1773
1815
  extensions: RequestExtensions | None = None,
1774
- ) -> MemorysetAnalysisResponse:
1816
+ ) -> None:
1817
+ """Delete a feedback category and all associated feedback records."""
1775
1818
  pass
1776
1819
 
1777
- @overload
1778
- def GET(
1820
+ def DELETE(
1779
1821
  self,
1780
- path: Literal["/finetuned_embedding_model"],
1822
+ path: str,
1781
1823
  *,
1782
- params: None = None,
1783
- parse_as: Literal["json"] = "json",
1824
+ params: Mapping[str, Any] | None = None,
1825
+ parse_as: Literal["json", "text"] | None = "json",
1784
1826
  headers: HeaderTypes | None = None,
1785
1827
  cookies: CookieTypes | None = None,
1786
1828
  auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1787
1829
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1788
1830
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1789
1831
  extensions: RequestExtensions | None = None,
1790
- ) -> list[FinetunedEmbeddingModelMetadata]:
1791
- """List all finetuned embedding models for the organization."""
1792
- pass
1832
+ ) -> Any:
1833
+ path_params, query_params = self._parse_params(params or {}, path)
1834
+ res = self.delete(
1835
+ path.format(**path_params),
1836
+ params=query_params,
1837
+ headers=headers,
1838
+ cookies=cookies,
1839
+ auth=auth,
1840
+ follow_redirects=follow_redirects,
1841
+ timeout=timeout,
1842
+ extensions=extensions,
1843
+ ).raise_for_status()
1844
+ return (
1845
+ None
1846
+ if res.status_code == 204
1847
+ else res.json() if parse_as == "json" else res.text if parse_as == "text" else res.content
1848
+ )
1793
1849
 
1794
1850
  @overload
1795
1851
  def GET(
1796
1852
  self,
1797
- path: Literal["/finetuned_embedding_model/{name_or_id}"],
1853
+ path: Literal["/check/alive"],
1798
1854
  *,
1799
- params: GetFinetunedEmbeddingModelByNameOrIdParams,
1855
+ params: None = None,
1800
1856
  parse_as: Literal["json"] = "json",
1801
1857
  headers: HeaderTypes | None = None,
1802
1858
  cookies: CookieTypes | None = None,
@@ -1804,16 +1860,15 @@ class OrcaClient(Client):
1804
1860
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1805
1861
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1806
1862
  extensions: RequestExtensions | None = None,
1807
- ) -> FinetunedEmbeddingModelMetadata:
1808
- """Get a finetuned embedding model by name or ID."""
1863
+ ) -> AliveResponse:
1809
1864
  pass
1810
1865
 
1811
1866
  @overload
1812
1867
  def GET(
1813
1868
  self,
1814
- path: Literal["/finetuned_embedding_model/{name_or_id}/evaluation/{task_id}"],
1869
+ path: Literal["/check/ready"],
1815
1870
  *,
1816
- params: GetFinetunedEmbeddingModelByNameOrIdEvaluationByTaskIdParams,
1871
+ params: None = None,
1817
1872
  parse_as: Literal["json"] = "json",
1818
1873
  headers: HeaderTypes | None = None,
1819
1874
  cookies: CookieTypes | None = None,
@@ -1821,16 +1876,15 @@ class OrcaClient(Client):
1821
1876
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1822
1877
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1823
1878
  extensions: RequestExtensions | None = None,
1824
- ) -> EmbeddingEvaluationResponseUnionClassificationMetricsRegressionMetrics:
1825
- """Get evaluation results for a finetuned embedding model by task ID."""
1879
+ ) -> ReadyResponse:
1826
1880
  pass
1827
1881
 
1828
1882
  @overload
1829
1883
  def GET(
1830
1884
  self,
1831
- path: Literal["/finetuned_embedding_model/{name_or_id}/evaluations"],
1885
+ path: Literal["/gpu/check/healthy"],
1832
1886
  *,
1833
- params: GetFinetunedEmbeddingModelByNameOrIdEvaluationsParams,
1887
+ params: None = None,
1834
1888
  parse_as: Literal["json"] = "json",
1835
1889
  headers: HeaderTypes | None = None,
1836
1890
  cookies: CookieTypes | None = None,
@@ -1838,14 +1892,13 @@ class OrcaClient(Client):
1838
1892
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1839
1893
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1840
1894
  extensions: RequestExtensions | None = None,
1841
- ) -> list[EmbeddingEvaluationResponseUnionClassificationMetricsRegressionMetrics]:
1842
- """List all evaluation results for a finetuned embedding model."""
1895
+ ) -> HealthyResponse:
1843
1896
  pass
1844
1897
 
1845
1898
  @overload
1846
1899
  def GET(
1847
1900
  self,
1848
- path: Literal["/pretrained_embedding_model"],
1901
+ path: Literal["/check/healthy"],
1849
1902
  *,
1850
1903
  params: None = None,
1851
1904
  parse_as: Literal["json"] = "json",
@@ -1855,16 +1908,15 @@ class OrcaClient(Client):
1855
1908
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1856
1909
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1857
1910
  extensions: RequestExtensions | None = None,
1858
- ) -> list[PretrainedEmbeddingModelMetadata]:
1859
- """List all available pretrained embedding models."""
1911
+ ) -> HealthyResponse:
1860
1912
  pass
1861
1913
 
1862
1914
  @overload
1863
1915
  def GET(
1864
1916
  self,
1865
- path: Literal["/pretrained_embedding_model/{model_name}"],
1917
+ path: Literal["/gpu/config"],
1866
1918
  *,
1867
- params: GetPretrainedEmbeddingModelByModelNameParams,
1919
+ params: None = None,
1868
1920
  parse_as: Literal["json"] = "json",
1869
1921
  headers: HeaderTypes | None = None,
1870
1922
  cookies: CookieTypes | None = None,
@@ -1872,16 +1924,15 @@ class OrcaClient(Client):
1872
1924
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1873
1925
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1874
1926
  extensions: RequestExtensions | None = None,
1875
- ) -> PretrainedEmbeddingModelMetadata:
1876
- """Get metadata for a specific pretrained embedding model."""
1927
+ ) -> dict[str, str | float | int | bool | None]:
1877
1928
  pass
1878
1929
 
1879
1930
  @overload
1880
1931
  def GET(
1881
1932
  self,
1882
- path: Literal["/pretrained_embedding_model/{model_name}/evaluation/{task_id}"],
1933
+ path: Literal["/config"],
1883
1934
  *,
1884
- params: GetPretrainedEmbeddingModelByModelNameEvaluationByTaskIdParams,
1935
+ params: None = None,
1885
1936
  parse_as: Literal["json"] = "json",
1886
1937
  headers: HeaderTypes | None = None,
1887
1938
  cookies: CookieTypes | None = None,
@@ -1889,50 +1940,47 @@ class OrcaClient(Client):
1889
1940
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1890
1941
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1891
1942
  extensions: RequestExtensions | None = None,
1892
- ) -> EmbeddingEvaluationResponseUnionClassificationMetricsRegressionMetrics:
1893
- """Get evaluation results for a pretrained embedding model by task ID."""
1943
+ ) -> dict[str, str | float | int | bool | None]:
1894
1944
  pass
1895
1945
 
1896
1946
  @overload
1897
1947
  def GET(
1898
1948
  self,
1899
- path: Literal["/pretrained_embedding_model/{model_name}/evaluations"],
1949
+ path: Literal["/gpu/"],
1900
1950
  *,
1901
- params: GetPretrainedEmbeddingModelByModelNameEvaluationsParams,
1902
- parse_as: Literal["json"] = "json",
1951
+ params: None = None,
1952
+ parse_as: Literal["text"],
1903
1953
  headers: HeaderTypes | None = None,
1904
1954
  cookies: CookieTypes | None = None,
1905
1955
  auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1906
1956
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1907
1957
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1908
1958
  extensions: RequestExtensions | None = None,
1909
- ) -> list[EmbeddingEvaluationResponseUnionClassificationMetricsRegressionMetrics]:
1910
- """List all evaluation results for a pretrained embedding model."""
1959
+ ) -> str:
1911
1960
  pass
1912
1961
 
1913
1962
  @overload
1914
1963
  def GET(
1915
1964
  self,
1916
- path: Literal["/datasource"],
1965
+ path: Literal["/"],
1917
1966
  *,
1918
1967
  params: None = None,
1919
- parse_as: Literal["json"] = "json",
1968
+ parse_as: Literal["text"],
1920
1969
  headers: HeaderTypes | None = None,
1921
1970
  cookies: CookieTypes | None = None,
1922
1971
  auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1923
1972
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1924
1973
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1925
1974
  extensions: RequestExtensions | None = None,
1926
- ) -> list[DatasourceMetadata]:
1927
- """List all datasources for the organization."""
1975
+ ) -> str:
1928
1976
  pass
1929
1977
 
1930
1978
  @overload
1931
1979
  def GET(
1932
1980
  self,
1933
- path: Literal["/datasource/{name_or_id}"],
1981
+ path: Literal["/auth/root"],
1934
1982
  *,
1935
- params: GetDatasourceByNameOrIdParams,
1983
+ params: None = None,
1936
1984
  parse_as: Literal["json"] = "json",
1937
1985
  headers: HeaderTypes | None = None,
1938
1986
  cookies: CookieTypes | None = None,
@@ -1940,16 +1988,16 @@ class OrcaClient(Client):
1940
1988
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1941
1989
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1942
1990
  extensions: RequestExtensions | None = None,
1943
- ) -> DatasourceMetadata:
1944
- """Get a datasource by name or ID."""
1991
+ ) -> bool:
1992
+ """Return true only when called with a valid root API key; otherwise 401 Unauthenticated."""
1945
1993
  pass
1946
1994
 
1947
1995
  @overload
1948
1996
  def GET(
1949
1997
  self,
1950
- path: Literal["/datasource/{name_or_id}/embedding_evaluation"],
1998
+ path: Literal["/auth/api_key"],
1951
1999
  *,
1952
- params: GetDatasourceByNameOrIdEmbeddingEvaluationParams,
2000
+ params: None = None,
1953
2001
  parse_as: Literal["json"] = "json",
1954
2002
  headers: HeaderTypes | None = None,
1955
2003
  cookies: CookieTypes | None = None,
@@ -1957,16 +2005,16 @@ class OrcaClient(Client):
1957
2005
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1958
2006
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1959
2007
  extensions: RequestExtensions | None = None,
1960
- ) -> list[DatasourceEmbeddingEvaluationsResponse]:
1961
- """List embedding evaluation tasks for a datasource."""
2008
+ ) -> list[ApiKeyMetadata]:
2009
+ """List all API keys for the organization."""
1962
2010
  pass
1963
2011
 
1964
2012
  @overload
1965
2013
  def GET(
1966
2014
  self,
1967
- path: Literal["/datasource/{name_or_id}/embedding_evaluation/{task_id}"],
2015
+ path: Literal["/auth"],
1968
2016
  *,
1969
- params: GetDatasourceByNameOrIdEmbeddingEvaluationByTaskIdParams,
2017
+ params: None = None,
1970
2018
  parse_as: Literal["json"] = "json",
1971
2019
  headers: HeaderTypes | None = None,
1972
2020
  cookies: CookieTypes | None = None,
@@ -1974,16 +2022,16 @@ class OrcaClient(Client):
1974
2022
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1975
2023
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1976
2024
  extensions: RequestExtensions | None = None,
1977
- ) -> DatasourceEmbeddingEvaluationsResponse:
1978
- """Get an embedding evaluation task by ID."""
2025
+ ) -> bool:
2026
+ """Returns true if the api key header is valid for the org (will be false for admin api key)"""
1979
2027
  pass
1980
2028
 
1981
2029
  @overload
1982
2030
  def GET(
1983
2031
  self,
1984
- path: Literal["/datasource/{name_or_id}/download"],
2032
+ path: Literal["/auth/org/plan"],
1985
2033
  *,
1986
- params: GetDatasourceByNameOrIdDownloadParams,
2034
+ params: None = None,
1987
2035
  parse_as: Literal["json"] = "json",
1988
2036
  headers: HeaderTypes | None = None,
1989
2037
  cookies: CookieTypes | None = None,
@@ -1991,25 +2039,342 @@ class OrcaClient(Client):
1991
2039
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
1992
2040
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
1993
2041
  extensions: RequestExtensions | None = None,
1994
- ) -> list[dict[str, Any]]:
1995
- """Download datasource in the specified format."""
2042
+ ) -> OrgPlan:
2043
+ """Get the organization plan."""
1996
2044
  pass
1997
2045
 
1998
2046
  @overload
1999
2047
  def GET(
2000
2048
  self,
2001
- path: Literal["/datasource/{name_or_id}/download"],
2049
+ path: Literal["/memoryset"],
2002
2050
  *,
2003
- params: GetDatasourceByNameOrIdDownloadParams,
2004
- parse_as: Literal["text"],
2051
+ params: GetMemorysetParams,
2052
+ parse_as: Literal["json"] = "json",
2005
2053
  headers: HeaderTypes | None = None,
2006
2054
  cookies: CookieTypes | None = None,
2007
2055
  auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2008
2056
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2009
2057
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2010
2058
  extensions: RequestExtensions | None = None,
2011
- ) -> str:
2012
- """Download datasource in the specified format."""
2059
+ ) -> list[MemorysetMetadata]:
2060
+ pass
2061
+
2062
+ @overload
2063
+ def GET(
2064
+ self,
2065
+ path: Literal["/memoryset/{name_or_id}"],
2066
+ *,
2067
+ params: GetMemorysetByNameOrIdParams,
2068
+ parse_as: Literal["json"] = "json",
2069
+ headers: HeaderTypes | None = None,
2070
+ cookies: CookieTypes | None = None,
2071
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2072
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2073
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2074
+ extensions: RequestExtensions | None = None,
2075
+ ) -> MemorysetMetadata:
2076
+ pass
2077
+
2078
+ @overload
2079
+ def GET(
2080
+ self,
2081
+ path: Literal["/memoryset/{name_or_id}/memory/{memory_id}"],
2082
+ *,
2083
+ params: GetMemorysetByNameOrIdMemoryByMemoryIdParams,
2084
+ parse_as: Literal["json"] = "json",
2085
+ headers: HeaderTypes | None = None,
2086
+ cookies: CookieTypes | None = None,
2087
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2088
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2089
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2090
+ extensions: RequestExtensions | None = None,
2091
+ ) -> LabeledMemory | ScoredMemory:
2092
+ pass
2093
+
2094
+ @overload
2095
+ def GET(
2096
+ self,
2097
+ path: Literal["/memoryset/{name_or_id}/potential_duplicate_groups"],
2098
+ *,
2099
+ params: GetMemorysetByNameOrIdPotentialDuplicateGroupsParams,
2100
+ parse_as: Literal["json"] = "json",
2101
+ headers: HeaderTypes | None = None,
2102
+ cookies: CookieTypes | None = None,
2103
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2104
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2105
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2106
+ extensions: RequestExtensions | None = None,
2107
+ ) -> list[list[LabeledMemory]] | list[list[ScoredMemory]]:
2108
+ pass
2109
+
2110
+ @overload
2111
+ def GET(
2112
+ self,
2113
+ path: Literal["/memoryset/{name_or_id}/analysis"],
2114
+ *,
2115
+ params: GetMemorysetByNameOrIdAnalysisParams,
2116
+ parse_as: Literal["json"] = "json",
2117
+ headers: HeaderTypes | None = None,
2118
+ cookies: CookieTypes | None = None,
2119
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2120
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2121
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2122
+ extensions: RequestExtensions | None = None,
2123
+ ) -> list[MemorysetAnalysisResponse]:
2124
+ pass
2125
+
2126
+ @overload
2127
+ def GET(
2128
+ self,
2129
+ path: Literal["/memoryset/{name_or_id}/analysis/{analysis_task_id}"],
2130
+ *,
2131
+ params: GetMemorysetByNameOrIdAnalysisByAnalysisTaskIdParams,
2132
+ parse_as: Literal["json"] = "json",
2133
+ headers: HeaderTypes | None = None,
2134
+ cookies: CookieTypes | None = None,
2135
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2136
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2137
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2138
+ extensions: RequestExtensions | None = None,
2139
+ ) -> MemorysetAnalysisResponse:
2140
+ pass
2141
+
2142
+ @overload
2143
+ def GET(
2144
+ self,
2145
+ path: Literal["/finetuned_embedding_model"],
2146
+ *,
2147
+ params: None = None,
2148
+ parse_as: Literal["json"] = "json",
2149
+ headers: HeaderTypes | None = None,
2150
+ cookies: CookieTypes | None = None,
2151
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2152
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2153
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2154
+ extensions: RequestExtensions | None = None,
2155
+ ) -> list[FinetunedEmbeddingModelMetadata]:
2156
+ """List all finetuned embedding models for the organization."""
2157
+ pass
2158
+
2159
+ @overload
2160
+ def GET(
2161
+ self,
2162
+ path: Literal["/finetuned_embedding_model/{name_or_id}"],
2163
+ *,
2164
+ params: GetFinetunedEmbeddingModelByNameOrIdParams,
2165
+ parse_as: Literal["json"] = "json",
2166
+ headers: HeaderTypes | None = None,
2167
+ cookies: CookieTypes | None = None,
2168
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2169
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2170
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2171
+ extensions: RequestExtensions | None = None,
2172
+ ) -> FinetunedEmbeddingModelMetadata:
2173
+ """Get a finetuned embedding model by name or ID."""
2174
+ pass
2175
+
2176
+ @overload
2177
+ def GET(
2178
+ self,
2179
+ path: Literal["/finetuned_embedding_model/{name_or_id}/evaluation/{task_id}"],
2180
+ *,
2181
+ params: GetFinetunedEmbeddingModelByNameOrIdEvaluationByTaskIdParams,
2182
+ parse_as: Literal["json"] = "json",
2183
+ headers: HeaderTypes | None = None,
2184
+ cookies: CookieTypes | None = None,
2185
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2186
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2187
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2188
+ extensions: RequestExtensions | None = None,
2189
+ ) -> EmbeddingEvaluationResponseUnionClassificationMetricsRegressionMetrics:
2190
+ """Get evaluation results for a finetuned embedding model by task ID."""
2191
+ pass
2192
+
2193
+ @overload
2194
+ def GET(
2195
+ self,
2196
+ path: Literal["/finetuned_embedding_model/{name_or_id}/evaluations"],
2197
+ *,
2198
+ params: GetFinetunedEmbeddingModelByNameOrIdEvaluationsParams,
2199
+ parse_as: Literal["json"] = "json",
2200
+ headers: HeaderTypes | None = None,
2201
+ cookies: CookieTypes | None = None,
2202
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2203
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2204
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2205
+ extensions: RequestExtensions | None = None,
2206
+ ) -> list[EmbeddingEvaluationResponseUnionClassificationMetricsRegressionMetrics]:
2207
+ """List all evaluation results for a finetuned embedding model."""
2208
+ pass
2209
+
2210
+ @overload
2211
+ def GET(
2212
+ self,
2213
+ path: Literal["/pretrained_embedding_model"],
2214
+ *,
2215
+ params: None = None,
2216
+ parse_as: Literal["json"] = "json",
2217
+ headers: HeaderTypes | None = None,
2218
+ cookies: CookieTypes | None = None,
2219
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2220
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2221
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2222
+ extensions: RequestExtensions | None = None,
2223
+ ) -> list[PretrainedEmbeddingModelMetadata]:
2224
+ """List all available pretrained embedding models."""
2225
+ pass
2226
+
2227
+ @overload
2228
+ def GET(
2229
+ self,
2230
+ path: Literal["/pretrained_embedding_model/{model_name}"],
2231
+ *,
2232
+ params: GetPretrainedEmbeddingModelByModelNameParams,
2233
+ parse_as: Literal["json"] = "json",
2234
+ headers: HeaderTypes | None = None,
2235
+ cookies: CookieTypes | None = None,
2236
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2237
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2238
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2239
+ extensions: RequestExtensions | None = None,
2240
+ ) -> PretrainedEmbeddingModelMetadata:
2241
+ """Get metadata for a specific pretrained embedding model."""
2242
+ pass
2243
+
2244
+ @overload
2245
+ def GET(
2246
+ self,
2247
+ path: Literal["/pretrained_embedding_model/{model_name}/evaluation/{task_id}"],
2248
+ *,
2249
+ params: GetPretrainedEmbeddingModelByModelNameEvaluationByTaskIdParams,
2250
+ parse_as: Literal["json"] = "json",
2251
+ headers: HeaderTypes | None = None,
2252
+ cookies: CookieTypes | None = None,
2253
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2254
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2255
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2256
+ extensions: RequestExtensions | None = None,
2257
+ ) -> EmbeddingEvaluationResponseUnionClassificationMetricsRegressionMetrics:
2258
+ """Get evaluation results for a pretrained embedding model by task ID."""
2259
+ pass
2260
+
2261
+ @overload
2262
+ def GET(
2263
+ self,
2264
+ path: Literal["/pretrained_embedding_model/{model_name}/evaluations"],
2265
+ *,
2266
+ params: GetPretrainedEmbeddingModelByModelNameEvaluationsParams,
2267
+ parse_as: Literal["json"] = "json",
2268
+ headers: HeaderTypes | None = None,
2269
+ cookies: CookieTypes | None = None,
2270
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2271
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2272
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2273
+ extensions: RequestExtensions | None = None,
2274
+ ) -> list[EmbeddingEvaluationResponseUnionClassificationMetricsRegressionMetrics]:
2275
+ """List all evaluation results for a pretrained embedding model."""
2276
+ pass
2277
+
2278
+ @overload
2279
+ def GET(
2280
+ self,
2281
+ path: Literal["/datasource"],
2282
+ *,
2283
+ params: None = None,
2284
+ parse_as: Literal["json"] = "json",
2285
+ headers: HeaderTypes | None = None,
2286
+ cookies: CookieTypes | None = None,
2287
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2288
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2289
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2290
+ extensions: RequestExtensions | None = None,
2291
+ ) -> list[DatasourceMetadata]:
2292
+ """List all datasources for the organization."""
2293
+ pass
2294
+
2295
+ @overload
2296
+ def GET(
2297
+ self,
2298
+ path: Literal["/datasource/{name_or_id}"],
2299
+ *,
2300
+ params: GetDatasourceByNameOrIdParams,
2301
+ parse_as: Literal["json"] = "json",
2302
+ headers: HeaderTypes | None = None,
2303
+ cookies: CookieTypes | None = None,
2304
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2305
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2306
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2307
+ extensions: RequestExtensions | None = None,
2308
+ ) -> DatasourceMetadata:
2309
+ """Get a datasource by name or ID."""
2310
+ pass
2311
+
2312
+ @overload
2313
+ def GET(
2314
+ self,
2315
+ path: Literal["/datasource/{name_or_id}/embedding_evaluation"],
2316
+ *,
2317
+ params: GetDatasourceByNameOrIdEmbeddingEvaluationParams,
2318
+ parse_as: Literal["json"] = "json",
2319
+ headers: HeaderTypes | None = None,
2320
+ cookies: CookieTypes | None = None,
2321
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2322
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2323
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2324
+ extensions: RequestExtensions | None = None,
2325
+ ) -> list[DatasourceEmbeddingEvaluationsResponse]:
2326
+ """List embedding evaluation tasks for a datasource."""
2327
+ pass
2328
+
2329
+ @overload
2330
+ def GET(
2331
+ self,
2332
+ path: Literal["/datasource/{name_or_id}/embedding_evaluation/{task_id}"],
2333
+ *,
2334
+ params: GetDatasourceByNameOrIdEmbeddingEvaluationByTaskIdParams,
2335
+ parse_as: Literal["json"] = "json",
2336
+ headers: HeaderTypes | None = None,
2337
+ cookies: CookieTypes | None = None,
2338
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2339
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2340
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2341
+ extensions: RequestExtensions | None = None,
2342
+ ) -> DatasourceEmbeddingEvaluationsResponse:
2343
+ """Get an embedding evaluation task by ID."""
2344
+ pass
2345
+
2346
+ @overload
2347
+ def GET(
2348
+ self,
2349
+ path: Literal["/datasource/{name_or_id}/download"],
2350
+ *,
2351
+ params: GetDatasourceByNameOrIdDownloadParams,
2352
+ parse_as: Literal["json"] = "json",
2353
+ headers: HeaderTypes | None = None,
2354
+ cookies: CookieTypes | None = None,
2355
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2356
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2357
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2358
+ extensions: RequestExtensions | None = None,
2359
+ ) -> list[dict[str, Any]]:
2360
+ """Download datasource in the specified format."""
2361
+ pass
2362
+
2363
+ @overload
2364
+ def GET(
2365
+ self,
2366
+ path: Literal["/datasource/{name_or_id}/download"],
2367
+ *,
2368
+ params: GetDatasourceByNameOrIdDownloadParams,
2369
+ parse_as: Literal["text"],
2370
+ headers: HeaderTypes | None = None,
2371
+ cookies: CookieTypes | None = None,
2372
+ auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2373
+ follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2374
+ timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2375
+ extensions: RequestExtensions | None = None,
2376
+ ) -> str:
2377
+ """Download datasource in the specified format."""
2013
2378
  pass
2014
2379
 
2015
2380
  @overload
@@ -2275,65 +2640,9 @@ class OrcaClient(Client):
2275
2640
  @overload
2276
2641
  def GET(
2277
2642
  self,
2278
- path: Literal["/telemetry/prediction/{prediction_id}/memory_suggestions"],
2279
- *,
2280
- params: GetTelemetryPredictionByPredictionIdMemorySuggestionsParams,
2281
- parse_as: Literal["json"] = "json",
2282
- headers: HeaderTypes | None = None,
2283
- cookies: CookieTypes | None = None,
2284
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2285
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2286
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2287
- extensions: RequestExtensions | None = None,
2288
- ) -> AddMemoryRecommendations:
2289
- """
2290
- Generate synthetic memory suggestions to improve a specific prediction.
2291
-
2292
- The returned suggestions have labels as string representations of integer indices
2293
- corresponding to the memoryset's label_names.
2294
- """
2295
- pass
2296
-
2297
- @overload
2298
- def GET(
2299
- self,
2300
- path: Literal["/telemetry/feedback_category"],
2301
- *,
2302
- params: None = None,
2303
- parse_as: Literal["json"] = "json",
2304
- headers: HeaderTypes | None = None,
2305
- cookies: CookieTypes | None = None,
2306
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2307
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2308
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2309
- extensions: RequestExtensions | None = None,
2310
- ) -> list[PredictionFeedbackCategory]:
2311
- """List all feedback categories for the organization."""
2312
- pass
2313
-
2314
- @overload
2315
- def GET(
2316
- self,
2317
- path: Literal["/telemetry/feedback_category/{name_or_id}"],
2318
- *,
2319
- params: GetTelemetryFeedbackCategoryByNameOrIdParams,
2320
- parse_as: Literal["json"] = "json",
2321
- headers: HeaderTypes | None = None,
2322
- cookies: CookieTypes | None = None,
2323
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2324
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2325
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2326
- extensions: RequestExtensions | None = None,
2327
- ) -> PredictionFeedbackCategory:
2328
- """Get a feedback category by name or ID."""
2329
- pass
2330
-
2331
- @overload
2332
- def GET(
2333
- self,
2334
- path: Literal["/agents/bootstrap_classification_model/{task_id}"],
2643
+ path: Literal["/telemetry/prediction/{prediction_id}/memory_suggestions"],
2335
2644
  *,
2336
- params: GetAgentsBootstrapClassificationModelByTaskIdParams,
2645
+ params: GetTelemetryPredictionByPredictionIdMemorySuggestionsParams,
2337
2646
  parse_as: Literal["json"] = "json",
2338
2647
  headers: HeaderTypes | None = None,
2339
2648
  cookies: CookieTypes | None = None,
@@ -2341,14 +2650,19 @@ class OrcaClient(Client):
2341
2650
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2342
2651
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2343
2652
  extensions: RequestExtensions | None = None,
2344
- ) -> BootstrapClassificationModelResponse:
2345
- """Get the status of a bootstrap classification model task"""
2653
+ ) -> AddMemoryRecommendations:
2654
+ """
2655
+ Generate synthetic memory suggestions to improve a specific prediction.
2656
+
2657
+ The returned suggestions have labels as string representations of integer indices
2658
+ corresponding to the memoryset's label_names.
2659
+ """
2346
2660
  pass
2347
2661
 
2348
2662
  @overload
2349
2663
  def GET(
2350
2664
  self,
2351
- path: Literal["/gpu/"],
2665
+ path: Literal["/telemetry/feedback_category"],
2352
2666
  *,
2353
2667
  params: None = None,
2354
2668
  parse_as: Literal["json"] = "json",
@@ -2358,15 +2672,16 @@ class OrcaClient(Client):
2358
2672
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2359
2673
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2360
2674
  extensions: RequestExtensions | None = None,
2361
- ) -> Any:
2675
+ ) -> list[PredictionFeedbackCategory]:
2676
+ """List all feedback categories for the organization."""
2362
2677
  pass
2363
2678
 
2364
2679
  @overload
2365
2680
  def GET(
2366
2681
  self,
2367
- path: Literal["/gpu/check/alive"],
2682
+ path: Literal["/telemetry/feedback_category/{name_or_id}"],
2368
2683
  *,
2369
- params: None = None,
2684
+ params: GetTelemetryFeedbackCategoryByNameOrIdParams,
2370
2685
  parse_as: Literal["json"] = "json",
2371
2686
  headers: HeaderTypes | None = None,
2372
2687
  cookies: CookieTypes | None = None,
@@ -2374,15 +2689,16 @@ class OrcaClient(Client):
2374
2689
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2375
2690
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2376
2691
  extensions: RequestExtensions | None = None,
2377
- ) -> Any:
2692
+ ) -> PredictionFeedbackCategory:
2693
+ """Get a feedback category by name or ID."""
2378
2694
  pass
2379
2695
 
2380
2696
  @overload
2381
2697
  def GET(
2382
2698
  self,
2383
- path: Literal["/gpu/check/ready"],
2699
+ path: Literal["/agents/bootstrap_classification_model/{task_id}"],
2384
2700
  *,
2385
- params: None = None,
2701
+ params: GetAgentsBootstrapClassificationModelByTaskIdParams,
2386
2702
  parse_as: Literal["json"] = "json",
2387
2703
  headers: HeaderTypes | None = None,
2388
2704
  cookies: CookieTypes | None = None,
@@ -2390,7 +2706,8 @@ class OrcaClient(Client):
2390
2706
  follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
2391
2707
  timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
2392
2708
  extensions: RequestExtensions | None = None,
2393
- ) -> Any:
2709
+ ) -> BootstrapClassificationModelResponse:
2710
+ """Get the status of a bootstrap classification model task"""
2394
2711
  pass
2395
2712
 
2396
2713
  def GET(
@@ -3104,233 +3421,6 @@ class OrcaClient(Client):
3104
3421
  else res.json() if parse_as == "json" else res.text if parse_as == "text" else res.content
3105
3422
  )
3106
3423
 
3107
- @overload
3108
- def DELETE(
3109
- self,
3110
- path: Literal["/auth/api_key/{name_or_id}"],
3111
- *,
3112
- params: DeleteAuthApiKeyByNameOrIdParams,
3113
- parse_as: Literal["json"] = "json",
3114
- headers: HeaderTypes | None = None,
3115
- cookies: CookieTypes | None = None,
3116
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3117
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
3118
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3119
- extensions: RequestExtensions | None = None,
3120
- ) -> None:
3121
- """Delete an API key by name or ID."""
3122
- pass
3123
-
3124
- @overload
3125
- def DELETE(
3126
- self,
3127
- path: Literal["/auth/org"],
3128
- *,
3129
- params: None = None,
3130
- parse_as: Literal["json"] = "json",
3131
- headers: HeaderTypes | None = None,
3132
- cookies: CookieTypes | None = None,
3133
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3134
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
3135
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3136
- extensions: RequestExtensions | None = None,
3137
- ) -> None:
3138
- """Deletes the org and all associated resources"""
3139
- pass
3140
-
3141
- @overload
3142
- def DELETE(
3143
- self,
3144
- path: Literal["/memoryset/{name_or_id}"],
3145
- *,
3146
- params: DeleteMemorysetByNameOrIdParams,
3147
- parse_as: Literal["json"] = "json",
3148
- headers: HeaderTypes | None = None,
3149
- cookies: CookieTypes | None = None,
3150
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3151
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
3152
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3153
- extensions: RequestExtensions | None = None,
3154
- ) -> None:
3155
- pass
3156
-
3157
- @overload
3158
- def DELETE(
3159
- self,
3160
- path: Literal["/memoryset/{name_or_id}/memory/{memory_id}"],
3161
- *,
3162
- params: DeleteMemorysetByNameOrIdMemoryByMemoryIdParams,
3163
- parse_as: Literal["json"] = "json",
3164
- headers: HeaderTypes | None = None,
3165
- cookies: CookieTypes | None = None,
3166
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3167
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
3168
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3169
- extensions: RequestExtensions | None = None,
3170
- ) -> None:
3171
- pass
3172
-
3173
- @overload
3174
- def DELETE(
3175
- self,
3176
- path: Literal["/finetuned_embedding_model/{name_or_id}"],
3177
- *,
3178
- params: DeleteFinetunedEmbeddingModelByNameOrIdParams,
3179
- parse_as: Literal["json"] = "json",
3180
- headers: HeaderTypes | None = None,
3181
- cookies: CookieTypes | None = None,
3182
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3183
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
3184
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3185
- extensions: RequestExtensions | None = None,
3186
- ) -> None:
3187
- """Delete a finetuned embedding model by name or ID."""
3188
- pass
3189
-
3190
- @overload
3191
- def DELETE(
3192
- self,
3193
- path: Literal["/datasource/{name_or_id}"],
3194
- *,
3195
- params: DeleteDatasourceByNameOrIdParams,
3196
- parse_as: Literal["json"] = "json",
3197
- headers: HeaderTypes | None = None,
3198
- cookies: CookieTypes | None = None,
3199
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3200
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
3201
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3202
- extensions: RequestExtensions | None = None,
3203
- ) -> None:
3204
- """Delete a datasource by name or ID."""
3205
- pass
3206
-
3207
- @overload
3208
- def DELETE(
3209
- self,
3210
- path: Literal["/classification_model/{name_or_id}"],
3211
- *,
3212
- params: DeleteClassificationModelByNameOrIdParams,
3213
- parse_as: Literal["json"] = "json",
3214
- headers: HeaderTypes | None = None,
3215
- cookies: CookieTypes | None = None,
3216
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3217
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
3218
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3219
- extensions: RequestExtensions | None = None,
3220
- ) -> None:
3221
- pass
3222
-
3223
- @overload
3224
- def DELETE(
3225
- self,
3226
- path: Literal["/classification_model/{model_name_or_id}/evaluation/{task_id}"],
3227
- *,
3228
- params: DeleteClassificationModelByModelNameOrIdEvaluationByTaskIdParams,
3229
- parse_as: Literal["json"] = "json",
3230
- headers: HeaderTypes | None = None,
3231
- cookies: CookieTypes | None = None,
3232
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3233
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
3234
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3235
- extensions: RequestExtensions | None = None,
3236
- ) -> None:
3237
- pass
3238
-
3239
- @overload
3240
- def DELETE(
3241
- self,
3242
- path: Literal["/regression_model/{name_or_id}"],
3243
- *,
3244
- params: DeleteRegressionModelByNameOrIdParams,
3245
- parse_as: Literal["json"] = "json",
3246
- headers: HeaderTypes | None = None,
3247
- cookies: CookieTypes | None = None,
3248
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3249
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
3250
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3251
- extensions: RequestExtensions | None = None,
3252
- ) -> None:
3253
- pass
3254
-
3255
- @overload
3256
- def DELETE(
3257
- self,
3258
- path: Literal["/regression_model/{model_name_or_id}/evaluation/{task_id}"],
3259
- *,
3260
- params: DeleteRegressionModelByModelNameOrIdEvaluationByTaskIdParams,
3261
- parse_as: Literal["json"] = "json",
3262
- headers: HeaderTypes | None = None,
3263
- cookies: CookieTypes | None = None,
3264
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3265
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
3266
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3267
- extensions: RequestExtensions | None = None,
3268
- ) -> None:
3269
- pass
3270
-
3271
- @overload
3272
- def DELETE(
3273
- self,
3274
- path: Literal["/task/{task_id}/abort"],
3275
- *,
3276
- params: DeleteTaskByTaskIdAbortParams,
3277
- parse_as: Literal["json"] = "json",
3278
- headers: HeaderTypes | None = None,
3279
- cookies: CookieTypes | None = None,
3280
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3281
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
3282
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3283
- extensions: RequestExtensions | None = None,
3284
- ) -> None:
3285
- pass
3286
-
3287
- @overload
3288
- def DELETE(
3289
- self,
3290
- path: Literal["/telemetry/feedback_category/{name_or_id}"],
3291
- *,
3292
- params: DeleteTelemetryFeedbackCategoryByNameOrIdParams,
3293
- parse_as: Literal["json"] = "json",
3294
- headers: HeaderTypes | None = None,
3295
- cookies: CookieTypes | None = None,
3296
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3297
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
3298
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3299
- extensions: RequestExtensions | None = None,
3300
- ) -> None:
3301
- """Delete a feedback category and all associated feedback records."""
3302
- pass
3303
-
3304
- def DELETE(
3305
- self,
3306
- path: str,
3307
- *,
3308
- params: Mapping[str, Any] | None = None,
3309
- parse_as: Literal["json", "text"] | None = "json",
3310
- headers: HeaderTypes | None = None,
3311
- cookies: CookieTypes | None = None,
3312
- auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3313
- follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
3314
- timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
3315
- extensions: RequestExtensions | None = None,
3316
- ) -> Any:
3317
- path_params, query_params = self._parse_params(params or {}, path)
3318
- res = self.delete(
3319
- path.format(**path_params),
3320
- params=query_params,
3321
- headers=headers,
3322
- cookies=cookies,
3323
- auth=auth,
3324
- follow_redirects=follow_redirects,
3325
- timeout=timeout,
3326
- extensions=extensions,
3327
- ).raise_for_status()
3328
- return (
3329
- None
3330
- if res.status_code == 204
3331
- else res.json() if parse_as == "json" else res.text if parse_as == "text" else res.content
3332
- )
3333
-
3334
3424
  @overload
3335
3425
  def PUT(
3336
3426
  self,
@@ -3641,6 +3731,15 @@ logging.getLogger("httpx").setLevel(logging.WARNING)
3641
3731
  logging.getLogger("httpcore").setLevel(logging.ERROR)
3642
3732
 
3643
3733
  orca_api = OrcaClient(
3734
+ transport=RetryTransport(
3735
+ transport=HTTPTransport(),
3736
+ retry=Retry(
3737
+ total=5,
3738
+ backoff_factor=0.5,
3739
+ allowed_methods=["GET", "POST", "PUT", "PATCH", "DELETE"],
3740
+ status_forcelist=[429, 500, 502, 503, 504],
3741
+ ),
3742
+ ),
3644
3743
  event_hooks={"request": [_instrument_request], "response": [_raise_error_for_response]},
3645
3744
  follow_redirects=True,
3646
3745
  timeout=Timeout(connect=3, read=20, write=10, pool=5),