@zuplo/runtime 6.51.66 → 6.51.68
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/out/esm/index.js +3 -3
- package/out/types/index.d.ts +7 -1
- package/package.json +1 -1
package/out/types/index.d.ts
CHANGED
|
@@ -3193,6 +3193,7 @@ declare type LokiTransportVersion = 1 | 2;
|
|
|
3193
3193
|
|
|
3194
3194
|
/**
|
|
3195
3195
|
* An MCP Server handler for Zuplo
|
|
3196
|
+
* Only POST requests are supported for the HTTP streamable MCP transport.
|
|
3196
3197
|
*
|
|
3197
3198
|
* @beta
|
|
3198
3199
|
* @param request - The ZuploRequest
|
|
@@ -5075,6 +5076,7 @@ export declare const SchemaBasedRequestValidation: InboundPolicyHandler<RequestV
|
|
|
5075
5076
|
* Options:
|
|
5076
5077
|
* - similarityTolerance: The minimum similarity threshold for semantic cache matches (0-1, default: 0.8). Values closer to 1 require higher similarity. Can be overridden by custom functions.
|
|
5077
5078
|
* - expirationSecondsTtl: The timeout of the cache in seconds (default: 3600, 1 hour). Can be overridden by custom functions.
|
|
5079
|
+
* - namespace: Optional namespace to isolate cache entries (default: "default"). Useful for multi-tenant scenarios or different cache contexts.
|
|
5078
5080
|
* - cacheBy: Determines how cache keys are generated: 'function' for custom logic or 'propertyPath' to extract from JSON body.
|
|
5079
5081
|
*
|
|
5080
5082
|
* @title Semantic Cache
|
|
@@ -5085,7 +5087,7 @@ export declare const SchemaBasedRequestValidation: InboundPolicyHandler<RequestV
|
|
|
5085
5087
|
* @param policyName - The name of the policy as set in policies.json
|
|
5086
5088
|
* @returns A Request or a Response
|
|
5087
5089
|
*/
|
|
5088
|
-
export declare function SemanticCacheInboundPolicy(request: ZuploRequest, context: ZuploContext, options: SemanticCacheInboundPolicyOptions, policyName: string): Promise<ZuploRequest<RequestGeneric_2>>;
|
|
5090
|
+
export declare function SemanticCacheInboundPolicy(request: ZuploRequest, context: ZuploContext, options: SemanticCacheInboundPolicyOptions, policyName: string): Promise<Response | ZuploRequest<RequestGeneric_2>>;
|
|
5089
5091
|
|
|
5090
5092
|
/**
|
|
5091
5093
|
* The options for this policy.
|
|
@@ -5101,6 +5103,10 @@ export declare type SemanticCacheInboundPolicyOptions = {
|
|
|
5101
5103
|
* The timeout of the cache in seconds. Defaults to 1 hour.
|
|
5102
5104
|
*/
|
|
5103
5105
|
expirationSecondsTtl?: number;
|
|
5106
|
+
/**
|
|
5107
|
+
* Optional namespace to isolate cache entries. Useful for multi-tenant scenarios or different cache contexts.
|
|
5108
|
+
*/
|
|
5109
|
+
namespace?: string;
|
|
5104
5110
|
/**
|
|
5105
5111
|
* Determines how the cache key is generated. Use 'function' for custom logic or 'propertyPath' to extract from JSON body.
|
|
5106
5112
|
*/
|