@orq-ai/node 3.12.8 → 3.12.10
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/bin/mcp-server.js +112 -112
- package/bin/mcp-server.js.map +30 -30
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/FUNCTIONS.md +19 -9
- package/packages/orq-rc/README.md +179 -123
- package/packages/orq-rc/docs/sdks/knowledge/README.md +12 -0
- package/packages/orq-rc/docs/sdks/orq/README.md +0 -81
- package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -3
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +139 -117
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/index.ts +0 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +5 -5
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/runagent.ts +300 -12
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +29 -259
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +335 -12
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/sdk/sdk.ts +1 -15
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/examples/postV2AgentsInternal.example.ts +0 -30
- package/packages/orq-rc/src/funcs/postV2AgentsInternal.ts +0 -159
- package/packages/orq-rc/src/mcp-server/tools/postV2AgentsInternal.ts +0 -33
- package/packages/orq-rc/src/models/operations/postv2agentsinternal.ts +0 -103
|
@@ -333,105 +333,32 @@ export type SearchOptions = {
|
|
|
333
333
|
includeScores?: boolean | undefined;
|
|
334
334
|
};
|
|
335
335
|
|
|
336
|
-
export const SearchKnowledgeProvider = {
|
|
337
|
-
Cohere: "cohere",
|
|
338
|
-
Openai: "openai",
|
|
339
|
-
Anthropic: "anthropic",
|
|
340
|
-
Huggingface: "huggingface",
|
|
341
|
-
Replicate: "replicate",
|
|
342
|
-
Google: "google",
|
|
343
|
-
GoogleAi: "google-ai",
|
|
344
|
-
Azure: "azure",
|
|
345
|
-
Aws: "aws",
|
|
346
|
-
Anyscale: "anyscale",
|
|
347
|
-
Perplexity: "perplexity",
|
|
348
|
-
Groq: "groq",
|
|
349
|
-
Fal: "fal",
|
|
350
|
-
Leonardoai: "leonardoai",
|
|
351
|
-
Nvidia: "nvidia",
|
|
352
|
-
Jina: "jina",
|
|
353
|
-
Togetherai: "togetherai",
|
|
354
|
-
Elevenlabs: "elevenlabs",
|
|
355
|
-
Litellm: "litellm",
|
|
356
|
-
Openailike: "openailike",
|
|
357
|
-
Cerebras: "cerebras",
|
|
358
|
-
Bytedance: "bytedance",
|
|
359
|
-
} as const;
|
|
360
|
-
export type SearchKnowledgeProvider = ClosedEnum<
|
|
361
|
-
typeof SearchKnowledgeProvider
|
|
362
|
-
>;
|
|
363
|
-
|
|
364
|
-
export const SearchKnowledgeModelType = {
|
|
365
|
-
Rerank: "rerank",
|
|
366
|
-
} as const;
|
|
367
|
-
export type SearchKnowledgeModelType = ClosedEnum<
|
|
368
|
-
typeof SearchKnowledgeModelType
|
|
369
|
-
>;
|
|
370
|
-
|
|
371
|
-
export type SearchKnowledgeModelParameters = {
|
|
372
|
-
/**
|
|
373
|
-
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
374
|
-
*/
|
|
375
|
-
threshold?: number | undefined;
|
|
376
|
-
};
|
|
377
|
-
|
|
378
336
|
/**
|
|
379
337
|
* Override the rerank configuration for this search. If not provided, will use the knowledge base configured rerank settings.
|
|
380
338
|
*/
|
|
381
339
|
export type SearchKnowledgeRerankConfig = {
|
|
382
|
-
enabled?: boolean | undefined;
|
|
383
|
-
provider?: SearchKnowledgeProvider | undefined;
|
|
384
340
|
/**
|
|
385
|
-
* The
|
|
341
|
+
* The name of the rerank model to use
|
|
386
342
|
*/
|
|
387
|
-
|
|
343
|
+
model: string;
|
|
388
344
|
/**
|
|
389
|
-
* The
|
|
345
|
+
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
390
346
|
*/
|
|
391
|
-
|
|
347
|
+
threshold?: number | undefined;
|
|
392
348
|
/**
|
|
393
|
-
* The
|
|
349
|
+
* The number of top results to return after reranking. If not provided, will default to the knowledge base configured `top_k`.
|
|
394
350
|
*/
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
modelParameters?: SearchKnowledgeModelParameters | undefined;
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
export const SearchKnowledgeKnowledgeProvider = {
|
|
401
|
-
Cohere: "cohere",
|
|
402
|
-
Openai: "openai",
|
|
403
|
-
Anthropic: "anthropic",
|
|
404
|
-
Huggingface: "huggingface",
|
|
405
|
-
Replicate: "replicate",
|
|
406
|
-
Google: "google",
|
|
407
|
-
GoogleAi: "google-ai",
|
|
408
|
-
Azure: "azure",
|
|
409
|
-
Aws: "aws",
|
|
410
|
-
Anyscale: "anyscale",
|
|
411
|
-
Perplexity: "perplexity",
|
|
412
|
-
Groq: "groq",
|
|
413
|
-
Fal: "fal",
|
|
414
|
-
Leonardoai: "leonardoai",
|
|
415
|
-
Nvidia: "nvidia",
|
|
416
|
-
Jina: "jina",
|
|
417
|
-
Togetherai: "togetherai",
|
|
418
|
-
Elevenlabs: "elevenlabs",
|
|
419
|
-
Litellm: "litellm",
|
|
420
|
-
Openailike: "openailike",
|
|
421
|
-
Cerebras: "cerebras",
|
|
422
|
-
Bytedance: "bytedance",
|
|
423
|
-
} as const;
|
|
424
|
-
export type SearchKnowledgeKnowledgeProvider = ClosedEnum<
|
|
425
|
-
typeof SearchKnowledgeKnowledgeProvider
|
|
426
|
-
>;
|
|
351
|
+
topK?: number | undefined;
|
|
352
|
+
};
|
|
427
353
|
|
|
428
354
|
/**
|
|
429
355
|
* Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
|
|
430
356
|
*/
|
|
431
357
|
export type SearchKnowledgeAgenticRagConfig = {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
358
|
+
/**
|
|
359
|
+
* The name of the model for the Agent to use. This model must support function calling.
|
|
360
|
+
*/
|
|
361
|
+
model: string;
|
|
435
362
|
};
|
|
436
363
|
|
|
437
364
|
/**
|
|
@@ -476,7 +403,7 @@ export type SearchKnowledgeRequestBody = {
|
|
|
476
403
|
/**
|
|
477
404
|
* Override the rerank configuration for this search. If not provided, will use the knowledge base configured rerank settings.
|
|
478
405
|
*/
|
|
479
|
-
rerankConfig?: SearchKnowledgeRerankConfig |
|
|
406
|
+
rerankConfig?: SearchKnowledgeRerankConfig | undefined;
|
|
480
407
|
/**
|
|
481
408
|
* Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
|
|
482
409
|
*/
|
|
@@ -3151,136 +3078,26 @@ export function searchOptionsFromJSON(
|
|
|
3151
3078
|
);
|
|
3152
3079
|
}
|
|
3153
3080
|
|
|
3154
|
-
/** @internal */
|
|
3155
|
-
export const SearchKnowledgeProvider$inboundSchema: z.ZodNativeEnum<
|
|
3156
|
-
typeof SearchKnowledgeProvider
|
|
3157
|
-
> = z.nativeEnum(SearchKnowledgeProvider);
|
|
3158
|
-
|
|
3159
|
-
/** @internal */
|
|
3160
|
-
export const SearchKnowledgeProvider$outboundSchema: z.ZodNativeEnum<
|
|
3161
|
-
typeof SearchKnowledgeProvider
|
|
3162
|
-
> = SearchKnowledgeProvider$inboundSchema;
|
|
3163
|
-
|
|
3164
|
-
/**
|
|
3165
|
-
* @internal
|
|
3166
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3167
|
-
*/
|
|
3168
|
-
export namespace SearchKnowledgeProvider$ {
|
|
3169
|
-
/** @deprecated use `SearchKnowledgeProvider$inboundSchema` instead. */
|
|
3170
|
-
export const inboundSchema = SearchKnowledgeProvider$inboundSchema;
|
|
3171
|
-
/** @deprecated use `SearchKnowledgeProvider$outboundSchema` instead. */
|
|
3172
|
-
export const outboundSchema = SearchKnowledgeProvider$outboundSchema;
|
|
3173
|
-
}
|
|
3174
|
-
|
|
3175
|
-
/** @internal */
|
|
3176
|
-
export const SearchKnowledgeModelType$inboundSchema: z.ZodNativeEnum<
|
|
3177
|
-
typeof SearchKnowledgeModelType
|
|
3178
|
-
> = z.nativeEnum(SearchKnowledgeModelType);
|
|
3179
|
-
|
|
3180
|
-
/** @internal */
|
|
3181
|
-
export const SearchKnowledgeModelType$outboundSchema: z.ZodNativeEnum<
|
|
3182
|
-
typeof SearchKnowledgeModelType
|
|
3183
|
-
> = SearchKnowledgeModelType$inboundSchema;
|
|
3184
|
-
|
|
3185
|
-
/**
|
|
3186
|
-
* @internal
|
|
3187
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3188
|
-
*/
|
|
3189
|
-
export namespace SearchKnowledgeModelType$ {
|
|
3190
|
-
/** @deprecated use `SearchKnowledgeModelType$inboundSchema` instead. */
|
|
3191
|
-
export const inboundSchema = SearchKnowledgeModelType$inboundSchema;
|
|
3192
|
-
/** @deprecated use `SearchKnowledgeModelType$outboundSchema` instead. */
|
|
3193
|
-
export const outboundSchema = SearchKnowledgeModelType$outboundSchema;
|
|
3194
|
-
}
|
|
3195
|
-
|
|
3196
|
-
/** @internal */
|
|
3197
|
-
export const SearchKnowledgeModelParameters$inboundSchema: z.ZodType<
|
|
3198
|
-
SearchKnowledgeModelParameters,
|
|
3199
|
-
z.ZodTypeDef,
|
|
3200
|
-
unknown
|
|
3201
|
-
> = z.object({
|
|
3202
|
-
threshold: z.number().optional(),
|
|
3203
|
-
});
|
|
3204
|
-
|
|
3205
|
-
/** @internal */
|
|
3206
|
-
export type SearchKnowledgeModelParameters$Outbound = {
|
|
3207
|
-
threshold?: number | undefined;
|
|
3208
|
-
};
|
|
3209
|
-
|
|
3210
|
-
/** @internal */
|
|
3211
|
-
export const SearchKnowledgeModelParameters$outboundSchema: z.ZodType<
|
|
3212
|
-
SearchKnowledgeModelParameters$Outbound,
|
|
3213
|
-
z.ZodTypeDef,
|
|
3214
|
-
SearchKnowledgeModelParameters
|
|
3215
|
-
> = z.object({
|
|
3216
|
-
threshold: z.number().optional(),
|
|
3217
|
-
});
|
|
3218
|
-
|
|
3219
|
-
/**
|
|
3220
|
-
* @internal
|
|
3221
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3222
|
-
*/
|
|
3223
|
-
export namespace SearchKnowledgeModelParameters$ {
|
|
3224
|
-
/** @deprecated use `SearchKnowledgeModelParameters$inboundSchema` instead. */
|
|
3225
|
-
export const inboundSchema = SearchKnowledgeModelParameters$inboundSchema;
|
|
3226
|
-
/** @deprecated use `SearchKnowledgeModelParameters$outboundSchema` instead. */
|
|
3227
|
-
export const outboundSchema = SearchKnowledgeModelParameters$outboundSchema;
|
|
3228
|
-
/** @deprecated use `SearchKnowledgeModelParameters$Outbound` instead. */
|
|
3229
|
-
export type Outbound = SearchKnowledgeModelParameters$Outbound;
|
|
3230
|
-
}
|
|
3231
|
-
|
|
3232
|
-
export function searchKnowledgeModelParametersToJSON(
|
|
3233
|
-
searchKnowledgeModelParameters: SearchKnowledgeModelParameters,
|
|
3234
|
-
): string {
|
|
3235
|
-
return JSON.stringify(
|
|
3236
|
-
SearchKnowledgeModelParameters$outboundSchema.parse(
|
|
3237
|
-
searchKnowledgeModelParameters,
|
|
3238
|
-
),
|
|
3239
|
-
);
|
|
3240
|
-
}
|
|
3241
|
-
|
|
3242
|
-
export function searchKnowledgeModelParametersFromJSON(
|
|
3243
|
-
jsonString: string,
|
|
3244
|
-
): SafeParseResult<SearchKnowledgeModelParameters, SDKValidationError> {
|
|
3245
|
-
return safeParse(
|
|
3246
|
-
jsonString,
|
|
3247
|
-
(x) => SearchKnowledgeModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
3248
|
-
`Failed to parse 'SearchKnowledgeModelParameters' from JSON`,
|
|
3249
|
-
);
|
|
3250
|
-
}
|
|
3251
|
-
|
|
3252
3081
|
/** @internal */
|
|
3253
3082
|
export const SearchKnowledgeRerankConfig$inboundSchema: z.ZodType<
|
|
3254
3083
|
SearchKnowledgeRerankConfig,
|
|
3255
3084
|
z.ZodTypeDef,
|
|
3256
3085
|
unknown
|
|
3257
3086
|
> = z.object({
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
top_k: z.number().int().
|
|
3261
|
-
model: z.string().optional(),
|
|
3262
|
-
model_db_id: z.string().optional(),
|
|
3263
|
-
model_type: SearchKnowledgeModelType$inboundSchema.optional(),
|
|
3264
|
-
model_parameters: z.lazy(() => SearchKnowledgeModelParameters$inboundSchema)
|
|
3265
|
-
.optional(),
|
|
3087
|
+
model: z.string(),
|
|
3088
|
+
threshold: z.number().default(0),
|
|
3089
|
+
top_k: z.number().int().default(10),
|
|
3266
3090
|
}).transform((v) => {
|
|
3267
3091
|
return remap$(v, {
|
|
3268
3092
|
"top_k": "topK",
|
|
3269
|
-
"model_db_id": "modelDbId",
|
|
3270
|
-
"model_type": "modelType",
|
|
3271
|
-
"model_parameters": "modelParameters",
|
|
3272
3093
|
});
|
|
3273
3094
|
});
|
|
3274
3095
|
|
|
3275
3096
|
/** @internal */
|
|
3276
3097
|
export type SearchKnowledgeRerankConfig$Outbound = {
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
top_k
|
|
3280
|
-
model?: string | undefined;
|
|
3281
|
-
model_db_id?: string | undefined;
|
|
3282
|
-
model_type?: string | undefined;
|
|
3283
|
-
model_parameters?: SearchKnowledgeModelParameters$Outbound | undefined;
|
|
3098
|
+
model: string;
|
|
3099
|
+
threshold: number;
|
|
3100
|
+
top_k: number;
|
|
3284
3101
|
};
|
|
3285
3102
|
|
|
3286
3103
|
/** @internal */
|
|
@@ -3289,20 +3106,12 @@ export const SearchKnowledgeRerankConfig$outboundSchema: z.ZodType<
|
|
|
3289
3106
|
z.ZodTypeDef,
|
|
3290
3107
|
SearchKnowledgeRerankConfig
|
|
3291
3108
|
> = z.object({
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
topK: z.number().int().
|
|
3295
|
-
model: z.string().optional(),
|
|
3296
|
-
modelDbId: z.string().optional(),
|
|
3297
|
-
modelType: SearchKnowledgeModelType$outboundSchema.optional(),
|
|
3298
|
-
modelParameters: z.lazy(() => SearchKnowledgeModelParameters$outboundSchema)
|
|
3299
|
-
.optional(),
|
|
3109
|
+
model: z.string(),
|
|
3110
|
+
threshold: z.number().default(0),
|
|
3111
|
+
topK: z.number().int().default(10),
|
|
3300
3112
|
}).transform((v) => {
|
|
3301
3113
|
return remap$(v, {
|
|
3302
3114
|
topK: "top_k",
|
|
3303
|
-
modelDbId: "model_db_id",
|
|
3304
|
-
modelType: "model_type",
|
|
3305
|
-
modelParameters: "model_parameters",
|
|
3306
3115
|
});
|
|
3307
3116
|
});
|
|
3308
3117
|
|
|
@@ -3339,48 +3148,18 @@ export function searchKnowledgeRerankConfigFromJSON(
|
|
|
3339
3148
|
);
|
|
3340
3149
|
}
|
|
3341
3150
|
|
|
3342
|
-
/** @internal */
|
|
3343
|
-
export const SearchKnowledgeKnowledgeProvider$inboundSchema: z.ZodNativeEnum<
|
|
3344
|
-
typeof SearchKnowledgeKnowledgeProvider
|
|
3345
|
-
> = z.nativeEnum(SearchKnowledgeKnowledgeProvider);
|
|
3346
|
-
|
|
3347
|
-
/** @internal */
|
|
3348
|
-
export const SearchKnowledgeKnowledgeProvider$outboundSchema: z.ZodNativeEnum<
|
|
3349
|
-
typeof SearchKnowledgeKnowledgeProvider
|
|
3350
|
-
> = SearchKnowledgeKnowledgeProvider$inboundSchema;
|
|
3351
|
-
|
|
3352
|
-
/**
|
|
3353
|
-
* @internal
|
|
3354
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3355
|
-
*/
|
|
3356
|
-
export namespace SearchKnowledgeKnowledgeProvider$ {
|
|
3357
|
-
/** @deprecated use `SearchKnowledgeKnowledgeProvider$inboundSchema` instead. */
|
|
3358
|
-
export const inboundSchema = SearchKnowledgeKnowledgeProvider$inboundSchema;
|
|
3359
|
-
/** @deprecated use `SearchKnowledgeKnowledgeProvider$outboundSchema` instead. */
|
|
3360
|
-
export const outboundSchema = SearchKnowledgeKnowledgeProvider$outboundSchema;
|
|
3361
|
-
}
|
|
3362
|
-
|
|
3363
3151
|
/** @internal */
|
|
3364
3152
|
export const SearchKnowledgeAgenticRagConfig$inboundSchema: z.ZodType<
|
|
3365
3153
|
SearchKnowledgeAgenticRagConfig,
|
|
3366
3154
|
z.ZodTypeDef,
|
|
3367
3155
|
unknown
|
|
3368
3156
|
> = z.object({
|
|
3369
|
-
|
|
3370
|
-
provider: SearchKnowledgeKnowledgeProvider$inboundSchema,
|
|
3371
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
3372
|
-
}).transform((v) => {
|
|
3373
|
-
return remap$(v, {
|
|
3374
|
-
"model_db_id": "modelDbId",
|
|
3375
|
-
"integration_id": "integrationId",
|
|
3376
|
-
});
|
|
3157
|
+
model: z.string(),
|
|
3377
3158
|
});
|
|
3378
3159
|
|
|
3379
3160
|
/** @internal */
|
|
3380
3161
|
export type SearchKnowledgeAgenticRagConfig$Outbound = {
|
|
3381
|
-
|
|
3382
|
-
provider: string;
|
|
3383
|
-
integration_id?: string | null | undefined;
|
|
3162
|
+
model: string;
|
|
3384
3163
|
};
|
|
3385
3164
|
|
|
3386
3165
|
/** @internal */
|
|
@@ -3389,14 +3168,7 @@ export const SearchKnowledgeAgenticRagConfig$outboundSchema: z.ZodType<
|
|
|
3389
3168
|
z.ZodTypeDef,
|
|
3390
3169
|
SearchKnowledgeAgenticRagConfig
|
|
3391
3170
|
> = z.object({
|
|
3392
|
-
|
|
3393
|
-
provider: SearchKnowledgeKnowledgeProvider$outboundSchema,
|
|
3394
|
-
integrationId: z.nullable(z.string()).optional(),
|
|
3395
|
-
}).transform((v) => {
|
|
3396
|
-
return remap$(v, {
|
|
3397
|
-
modelDbId: "model_db_id",
|
|
3398
|
-
integrationId: "integration_id",
|
|
3399
|
-
});
|
|
3171
|
+
model: z.string(),
|
|
3400
3172
|
});
|
|
3401
3173
|
|
|
3402
3174
|
/**
|
|
@@ -3458,9 +3230,8 @@ export const SearchKnowledgeRequestBody$inboundSchema: z.ZodType<
|
|
|
3458
3230
|
])),
|
|
3459
3231
|
]).optional(),
|
|
3460
3232
|
search_options: z.lazy(() => SearchOptions$inboundSchema).optional(),
|
|
3461
|
-
rerank_config: z.
|
|
3462
|
-
|
|
3463
|
-
).optional(),
|
|
3233
|
+
rerank_config: z.lazy(() => SearchKnowledgeRerankConfig$inboundSchema)
|
|
3234
|
+
.optional(),
|
|
3464
3235
|
agentic_rag_config: z.lazy(() =>
|
|
3465
3236
|
SearchKnowledgeAgenticRagConfig$inboundSchema
|
|
3466
3237
|
).optional(),
|
|
@@ -3494,7 +3265,7 @@ export type SearchKnowledgeRequestBody$Outbound = {
|
|
|
3494
3265
|
| SearchKnowledge1Exists$Outbound;
|
|
3495
3266
|
} | undefined;
|
|
3496
3267
|
search_options?: SearchOptions$Outbound | undefined;
|
|
3497
|
-
rerank_config?: SearchKnowledgeRerankConfig$Outbound |
|
|
3268
|
+
rerank_config?: SearchKnowledgeRerankConfig$Outbound | undefined;
|
|
3498
3269
|
agentic_rag_config?: SearchKnowledgeAgenticRagConfig$Outbound | undefined;
|
|
3499
3270
|
};
|
|
3500
3271
|
|
|
@@ -3524,9 +3295,8 @@ export const SearchKnowledgeRequestBody$outboundSchema: z.ZodType<
|
|
|
3524
3295
|
])),
|
|
3525
3296
|
]).optional(),
|
|
3526
3297
|
searchOptions: z.lazy(() => SearchOptions$outboundSchema).optional(),
|
|
3527
|
-
rerankConfig: z.
|
|
3528
|
-
|
|
3529
|
-
).optional(),
|
|
3298
|
+
rerankConfig: z.lazy(() => SearchKnowledgeRerankConfig$outboundSchema)
|
|
3299
|
+
.optional(),
|
|
3530
3300
|
agenticRagConfig: z.lazy(() => SearchKnowledgeAgenticRagConfig$outboundSchema)
|
|
3531
3301
|
.optional(),
|
|
3532
3302
|
}).transform((v) => {
|