@builder.io/ai-utils
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -13,2 +13,6 @@ import type { BuilderContent, BuilderElement, Component } from "@builder.io/sdk"; | ||
/** | ||
* Model identifier to lookup which sdk and model to use. If not provided the default model will be used. | ||
*/ | ||
modelId?: string; | ||
/** | ||
* The unique LOCAL identifier of the thread to submit the user message to. | ||
@@ -15,0 +19,0 @@ * This is used to identify the thread with our own id (openai assistant id is different) |
@@ -6,3 +6,3 @@ import type { BuilderContent, BuilderElement, Component } from "@builder.io/sdk"; | ||
export type BuilderAssistantEventHandler = (ev: BuilderAssistantEvent) => void; | ||
export type BuilderAssistantEvent = AssistantErrorEvent | AppCloseEvent | AppMessagesClickEvent | AppMessagesGenerationEvent | AppPromptAbortEvent | AppPromptFocusEvent | AppPromptTextEvent | AppReadyEvent | AppSettingsResetEvent | AppSettingsSetEvent | AppThreadNewEvent | BuiderEditorStateEvent | ContentUpdateEvent | ContentApplySnapshotEvent | ContentCompleteEvent | ModelCreateEvent | ModelUpdateEvent | ResultEvent | ThreadCreatedEvent | ThreadMessageDeltaEvent | ThreadMessageCompletedEvent | ThreadMessageFeedbackEvent | ThreadRunRequiresActionEvent | ThreadRunStepCreatedEvent | ThreadRunStepDeltaEvent; | ||
export type BuilderAssistantEvent = AssistantErrorEvent | AppCloseEvent | AppMessagesClickEvent | AppMessagesGenerationEvent | AppPromptAbortEvent | AppPromptFocusEvent | AppPromptTextEvent | AppReadyEvent | AppSettingsResetEvent | AppSettingsSetEvent | AppThreadNewEvent | BuiderEditorStateEvent | ContentUpdateEvent | ContentApplySnapshotEvent | ContentCompleteEvent | ModelCreateEvent | ModelUpdateEvent | ModelUndoEvent | ResultEvent | ThreadCreatedEvent | ThreadMessageDeltaEvent | ThreadMessageCompletedEvent | ThreadMessageFeedbackEvent | ThreadRunRequiresActionEvent | ThreadRunStepCreatedEvent | ThreadRunStepDeltaEvent; | ||
export interface AssistantError { | ||
@@ -146,2 +146,5 @@ message: string; | ||
} | ||
export interface ModelUndoEvent { | ||
type: "assistant.model.undo"; | ||
} | ||
export interface ModelUpdate { | ||
@@ -148,0 +151,0 @@ patches: ModelPatch[]; |
{ | ||
"name": "@builder.io/ai-utils", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "Builder.io AI utils", | ||
@@ -5,0 +5,0 @@ "type": "module", |
20336
651