@builder.io/ai-utils 0.0.39 → 0.0.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.
package/dist/events.d.ts CHANGED
@@ -105,8 +105,9 @@ export interface NodeData {
105
105
  */
106
106
  columnIndex?: number;
107
107
  }
108
- export interface ContentPatchBase {
108
+ interface ContentPatchBase {
109
109
  id: string;
110
+ description?: string;
110
111
  index: number;
111
112
  value: string;
112
113
  ts: number;
@@ -324,3 +325,4 @@ export interface ThreadRunStepCreatedEvent {
324
325
  export type DeepPartial<T> = T extends object ? {
325
326
  [P in keyof T]?: DeepPartial<T[P]>;
326
327
  } : T;
328
+ export {};
@@ -1,4 +1,4 @@
1
- import { ContentPatchBase, ContentUpdatePatch } from "./events";
1
+ import { ContentUpdatePatch } from "./events";
2
2
  /**
3
3
  * Message param does not know the id of the message.
4
4
  * This is an input message.
@@ -65,13 +65,7 @@ export interface AssistantMessageParam {
65
65
  * A summary of the patches which the assistant has made.
66
66
  * Useful for genai.
67
67
  */
68
- patches?: AssistantPatch[];
69
- }
70
- export interface AssistantPatch {
71
- index: ContentPatchBase['index'];
72
- value: ContentPatchBase['value'];
73
- incomplete?: ContentPatchBase['incomplete'];
74
- type: ContentUpdatePatch['type'];
68
+ patches?: ContentUpdatePatch[];
75
69
  }
76
70
  export interface SystemMessage extends SystemMessageParam {
77
71
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",