orca-sdk 0.1.10__py3-none-any.whl → 0.1.12__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/__init__.py +3 -3
- orca_sdk/_utils/analysis_ui.py +4 -1
- orca_sdk/_utils/auth.py +2 -3
- orca_sdk/_utils/common.py +24 -1
- orca_sdk/_utils/prediction_result_ui.py +4 -1
- orca_sdk/_utils/torch_parsing.py +77 -0
- orca_sdk/_utils/torch_parsing_test.py +142 -0
- orca_sdk/_utils/value_parser.py +44 -17
- orca_sdk/_utils/value_parser_test.py +6 -5
- orca_sdk/async_client.py +234 -22
- orca_sdk/classification_model.py +203 -66
- orca_sdk/classification_model_test.py +85 -25
- orca_sdk/client.py +234 -20
- orca_sdk/conftest.py +97 -16
- orca_sdk/credentials_test.py +5 -8
- orca_sdk/datasource.py +44 -21
- orca_sdk/datasource_test.py +8 -2
- orca_sdk/embedding_model.py +15 -33
- orca_sdk/embedding_model_test.py +30 -1
- orca_sdk/memoryset.py +558 -425
- orca_sdk/memoryset_test.py +120 -185
- orca_sdk/regression_model.py +186 -65
- orca_sdk/regression_model_test.py +62 -3
- orca_sdk/telemetry.py +16 -7
- {orca_sdk-0.1.10.dist-info → orca_sdk-0.1.12.dist-info}/METADATA +4 -8
- orca_sdk-0.1.12.dist-info/RECORD +38 -0
- orca_sdk/_shared/__init__.py +0 -10
- orca_sdk/_shared/metrics.py +0 -634
- orca_sdk/_shared/metrics_test.py +0 -570
- orca_sdk/_utils/data_parsing.py +0 -129
- orca_sdk/_utils/data_parsing_test.py +0 -244
- orca_sdk-0.1.10.dist-info/RECORD +0 -41
- {orca_sdk-0.1.10.dist-info → orca_sdk-0.1.12.dist-info}/WHEEL +0 -0
orca_sdk/client.py
CHANGED
|
@@ -85,7 +85,7 @@ class BaseLabelPredictionResult(TypedDict):
|
|
|
85
85
|
anomaly_score: float | None
|
|
86
86
|
label: int | None
|
|
87
87
|
label_name: str | None
|
|
88
|
-
logits: list[float]
|
|
88
|
+
logits: list[float] | None
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
class BaseModel(TypedDict):
|
|
@@ -160,6 +160,18 @@ The type of a column in a datasource
|
|
|
160
160
|
"""
|
|
161
161
|
|
|
162
162
|
|
|
163
|
+
class ComputeClassificationMetricsRequest(TypedDict):
|
|
164
|
+
expected_labels: list[int]
|
|
165
|
+
logits: list[list[float] | None]
|
|
166
|
+
anomaly_scores: NotRequired[list[float] | None]
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
class ComputeRegressionMetricsRequest(TypedDict):
|
|
170
|
+
expected_scores: list[float]
|
|
171
|
+
predicted_scores: list[float | None]
|
|
172
|
+
anomaly_scores: NotRequired[list[float] | None]
|
|
173
|
+
|
|
174
|
+
|
|
163
175
|
class ConstraintViolationErrorResponse(TypedDict):
|
|
164
176
|
status_code: Literal[409]
|
|
165
177
|
constraint: str
|
|
@@ -209,12 +221,13 @@ class DatasetFilterItem(TypedDict):
|
|
|
209
221
|
value: Any
|
|
210
222
|
|
|
211
223
|
|
|
212
|
-
class
|
|
213
|
-
|
|
224
|
+
class DeleteMemoriesResponse(TypedDict):
|
|
225
|
+
deleted_count: int
|
|
214
226
|
|
|
215
227
|
|
|
216
228
|
class DeleteMemorysetsRequest(TypedDict):
|
|
217
229
|
memoryset_ids: list[str]
|
|
230
|
+
cascade: NotRequired[bool]
|
|
218
231
|
|
|
219
232
|
|
|
220
233
|
class EmbedRequest(TypedDict):
|
|
@@ -290,7 +303,20 @@ class FilterItem(TypedDict):
|
|
|
290
303
|
]
|
|
291
304
|
)
|
|
292
305
|
op: Literal["==", "!=", ">", ">=", "<", "<=", "in", "not in", "like", "contains all", "contains any"]
|
|
293
|
-
value:
|
|
306
|
+
value: (
|
|
307
|
+
str
|
|
308
|
+
| int
|
|
309
|
+
| float
|
|
310
|
+
| bool
|
|
311
|
+
| list[None]
|
|
312
|
+
| list[str]
|
|
313
|
+
| list[str | None]
|
|
314
|
+
| list[int]
|
|
315
|
+
| list[int | None]
|
|
316
|
+
| list[float]
|
|
317
|
+
| list[bool]
|
|
318
|
+
| None
|
|
319
|
+
)
|
|
294
320
|
transform: NotRequired[Literal["length"]]
|
|
295
321
|
|
|
296
322
|
|
|
@@ -308,6 +334,7 @@ class GetDatasourceRowsRequest(TypedDict):
|
|
|
308
334
|
|
|
309
335
|
class GetMemoriesRequest(TypedDict):
|
|
310
336
|
memory_ids: list[str]
|
|
337
|
+
consistency_level: NotRequired[Literal["Bounded", "Session", "Strong", "Eventual"]]
|
|
311
338
|
|
|
312
339
|
|
|
313
340
|
class HealthyResponse(TypedDict):
|
|
@@ -353,6 +380,13 @@ class LabelPercentage(TypedDict):
|
|
|
353
380
|
percentage: float
|
|
354
381
|
|
|
355
382
|
|
|
383
|
+
class LabeledBatchMemoryUpdatePatch(TypedDict):
|
|
384
|
+
metadata: NotRequired[dict[str, str | int | float | bool | None] | None]
|
|
385
|
+
source_id: NotRequired[str | None]
|
|
386
|
+
partition_id: NotRequired[str | None]
|
|
387
|
+
label: NotRequired[int | None]
|
|
388
|
+
|
|
389
|
+
|
|
356
390
|
class LabeledExample(TypedDict):
|
|
357
391
|
text: str
|
|
358
392
|
label_name: str
|
|
@@ -371,8 +405,7 @@ class ListMemoriesRequest(TypedDict):
|
|
|
371
405
|
offset: NotRequired[int]
|
|
372
406
|
limit: NotRequired[int]
|
|
373
407
|
filters: NotRequired[list[FilterItem]]
|
|
374
|
-
|
|
375
|
-
partition_filter_mode: NotRequired[Literal["ignore_partitions", "include_global", "exclude_global", "only_global"]]
|
|
408
|
+
consistency_level: NotRequired[Literal["Bounded", "Session", "Strong", "Eventual"]]
|
|
376
409
|
|
|
377
410
|
|
|
378
411
|
class LookupRequest(TypedDict):
|
|
@@ -381,6 +414,7 @@ class LookupRequest(TypedDict):
|
|
|
381
414
|
prompt: NotRequired[str | None]
|
|
382
415
|
partition_id: NotRequired[str | list[str | None] | None]
|
|
383
416
|
partition_filter_mode: NotRequired[Literal["ignore_partitions", "include_global", "exclude_global", "only_global"]]
|
|
417
|
+
consistency_level: NotRequired[Literal["Bounded", "Session", "Strong", "Eventual"]]
|
|
384
418
|
|
|
385
419
|
|
|
386
420
|
class LookupScoreMetrics(TypedDict):
|
|
@@ -524,6 +558,7 @@ class NotFoundErrorResponse(TypedDict):
|
|
|
524
558
|
"api_key",
|
|
525
559
|
"datasource",
|
|
526
560
|
"memoryset",
|
|
561
|
+
"predictive_model",
|
|
527
562
|
"classification_model",
|
|
528
563
|
"regression_model",
|
|
529
564
|
"prediction",
|
|
@@ -550,8 +585,17 @@ class OrgPlan(TypedDict):
|
|
|
550
585
|
|
|
551
586
|
class PRCurve(TypedDict):
|
|
552
587
|
thresholds: list[float]
|
|
588
|
+
"""
|
|
589
|
+
Threshold values for the curve
|
|
590
|
+
"""
|
|
553
591
|
precisions: list[float]
|
|
592
|
+
"""
|
|
593
|
+
Precision values at each threshold
|
|
594
|
+
"""
|
|
554
595
|
recalls: list[float]
|
|
596
|
+
"""
|
|
597
|
+
Recall values at each threshold
|
|
598
|
+
"""
|
|
555
599
|
|
|
556
600
|
|
|
557
601
|
class PredictionFeedback(TypedDict):
|
|
@@ -622,8 +666,17 @@ RARHeadType: TypeAlias = Literal["MMOE", "KNN"]
|
|
|
622
666
|
|
|
623
667
|
class ROCCurve(TypedDict):
|
|
624
668
|
thresholds: list[float]
|
|
669
|
+
"""
|
|
670
|
+
Threshold values for the curve
|
|
671
|
+
"""
|
|
625
672
|
false_positive_rates: list[float]
|
|
673
|
+
"""
|
|
674
|
+
False positive rate values at each threshold
|
|
675
|
+
"""
|
|
626
676
|
true_positive_rates: list[float]
|
|
677
|
+
"""
|
|
678
|
+
True positive rate values at each threshold
|
|
679
|
+
"""
|
|
627
680
|
|
|
628
681
|
|
|
629
682
|
class ReadyResponse(TypedDict):
|
|
@@ -646,15 +699,49 @@ class RegressionEvaluationRequest(TypedDict):
|
|
|
646
699
|
|
|
647
700
|
class RegressionMetrics(TypedDict):
|
|
648
701
|
coverage: float
|
|
702
|
+
"""
|
|
703
|
+
Percentage of predictions that are not none
|
|
704
|
+
"""
|
|
649
705
|
mse: float
|
|
706
|
+
"""
|
|
707
|
+
Mean squared error of the predictions
|
|
708
|
+
"""
|
|
650
709
|
rmse: float
|
|
710
|
+
"""
|
|
711
|
+
Root mean squared error of the predictions
|
|
712
|
+
"""
|
|
651
713
|
mae: float
|
|
714
|
+
"""
|
|
715
|
+
Mean absolute error of the predictions
|
|
716
|
+
"""
|
|
652
717
|
r2: float
|
|
718
|
+
"""
|
|
719
|
+
R-squared score (coefficient of determination) of the predictions
|
|
720
|
+
"""
|
|
653
721
|
explained_variance: float
|
|
722
|
+
"""
|
|
723
|
+
Explained variance score of the predictions
|
|
724
|
+
"""
|
|
654
725
|
loss: float
|
|
726
|
+
"""
|
|
727
|
+
Mean squared error loss of the predictions
|
|
728
|
+
"""
|
|
655
729
|
anomaly_score_mean: NotRequired[float | None]
|
|
730
|
+
"""
|
|
731
|
+
Mean of anomaly scores across the dataset
|
|
732
|
+
"""
|
|
656
733
|
anomaly_score_median: NotRequired[float | None]
|
|
734
|
+
"""
|
|
735
|
+
Median of anomaly scores across the dataset
|
|
736
|
+
"""
|
|
657
737
|
anomaly_score_variance: NotRequired[float | None]
|
|
738
|
+
"""
|
|
739
|
+
Variance of anomaly scores across the dataset
|
|
740
|
+
"""
|
|
741
|
+
warnings: NotRequired[list[str]]
|
|
742
|
+
"""
|
|
743
|
+
Human-readable warnings about skipped or adjusted metrics
|
|
744
|
+
"""
|
|
658
745
|
|
|
659
746
|
|
|
660
747
|
class RegressionModelMetadata(TypedDict):
|
|
@@ -683,7 +770,7 @@ class RegressionPredictionRequest(TypedDict):
|
|
|
683
770
|
save_telemetry_synchronously: NotRequired[bool]
|
|
684
771
|
prompt: NotRequired[str | None]
|
|
685
772
|
use_lookup_cache: NotRequired[bool]
|
|
686
|
-
consistency_level: NotRequired[Literal["Bounded", "Session", "Strong", "Eventual"]
|
|
773
|
+
consistency_level: NotRequired[Literal["Bounded", "Session", "Strong", "Eventual"]]
|
|
687
774
|
ignore_unlabeled: NotRequired[bool]
|
|
688
775
|
partition_ids: NotRequired[str | list[str | None] | None]
|
|
689
776
|
partition_filter_mode: NotRequired[Literal["ignore_partitions", "include_global", "exclude_global", "only_global"]]
|
|
@@ -728,6 +815,13 @@ class ScorePredictionWithMemoriesAndFeedback(TypedDict):
|
|
|
728
815
|
feedbacks: list[PredictionFeedback]
|
|
729
816
|
|
|
730
817
|
|
|
818
|
+
class ScoredBatchMemoryUpdatePatch(TypedDict):
|
|
819
|
+
metadata: NotRequired[dict[str, str | int | float | bool | None] | None]
|
|
820
|
+
source_id: NotRequired[str | None]
|
|
821
|
+
partition_id: NotRequired[str | None]
|
|
822
|
+
score: NotRequired[float | None]
|
|
823
|
+
|
|
824
|
+
|
|
731
825
|
class ScoredMemory(TypedDict):
|
|
732
826
|
value: str | bytes
|
|
733
827
|
embedding: list[float]
|
|
@@ -833,6 +927,10 @@ class UnauthorizedErrorResponse(TypedDict):
|
|
|
833
927
|
reason: str
|
|
834
928
|
|
|
835
929
|
|
|
930
|
+
class UpdateMemoriesResponse(TypedDict):
|
|
931
|
+
updated_count: int
|
|
932
|
+
|
|
933
|
+
|
|
836
934
|
class UpdateOrgPlanRequest(TypedDict):
|
|
837
935
|
tier: Literal["FREE", "PRO", "ENTERPRISE", "CANCELLED"]
|
|
838
936
|
|
|
@@ -883,6 +981,7 @@ class GetMemorysetByNameOrIdParams(TypedDict):
|
|
|
883
981
|
|
|
884
982
|
class DeleteMemorysetByNameOrIdParams(TypedDict):
|
|
885
983
|
name_or_id: str
|
|
984
|
+
cascade: NotRequired[bool]
|
|
886
985
|
|
|
887
986
|
|
|
888
987
|
class PostGpuMemorysetByNameOrIdLookupParams(TypedDict):
|
|
@@ -895,6 +994,7 @@ class GetMemorysetByNameOrIdMemoryByMemoryIdParams(TypedDict):
|
|
|
895
994
|
"""
|
|
896
995
|
ID of the memory
|
|
897
996
|
"""
|
|
997
|
+
consistency_level: NotRequired[Literal["Bounded", "Session", "Strong", "Eventual"]]
|
|
898
998
|
|
|
899
999
|
|
|
900
1000
|
class DeleteMemorysetByNameOrIdMemoryByMemoryIdParams(TypedDict):
|
|
@@ -963,6 +1063,7 @@ class GetFinetunedEmbeddingModelByNameOrIdParams(TypedDict):
|
|
|
963
1063
|
|
|
964
1064
|
class DeleteFinetunedEmbeddingModelByNameOrIdParams(TypedDict):
|
|
965
1065
|
name_or_id: str
|
|
1066
|
+
cascade: NotRequired[bool]
|
|
966
1067
|
|
|
967
1068
|
|
|
968
1069
|
class PostGpuFinetunedEmbeddingModelByNameOrIdEmbeddingParams(TypedDict):
|
|
@@ -1056,6 +1157,20 @@ class GetDatasourceByNameOrIdDownloadParams(TypedDict):
|
|
|
1056
1157
|
"""
|
|
1057
1158
|
|
|
1058
1159
|
|
|
1160
|
+
class GetClassificationModelParams(TypedDict):
|
|
1161
|
+
memoryset_name_or_id: NotRequired[str | None]
|
|
1162
|
+
"""
|
|
1163
|
+
Filter by memoryset name or ID
|
|
1164
|
+
"""
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
class GetRegressionModelParams(TypedDict):
|
|
1168
|
+
memoryset_name_or_id: NotRequired[str | None]
|
|
1169
|
+
"""
|
|
1170
|
+
Filter by memoryset name or ID
|
|
1171
|
+
"""
|
|
1172
|
+
|
|
1173
|
+
|
|
1059
1174
|
class PatchClassificationModelByNameOrIdParams(TypedDict):
|
|
1060
1175
|
name_or_id: str
|
|
1061
1176
|
|
|
@@ -1080,6 +1195,13 @@ class DeleteRegressionModelByNameOrIdParams(TypedDict):
|
|
|
1080
1195
|
name_or_id: str
|
|
1081
1196
|
|
|
1082
1197
|
|
|
1198
|
+
class GetPredictiveModelParams(TypedDict):
|
|
1199
|
+
memoryset_name_or_id: NotRequired[str | None]
|
|
1200
|
+
"""
|
|
1201
|
+
Filter by memoryset name or ID
|
|
1202
|
+
"""
|
|
1203
|
+
|
|
1204
|
+
|
|
1083
1205
|
class PostGpuClassificationModelByNameOrIdPredictionParams(TypedDict):
|
|
1084
1206
|
name_or_id: str
|
|
1085
1207
|
|
|
@@ -1250,18 +1372,57 @@ class BootstrapLabeledMemoryDataResult(TypedDict):
|
|
|
1250
1372
|
|
|
1251
1373
|
class ClassificationMetrics(TypedDict):
|
|
1252
1374
|
coverage: float
|
|
1375
|
+
"""
|
|
1376
|
+
Percentage of predictions that are not none
|
|
1377
|
+
"""
|
|
1253
1378
|
f1_score: float
|
|
1379
|
+
"""
|
|
1380
|
+
F1 score of the predictions
|
|
1381
|
+
"""
|
|
1254
1382
|
accuracy: float
|
|
1383
|
+
"""
|
|
1384
|
+
Accuracy of the predictions
|
|
1385
|
+
"""
|
|
1255
1386
|
loss: float | None
|
|
1387
|
+
"""
|
|
1388
|
+
Cross-entropy loss of the logits
|
|
1389
|
+
"""
|
|
1256
1390
|
anomaly_score_mean: NotRequired[float | None]
|
|
1391
|
+
"""
|
|
1392
|
+
Mean of anomaly scores across the dataset
|
|
1393
|
+
"""
|
|
1257
1394
|
anomaly_score_median: NotRequired[float | None]
|
|
1395
|
+
"""
|
|
1396
|
+
Median of anomaly scores across the dataset
|
|
1397
|
+
"""
|
|
1258
1398
|
anomaly_score_variance: NotRequired[float | None]
|
|
1399
|
+
"""
|
|
1400
|
+
Variance of anomaly scores across the dataset
|
|
1401
|
+
"""
|
|
1259
1402
|
roc_auc: NotRequired[float | None]
|
|
1403
|
+
"""
|
|
1404
|
+
Receiver operating characteristic area under the curve
|
|
1405
|
+
"""
|
|
1260
1406
|
pr_auc: NotRequired[float | None]
|
|
1407
|
+
"""
|
|
1408
|
+
Average precision (area under the curve of the precision-recall curve)
|
|
1409
|
+
"""
|
|
1261
1410
|
pr_curve: NotRequired[PRCurve | None]
|
|
1411
|
+
"""
|
|
1412
|
+
Precision-recall curve
|
|
1413
|
+
"""
|
|
1262
1414
|
roc_curve: NotRequired[ROCCurve | None]
|
|
1415
|
+
"""
|
|
1416
|
+
Receiver operating characteristic curve
|
|
1417
|
+
"""
|
|
1263
1418
|
confusion_matrix: NotRequired[list[list[int]] | None]
|
|
1419
|
+
"""
|
|
1420
|
+
Confusion matrix where the entry at row i, column j is the count of samples with true label i predicted as label j
|
|
1421
|
+
"""
|
|
1264
1422
|
warnings: NotRequired[list[str]]
|
|
1423
|
+
"""
|
|
1424
|
+
Human-readable warnings about skipped or adjusted metrics
|
|
1425
|
+
"""
|
|
1265
1426
|
|
|
1266
1427
|
|
|
1267
1428
|
class ClassificationModelMetadata(TypedDict):
|
|
@@ -1294,7 +1455,7 @@ class ClassificationPredictionRequest(TypedDict):
|
|
|
1294
1455
|
save_telemetry_synchronously: NotRequired[bool]
|
|
1295
1456
|
prompt: NotRequired[str | None]
|
|
1296
1457
|
use_lookup_cache: NotRequired[bool]
|
|
1297
|
-
consistency_level: NotRequired[Literal["Bounded", "Session", "Strong", "Eventual"]
|
|
1458
|
+
consistency_level: NotRequired[Literal["Bounded", "Session", "Strong", "Eventual"]]
|
|
1298
1459
|
ignore_unlabeled: NotRequired[bool]
|
|
1299
1460
|
partition_ids: NotRequired[str | list[str | None] | None]
|
|
1300
1461
|
partition_filter_mode: NotRequired[Literal["ignore_partitions", "include_global", "exclude_global", "only_global"]]
|
|
@@ -1308,6 +1469,7 @@ class CloneMemorysetRequest(TypedDict):
|
|
|
1308
1469
|
finetuned_embedding_model_name_or_id: NotRequired[str | None]
|
|
1309
1470
|
max_seq_length_override: NotRequired[int | None]
|
|
1310
1471
|
prompt: NotRequired[str]
|
|
1472
|
+
is_partitioned: NotRequired[bool | None]
|
|
1311
1473
|
|
|
1312
1474
|
|
|
1313
1475
|
class ColumnInfo(TypedDict):
|
|
@@ -1355,6 +1517,7 @@ class CreateMemorysetFromDatasourceRequest(TypedDict):
|
|
|
1355
1517
|
prompt: NotRequired[str]
|
|
1356
1518
|
hidden: NotRequired[bool]
|
|
1357
1519
|
memory_type: NotRequired[MemoryType | None]
|
|
1520
|
+
is_partitioned: NotRequired[bool]
|
|
1358
1521
|
datasource_name_or_id: str
|
|
1359
1522
|
datasource_label_column: NotRequired[str | None]
|
|
1360
1523
|
datasource_score_column: NotRequired[str | None]
|
|
@@ -1379,6 +1542,7 @@ class CreateMemorysetRequest(TypedDict):
|
|
|
1379
1542
|
prompt: NotRequired[str]
|
|
1380
1543
|
hidden: NotRequired[bool]
|
|
1381
1544
|
memory_type: NotRequired[MemoryType | None]
|
|
1545
|
+
is_partitioned: NotRequired[bool]
|
|
1382
1546
|
|
|
1383
1547
|
|
|
1384
1548
|
class CreateRegressionModelRequest(TypedDict):
|
|
@@ -1402,6 +1566,11 @@ class DatasourceMetadata(TypedDict):
|
|
|
1402
1566
|
updated_at: str
|
|
1403
1567
|
|
|
1404
1568
|
|
|
1569
|
+
class DeleteMemoriesRequest(TypedDict):
|
|
1570
|
+
memory_ids: NotRequired[list[str] | None]
|
|
1571
|
+
filters: NotRequired[list[FilterItem] | None]
|
|
1572
|
+
|
|
1573
|
+
|
|
1405
1574
|
class EmbeddingEvaluationResponse(TypedDict):
|
|
1406
1575
|
job_id: str
|
|
1407
1576
|
org_id: str
|
|
@@ -1531,7 +1700,7 @@ class LabelPredictionWithMemoriesAndFeedback(TypedDict):
|
|
|
1531
1700
|
anomaly_score: float | None
|
|
1532
1701
|
label: int | None
|
|
1533
1702
|
label_name: str | None
|
|
1534
|
-
logits: list[float]
|
|
1703
|
+
logits: list[float] | None
|
|
1535
1704
|
timestamp: str
|
|
1536
1705
|
input_value: str | bytes
|
|
1537
1706
|
input_embedding: list[float]
|
|
@@ -1687,6 +1856,7 @@ class TelemetryMemoriesRequest(TypedDict):
|
|
|
1687
1856
|
limit: NotRequired[int]
|
|
1688
1857
|
filters: NotRequired[list[FilterItem | TelemetryFilterItem]]
|
|
1689
1858
|
sort: NotRequired[list[TelemetrySortOptions] | None]
|
|
1859
|
+
consistency_level: NotRequired[Literal["Bounded", "Session", "Strong", "Eventual"]]
|
|
1690
1860
|
|
|
1691
1861
|
|
|
1692
1862
|
class WorkerInfo(TypedDict):
|
|
@@ -1702,7 +1872,10 @@ class WorkerInfo(TypedDict):
|
|
|
1702
1872
|
PatchGpuMemorysetByNameOrIdMemoryRequest: TypeAlias = LabeledMemoryUpdate | ScoredMemoryUpdate
|
|
1703
1873
|
|
|
1704
1874
|
|
|
1705
|
-
|
|
1875
|
+
class BatchMemoryUpdateRequest(TypedDict):
|
|
1876
|
+
updates: NotRequired[list[LabeledMemoryUpdate | ScoredMemoryUpdate] | None]
|
|
1877
|
+
filters: NotRequired[list[FilterItem] | None]
|
|
1878
|
+
patch: NotRequired[LabeledBatchMemoryUpdatePatch | ScoredBatchMemoryUpdatePatch | None]
|
|
1706
1879
|
|
|
1707
1880
|
|
|
1708
1881
|
class CascadingEditSuggestion(TypedDict):
|
|
@@ -1750,6 +1923,7 @@ class MemorysetMetadata(TypedDict):
|
|
|
1750
1923
|
document_prompt_override: str | None
|
|
1751
1924
|
query_prompt_override: str | None
|
|
1752
1925
|
hidden: bool
|
|
1926
|
+
is_partitioned: bool
|
|
1753
1927
|
insertion_task_id: str | None
|
|
1754
1928
|
|
|
1755
1929
|
|
|
@@ -1990,7 +2164,7 @@ class OrcaClient(Client):
|
|
|
1990
2164
|
self,
|
|
1991
2165
|
path: Literal["/memoryset"],
|
|
1992
2166
|
*,
|
|
1993
|
-
params: GetMemorysetParams,
|
|
2167
|
+
params: GetMemorysetParams | None = None,
|
|
1994
2168
|
parse_as: Literal["json"] = "json",
|
|
1995
2169
|
headers: HeaderTypes | None = None,
|
|
1996
2170
|
cookies: CookieTypes | None = None,
|
|
@@ -2046,7 +2220,7 @@ class OrcaClient(Client):
|
|
|
2046
2220
|
follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
|
|
2047
2221
|
timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
|
|
2048
2222
|
extensions: RequestExtensions | None = None,
|
|
2049
|
-
) -> list[list[LabeledMemory]] | list[list[ScoredMemory]]:
|
|
2223
|
+
) -> list[list[LabeledMemory]] | list[list[ScoredMemory]] | None:
|
|
2050
2224
|
pass
|
|
2051
2225
|
|
|
2052
2226
|
@overload
|
|
@@ -2324,7 +2498,7 @@ class OrcaClient(Client):
|
|
|
2324
2498
|
self,
|
|
2325
2499
|
path: Literal["/classification_model"],
|
|
2326
2500
|
*,
|
|
2327
|
-
params: None = None,
|
|
2501
|
+
params: GetClassificationModelParams | None = None,
|
|
2328
2502
|
parse_as: Literal["json"] = "json",
|
|
2329
2503
|
headers: HeaderTypes | None = None,
|
|
2330
2504
|
cookies: CookieTypes | None = None,
|
|
@@ -2340,7 +2514,7 @@ class OrcaClient(Client):
|
|
|
2340
2514
|
self,
|
|
2341
2515
|
path: Literal["/regression_model"],
|
|
2342
2516
|
*,
|
|
2343
|
-
params: None = None,
|
|
2517
|
+
params: GetRegressionModelParams | None = None,
|
|
2344
2518
|
parse_as: Literal["json"] = "json",
|
|
2345
2519
|
headers: HeaderTypes | None = None,
|
|
2346
2520
|
cookies: CookieTypes | None = None,
|
|
@@ -2388,7 +2562,7 @@ class OrcaClient(Client):
|
|
|
2388
2562
|
self,
|
|
2389
2563
|
path: Literal["/predictive_model"],
|
|
2390
2564
|
*,
|
|
2391
|
-
params: None = None,
|
|
2565
|
+
params: GetPredictiveModelParams | None = None,
|
|
2392
2566
|
parse_as: Literal["json"] = "json",
|
|
2393
2567
|
headers: HeaderTypes | None = None,
|
|
2394
2568
|
cookies: CookieTypes | None = None,
|
|
@@ -2500,7 +2674,7 @@ class OrcaClient(Client):
|
|
|
2500
2674
|
self,
|
|
2501
2675
|
path: Literal["/job"],
|
|
2502
2676
|
*,
|
|
2503
|
-
params: GetJobParams,
|
|
2677
|
+
params: GetJobParams | None = None,
|
|
2504
2678
|
parse_as: Literal["json"] = "json",
|
|
2505
2679
|
headers: HeaderTypes | None = None,
|
|
2506
2680
|
cookies: CookieTypes | None = None,
|
|
@@ -2516,7 +2690,7 @@ class OrcaClient(Client):
|
|
|
2516
2690
|
self,
|
|
2517
2691
|
path: Literal["/worker"],
|
|
2518
2692
|
*,
|
|
2519
|
-
params: GetWorkerParams,
|
|
2693
|
+
params: GetWorkerParams | None = None,
|
|
2520
2694
|
parse_as: Literal["json"] = "json",
|
|
2521
2695
|
headers: HeaderTypes | None = None,
|
|
2522
2696
|
cookies: CookieTypes | None = None,
|
|
@@ -3148,7 +3322,7 @@ class OrcaClient(Client):
|
|
|
3148
3322
|
follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
|
|
3149
3323
|
timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
|
|
3150
3324
|
extensions: RequestExtensions | None = None,
|
|
3151
|
-
) ->
|
|
3325
|
+
) -> DeleteMemoriesResponse:
|
|
3152
3326
|
pass
|
|
3153
3327
|
|
|
3154
3328
|
@overload
|
|
@@ -3598,6 +3772,46 @@ class OrcaClient(Client):
|
|
|
3598
3772
|
) -> EvaluationResponse:
|
|
3599
3773
|
pass
|
|
3600
3774
|
|
|
3775
|
+
@overload
|
|
3776
|
+
def POST(
|
|
3777
|
+
self,
|
|
3778
|
+
path: Literal["/classification_model/metrics"],
|
|
3779
|
+
*,
|
|
3780
|
+
params: None = None,
|
|
3781
|
+
json: ComputeClassificationMetricsRequest,
|
|
3782
|
+
data: None = None,
|
|
3783
|
+
files: None = None,
|
|
3784
|
+
content: None = None,
|
|
3785
|
+
parse_as: Literal["json"] = "json",
|
|
3786
|
+
headers: HeaderTypes | None = None,
|
|
3787
|
+
cookies: CookieTypes | None = None,
|
|
3788
|
+
auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
|
|
3789
|
+
follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
|
|
3790
|
+
timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
|
|
3791
|
+
extensions: RequestExtensions | None = None,
|
|
3792
|
+
) -> ClassificationMetrics:
|
|
3793
|
+
pass
|
|
3794
|
+
|
|
3795
|
+
@overload
|
|
3796
|
+
def POST(
|
|
3797
|
+
self,
|
|
3798
|
+
path: Literal["/regression_model/metrics"],
|
|
3799
|
+
*,
|
|
3800
|
+
params: None = None,
|
|
3801
|
+
json: ComputeRegressionMetricsRequest,
|
|
3802
|
+
data: None = None,
|
|
3803
|
+
files: None = None,
|
|
3804
|
+
content: None = None,
|
|
3805
|
+
parse_as: Literal["json"] = "json",
|
|
3806
|
+
headers: HeaderTypes | None = None,
|
|
3807
|
+
cookies: CookieTypes | None = None,
|
|
3808
|
+
auth: AuthTypes | UseClientDefault = USE_CLIENT_DEFAULT,
|
|
3809
|
+
follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
|
|
3810
|
+
timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
|
|
3811
|
+
extensions: RequestExtensions | None = None,
|
|
3812
|
+
) -> RegressionMetrics:
|
|
3813
|
+
pass
|
|
3814
|
+
|
|
3601
3815
|
@overload
|
|
3602
3816
|
def POST(
|
|
3603
3817
|
self,
|
|
@@ -3865,7 +4079,7 @@ class OrcaClient(Client):
|
|
|
3865
4079
|
path: Literal["/gpu/memoryset/{name_or_id}/memories"],
|
|
3866
4080
|
*,
|
|
3867
4081
|
params: PatchGpuMemorysetByNameOrIdMemoriesParams,
|
|
3868
|
-
json:
|
|
4082
|
+
json: BatchMemoryUpdateRequest,
|
|
3869
4083
|
data: None = None,
|
|
3870
4084
|
files: None = None,
|
|
3871
4085
|
content: None = None,
|
|
@@ -3876,7 +4090,7 @@ class OrcaClient(Client):
|
|
|
3876
4090
|
follow_redirects: bool | UseClientDefault = USE_CLIENT_DEFAULT,
|
|
3877
4091
|
timeout: TimeoutTypes | UseClientDefault = USE_CLIENT_DEFAULT,
|
|
3878
4092
|
extensions: RequestExtensions | None = None,
|
|
3879
|
-
) ->
|
|
4093
|
+
) -> UpdateMemoriesResponse:
|
|
3880
4094
|
pass
|
|
3881
4095
|
|
|
3882
4096
|
@overload
|