@builder.io/ai-utils 0.0.63 → 0.0.65

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.
@@ -45,11 +45,6 @@ export interface CompletionOptions {
45
45
  * The state of the builder editor.
46
46
  */
47
47
  builderState?: BuilderEditorState;
48
- /**
49
- * Persist the thread conversation context.
50
- * Defaults to `true`.
51
- */
52
- persistThread?: boolean;
53
48
  /**
54
49
  * Additional console logs
55
50
  */
@@ -68,6 +63,28 @@ export interface CompletionOptions {
68
63
  * Defaults to `true`.
69
64
  */
70
65
  stream?: boolean;
66
+ /**
67
+ * Provide a system prompt id to lookup a pre-defined system prompt
68
+ * text sent to the LLM. Must be a pre-defined system prompt id!
69
+ */
70
+ systemPromptIds?: {
71
+ "semantic-tags"?: string;
72
+ "content-edit"?: string;
73
+ };
74
+ /**
75
+ * Option on how this call should handle the conversation thread.
76
+ *
77
+ * `persist`:
78
+ * - When there is no CompletionOptions `id`, it'll create a new thread id
79
+ * - When given an existing `id`, it'll look up the past thread messages and prefix the messages
80
+ *
81
+ * `ephemeral`:
82
+ * - Creates a new conversation each time, ignoring any existing thread history
83
+ * - Will not save the conversation for future use
84
+ *
85
+ * Defaults to `persist`
86
+ */
87
+ thread?: "persist" | "ephemeral";
71
88
  }
72
89
  export interface BuilderEditorState {
73
90
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",