@wix/auto_sdk_ai-gateway_prompts 1.0.2 → 1.0.3

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.
@@ -7237,10 +7237,26 @@ declare enum FinishReason {
7237
7237
  /** The token generation was stopped as the response was flagged for unauthorized citations. */
7238
7238
  RECITATION = "RECITATION",
7239
7239
  /** All other reasons that stopped the token */
7240
- OTHER = "OTHER"
7240
+ OTHER = "OTHER",
7241
+ /** The response candidate content was flagged for using an unsupported language. */
7242
+ LANGUAGE = "LANGUAGE",
7243
+ /** Token generation stopped because the content contains forbidden terms. */
7244
+ BLOCKLIST = "BLOCKLIST",
7245
+ /** Token generation stopped for potentially containing prohibited content. */
7246
+ PROHIBITED_CONTENT = "PROHIBITED_CONTENT",
7247
+ /** Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII). */
7248
+ SPII = "SPII",
7249
+ /** The function call generated by the model is invalid. */
7250
+ MALFORMED_FUNCTION_CALL = "MALFORMED_FUNCTION_CALL",
7251
+ /** Token generation stopped because generated images contain safety violations. */
7252
+ IMAGE_SAFETY = "IMAGE_SAFETY",
7253
+ /** Model generated a tool call but no tools were enabled in the request. */
7254
+ UNEXPECTED_TOOL_CALL = "UNEXPECTED_TOOL_CALL",
7255
+ /** Model called too many tools consecutively, thus the system exited execution. */
7256
+ TOO_MANY_TOOL_CALLS = "TOO_MANY_TOOL_CALLS"
7241
7257
  }
7242
7258
  /** @enumType */
7243
- type FinishReasonWithLiterals = FinishReason | 'UNKNOWN_FINISH_REASON' | 'UNSPECIFIED' | 'STOP' | 'MAX_TOKENS' | 'SAFETY' | 'RECITATION' | 'OTHER';
7259
+ type FinishReasonWithLiterals = FinishReason | 'UNKNOWN_FINISH_REASON' | 'UNSPECIFIED' | 'STOP' | 'MAX_TOKENS' | 'SAFETY' | 'RECITATION' | 'OTHER' | 'LANGUAGE' | 'BLOCKLIST' | 'PROHIBITED_CONTENT' | 'SPII' | 'MALFORMED_FUNCTION_CALL' | 'IMAGE_SAFETY' | 'UNEXPECTED_TOOL_CALL' | 'TOO_MANY_TOOL_CALLS';
7244
7260
  interface SafetyRating {
7245
7261
  /** The safety category that the response belongs to. */
7246
7262
  category?: HarmCategoryWithLiterals;
@@ -1069,6 +1069,14 @@ var FinishReason = /* @__PURE__ */ ((FinishReason2) => {
1069
1069
  FinishReason2["SAFETY"] = "SAFETY";
1070
1070
  FinishReason2["RECITATION"] = "RECITATION";
1071
1071
  FinishReason2["OTHER"] = "OTHER";
1072
+ FinishReason2["LANGUAGE"] = "LANGUAGE";
1073
+ FinishReason2["BLOCKLIST"] = "BLOCKLIST";
1074
+ FinishReason2["PROHIBITED_CONTENT"] = "PROHIBITED_CONTENT";
1075
+ FinishReason2["SPII"] = "SPII";
1076
+ FinishReason2["MALFORMED_FUNCTION_CALL"] = "MALFORMED_FUNCTION_CALL";
1077
+ FinishReason2["IMAGE_SAFETY"] = "IMAGE_SAFETY";
1078
+ FinishReason2["UNEXPECTED_TOOL_CALL"] = "UNEXPECTED_TOOL_CALL";
1079
+ FinishReason2["TOO_MANY_TOOL_CALLS"] = "TOO_MANY_TOOL_CALLS";
1072
1080
  return FinishReason2;
1073
1081
  })(FinishReason || {});
1074
1082
  var HarmProbability = /* @__PURE__ */ ((HarmProbability2) => {