@zuplo/runtime 7.6.7 → 7.6.8

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.
@@ -3748,25 +3748,25 @@ declare type ClaimCheck = EqualsRule | InRule | StartsWithRule;
3748
3748
  declare type ClassifierAppAPIKey = string;
3749
3749
 
3750
3750
  /**
3751
- * The AI Gateway application id whose `/v1/chat/completions` route runs the classifier. The policy calls `/{classifierAppID}/v1/chat/completions` via `context.invokeRoute`.
3751
+ * The AI Gateway application id used to run the classifier prompt and evaluate the user's request.
3752
3752
  * @public
3753
3753
  */
3754
3754
  declare type ClassifierAppID = string;
3755
3755
 
3756
3756
  /**
3757
- * The `providerName/model` reference the classifier chat/completions request should use.
3757
+ * The model (`providerName/model`) the classifier uses to evaluate the user's request. E.g. `openai/gpt-4o-mini`.
3758
3758
  * @public
3759
3759
  */
3760
3760
  declare type ClassifierModel = string;
3761
3761
 
3762
3762
  /**
3763
- * System prompt for the classifier. If it includes `{{intents}}`, that placeholder is replaced with the configured intent id/description list. A string or an array of lines (joined with newlines). Omit to use the built-in classifier prompt.
3763
+ * Prompt used to analyze and classify the user message. Omit to use the built-in classifier prompt.
3764
3764
  * @public
3765
3765
  */
3766
3766
  declare type ClassifierPrompt = string | [string, ...string[]];
3767
3767
 
3768
3768
  /**
3769
- * How long to wait for the classifier `invokeRoute` call before skipping classification and forwarding the original request.
3769
+ * Timeout configured for the classifier task. When exceeded, the request is forwarded without classification to the original model.
3770
3770
  * @public
3771
3771
  */
3772
3772
  declare type ClassifierTimeoutMs = number;
@@ -7843,19 +7843,19 @@ declare interface InRule {
7843
7843
  }
7844
7844
 
7845
7845
  /**
7846
- * Short description shown to the classifier for this intent.
7846
+ * Short description of the intent label.
7847
7847
  * @public
7848
7848
  */
7849
7849
  declare type IntentDescription = string;
7850
7850
 
7851
7851
  /**
7852
- * Stable intent identifier written into the classifier JSON schema enum.
7852
+ * Label used to classify the intent of the user message being evaluated.
7853
7853
  * @public
7854
7854
  */
7855
7855
  declare type IntentID = string;
7856
7856
 
7857
7857
  /**
7858
- * Labels the classifier may assign. Used to build the JSON schema enum and injected into `classifierPrompt` at `{{intents}}`. Omit to use the built-in taxonomy (code, summarization, translation, qa, conversation, classification, creative_writing, agentic, document_qa, other).
7858
+ * Dictionary of intents used to classify the user message being evaluated. Omit to use the built-in dictionary (code, summarization, translation, qa, conversation, classification, creative_writing, agentic, document_qa, other).
7859
7859
  *
7860
7860
  * @minItems 1
7861
7861
  * @public
@@ -8528,7 +8528,7 @@ declare type LowComplexityModel = string;
8528
8528
  declare type MaxConversationLength = number;
8529
8529
 
8530
8530
  /**
8531
- * Maximum characters of user prompt sent to the classifier. Longer prompts are truncated.
8531
+ * Maximum characters of user message sent to the classifier. Longer messages get truncated.
8532
8532
  * @public
8533
8533
  */
8534
8534
  declare type MaxPromptCharacters = number;
@@ -10584,7 +10584,7 @@ declare interface Models {
10584
10584
  }
10585
10585
 
10586
10586
  /**
10587
- * `providerName/model` routing by classified complexity. All of `low`, `medium`, and `high` are required. Used only when `smartRoutingEnabled` is true.
10587
+ * Enables which model will be used based on the classifier results (`low`, `medium` and `high`). This configuration is applied only when `smartRoutingEnabled` is true and confidence score meets the `minConfidenceForRouting` threshold.
10588
10588
  * @public
10589
10589
  */
10590
10590
  declare interface ModelsByComplexity {
@@ -14179,7 +14179,7 @@ export declare interface SleepInboundPolicyOptions {
14179
14179
  }
14180
14180
 
14181
14181
  /**
14182
- * When true, apply model routing from `modelsByComplexity` when confidence is high enough and the intent is known. Classification still runs when false.
14182
+ * When true, apply model routing based on the models set in `modelsByComplexity` when confidence score meets the `minConfidenceForRouting` threshold. When set to false, classification still runs but model routing is not applied, useful for debugging or testing the classifier prompt.
14183
14183
  * @public
14184
14184
  */
14185
14185
  declare type SmartRoutingEnabled = boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "7.6.7",
4
+ "version": "7.6.8",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {