@zuplo/runtime 6.51.50 → 6.51.51
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 +32 -21
- package/out/types/index.d.ts +34 -0
- package/package.json +1 -1
package/out/types/index.d.ts
CHANGED
|
@@ -4484,6 +4484,40 @@ export declare class ProblemResponseFormatter {
|
|
|
4484
4484
|
static format(problemDetails: ProblemResponseDetails, request: ZuploRequest, context: ZuploContext): Promise<Response>;
|
|
4485
4485
|
}
|
|
4486
4486
|
|
|
4487
|
+
/**
|
|
4488
|
+
* Uses an LLM agent to detect prompt injection attempts in user provided content
|
|
4489
|
+
* or potentially poisoned response bodies. This is primarily intended to be used
|
|
4490
|
+
* with downstream LLM agents who are at risk of having prompt injection attacks
|
|
4491
|
+
* executed against them.
|
|
4492
|
+
*
|
|
4493
|
+
* @title Prompt Injection Detection
|
|
4494
|
+
* @public
|
|
4495
|
+
* @param request - The ZuploRequest
|
|
4496
|
+
* @param context - The ZuploContext
|
|
4497
|
+
* @param options - The policy options set in policies.json
|
|
4498
|
+
* @param policyName - The name of the policy as set in policies.json
|
|
4499
|
+
* @returns A Request or a Response
|
|
4500
|
+
*/
|
|
4501
|
+
export declare const PromptInjectionDetectionOutboundPolicy: OutboundPolicyHandler<PromptInjectionDetectionOutboundPolicyOptions>;
|
|
4502
|
+
|
|
4503
|
+
/**
|
|
4504
|
+
* The options for Prompt Injection Detection Outbound policy.
|
|
4505
|
+
*/
|
|
4506
|
+
export declare interface PromptInjectionDetectionOutboundPolicyOptions {
|
|
4507
|
+
/**
|
|
4508
|
+
* API key for an OpenAI compatible service.
|
|
4509
|
+
*/
|
|
4510
|
+
apiKey: string;
|
|
4511
|
+
/**
|
|
4512
|
+
* Model to use for classification.
|
|
4513
|
+
*/
|
|
4514
|
+
model?: string;
|
|
4515
|
+
/**
|
|
4516
|
+
* Base URL for the OpenAI compatible API.
|
|
4517
|
+
*/
|
|
4518
|
+
baseUrl?: string;
|
|
4519
|
+
}
|
|
4520
|
+
|
|
4487
4521
|
/**
|
|
4488
4522
|
* Authenticate users using PropelAuth issued JWT tokens.
|
|
4489
4523
|
*
|