@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.
- package/out/types/index.d.ts +10 -10
- package/package.json +1 -1
package/out/types/index.d.ts
CHANGED
|
@@ -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
|
|
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`
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
7846
|
+
* Short description of the intent label.
|
|
7847
7847
|
* @public
|
|
7848
7848
|
*/
|
|
7849
7849
|
declare type IntentDescription = string;
|
|
7850
7850
|
|
|
7851
7851
|
/**
|
|
7852
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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;
|