@workers-community/workers-types 4.20250422.0 → 4.20250424.0
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.
- package/index.d.ts +10 -0
- package/index.ts +10 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -4416,8 +4416,18 @@ declare abstract class AiGateway {
|
|
|
4416
4416
|
interface AutoRAGInternalError extends Error {}
|
|
4417
4417
|
interface AutoRAGNotFoundError extends Error {}
|
|
4418
4418
|
interface AutoRAGUnauthorizedError extends Error {}
|
|
4419
|
+
type ComparisonFilter = {
|
|
4420
|
+
key: string;
|
|
4421
|
+
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
4422
|
+
value: string | number | boolean;
|
|
4423
|
+
};
|
|
4424
|
+
type CompoundFilter = {
|
|
4425
|
+
type: "and" | "or";
|
|
4426
|
+
filters: ComparisonFilter[];
|
|
4427
|
+
};
|
|
4419
4428
|
type AutoRagSearchRequest = {
|
|
4420
4429
|
query: string;
|
|
4430
|
+
filters?: CompoundFilter | ComparisonFilter;
|
|
4421
4431
|
max_num_results?: number;
|
|
4422
4432
|
ranking_options?: {
|
|
4423
4433
|
ranker?: string;
|
package/index.ts
CHANGED
|
@@ -4432,8 +4432,18 @@ export declare abstract class AiGateway {
|
|
|
4432
4432
|
export interface AutoRAGInternalError extends Error {}
|
|
4433
4433
|
export interface AutoRAGNotFoundError extends Error {}
|
|
4434
4434
|
export interface AutoRAGUnauthorizedError extends Error {}
|
|
4435
|
+
export type ComparisonFilter = {
|
|
4436
|
+
key: string;
|
|
4437
|
+
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
4438
|
+
value: string | number | boolean;
|
|
4439
|
+
};
|
|
4440
|
+
export type CompoundFilter = {
|
|
4441
|
+
type: "and" | "or";
|
|
4442
|
+
filters: ComparisonFilter[];
|
|
4443
|
+
};
|
|
4435
4444
|
export type AutoRagSearchRequest = {
|
|
4436
4445
|
query: string;
|
|
4446
|
+
filters?: CompoundFilter | ComparisonFilter;
|
|
4437
4447
|
max_num_results?: number;
|
|
4438
4448
|
ranking_options?: {
|
|
4439
4449
|
ranker?: string;
|