@builder.io/ai-utils 0.5.39 → 0.5.40

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/codegen.d.ts +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.5.39",
3
+ "version": "0.5.40",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -228,6 +228,7 @@ export interface CodeGenInputOptions {
228
228
  maxTokens?: number;
229
229
  maxPages?: number;
230
230
  autoContinue?: number;
231
+ isManualContinue?: boolean;
231
232
  promptCaching?: boolean;
232
233
  llmSuggestions?: boolean;
233
234
  conclusionText?: boolean;
@@ -616,6 +617,7 @@ export interface GenerateUserMessage {
616
617
  dropAbortedPrompt?: boolean;
617
618
  modelOverride?: string;
618
619
  maxCompletions?: number;
620
+ isManualContinue?: boolean;
619
621
  repair?: boolean;
620
622
  }
621
623
  export interface UserInput {
@@ -967,3 +969,11 @@ export interface FusionMetrics {
967
969
  attributes: Record<string, string>;
968
970
  }[];
969
971
  }
972
+ export interface AnalyzeChatSentimentResults {
973
+ sentiment: "positive" | "neutral" | "negative";
974
+ frustration_level: "none" | "low" | "medium" | "high";
975
+ repeated_attempts: boolean;
976
+ confusion_level: "none" | "low" | "medium" | "high";
977
+ urgency: "none" | "low" | "medium" | "high";
978
+ satisfaction: "none" | "low" | "medium" | "high";
979
+ }