@builder.io/ai-utils
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -6,3 +6,12 @@ import type { BuilderContent, BuilderElement, Component } from "@builder.io/sdk"; | ||
export type BuilderAssistantEventHandler = (ev: BuilderAssistantEvent) => void; | ||
export type BuilderAssistantEvent = 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 | ResultEvent | ThreadCreatedEvent | ThreadMessageDeltaEvent | ThreadMessageCompletedEvent | ThreadMessageFeedbackEvent | ThreadRunRequiresActionEvent | ThreadRunStepCreatedEvent | ThreadRunStepDeltaEvent; | ||
export interface AssistantError { | ||
message: string; | ||
status?: number; | ||
stack?: string; | ||
} | ||
export interface AssistantErrorEvent { | ||
type: "assistant.error"; | ||
data: AssistantError; | ||
} | ||
export interface AppCloseEvent { | ||
@@ -101,3 +110,3 @@ type: "assistant.app.close"; | ||
id: string; | ||
patchId: string; | ||
index: number; | ||
value: string; | ||
@@ -104,0 +113,0 @@ ts: number; |
{ | ||
"name": "@builder.io/ai-utils", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "Builder.io AI utils", | ||
@@ -5,0 +5,0 @@ "type": "module", |
20101
644