@ztimson/momentum 1.0.10 → 1.0.12
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/ai.d.ts +21 -10
- package/dist/ai.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -11,16 +11,27 @@ export type AiInfo = {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
export type AiMessage = {
|
|
14
|
-
/** Message
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
/** Message originator */
|
|
15
|
+
role: 'assistant' | 'system' | 'user';
|
|
16
|
+
/** Message content */
|
|
17
|
+
content: string | any;
|
|
18
|
+
/** Timestamp */
|
|
19
|
+
timestamp?: number;
|
|
20
|
+
} | {
|
|
21
|
+
/** Tool call */
|
|
22
|
+
role: 'tool';
|
|
23
|
+
/** Unique ID for call */
|
|
24
|
+
id: string;
|
|
25
|
+
/** Tool that was run */
|
|
26
|
+
name: string;
|
|
27
|
+
/** Tool arguments */
|
|
28
|
+
args: any;
|
|
29
|
+
/** Tool result */
|
|
30
|
+
content: undefined | string;
|
|
31
|
+
/** Tool error */
|
|
32
|
+
error?: undefined | string;
|
|
33
|
+
/** Timestamp */
|
|
34
|
+
timestamp?: number;
|
|
24
35
|
};
|
|
25
36
|
/** AI integrations */
|
|
26
37
|
export declare class Ai extends PathEventEmitter {
|
package/dist/ai.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../src/ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAM,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEpC,MAA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