raindrop-ai 0.0.78 → 0.0.79
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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/otel/index.d.mts +4 -1
- package/dist/otel/index.d.ts +4 -1
- package/dist/otel/index.js +2 -0
- package/dist/otel/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -138,7 +138,7 @@ var CategorizationRequestSchema = import_zod.z.object({
|
|
|
138
138
|
// package.json
|
|
139
139
|
var package_default = {
|
|
140
140
|
name: "raindrop-ai",
|
|
141
|
-
version: "0.0.
|
|
141
|
+
version: "0.0.79",
|
|
142
142
|
main: "dist/index.js",
|
|
143
143
|
module: "dist/index.mjs",
|
|
144
144
|
types: "dist/index.d.ts",
|
package/dist/index.mjs
CHANGED
package/dist/otel/index.d.mts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* @param eventName - Optional custom event name (defaults to "ai_generation" on the backend)
|
|
8
8
|
* @param eventId - Optional event identifier. If not provided, a unique ID is generated.
|
|
9
9
|
* Call metadata() for each AI SDK call to get unique event IDs.
|
|
10
|
+
* @param toolEvents - Optional. Set to true to emit events for tool-call-only responses
|
|
11
|
+
* (e.g., when using stopWhen with tool calls).
|
|
10
12
|
*
|
|
11
13
|
* @example
|
|
12
14
|
* ```typescript
|
|
@@ -23,11 +25,12 @@
|
|
|
23
25
|
* });
|
|
24
26
|
* ```
|
|
25
27
|
*/
|
|
26
|
-
declare function metadata({ userId, convoId, eventName, eventId, wizardSession, }: {
|
|
28
|
+
declare function metadata({ userId, convoId, eventName, eventId, toolEvents, wizardSession, }: {
|
|
27
29
|
userId: string;
|
|
28
30
|
convoId?: string;
|
|
29
31
|
eventName?: string;
|
|
30
32
|
eventId?: string;
|
|
33
|
+
toolEvents?: boolean;
|
|
31
34
|
wizardSession?: string;
|
|
32
35
|
}): Record<string, string>;
|
|
33
36
|
declare const _default: {
|
package/dist/otel/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* @param eventName - Optional custom event name (defaults to "ai_generation" on the backend)
|
|
8
8
|
* @param eventId - Optional event identifier. If not provided, a unique ID is generated.
|
|
9
9
|
* Call metadata() for each AI SDK call to get unique event IDs.
|
|
10
|
+
* @param toolEvents - Optional. Set to true to emit events for tool-call-only responses
|
|
11
|
+
* (e.g., when using stopWhen with tool calls).
|
|
10
12
|
*
|
|
11
13
|
* @example
|
|
12
14
|
* ```typescript
|
|
@@ -23,11 +25,12 @@
|
|
|
23
25
|
* });
|
|
24
26
|
* ```
|
|
25
27
|
*/
|
|
26
|
-
declare function metadata({ userId, convoId, eventName, eventId, wizardSession, }: {
|
|
28
|
+
declare function metadata({ userId, convoId, eventName, eventId, toolEvents, wizardSession, }: {
|
|
27
29
|
userId: string;
|
|
28
30
|
convoId?: string;
|
|
29
31
|
eventName?: string;
|
|
30
32
|
eventId?: string;
|
|
33
|
+
toolEvents?: boolean;
|
|
31
34
|
wizardSession?: string;
|
|
32
35
|
}): Record<string, string>;
|
|
33
36
|
declare const _default: {
|
package/dist/otel/index.js
CHANGED
|
@@ -29,6 +29,7 @@ function metadata({
|
|
|
29
29
|
convoId,
|
|
30
30
|
eventName,
|
|
31
31
|
eventId,
|
|
32
|
+
toolEvents,
|
|
32
33
|
wizardSession
|
|
33
34
|
}) {
|
|
34
35
|
const result = {
|
|
@@ -37,6 +38,7 @@ function metadata({
|
|
|
37
38
|
};
|
|
38
39
|
if (convoId) result["raindrop.convoId"] = convoId;
|
|
39
40
|
if (eventName) result["raindrop.eventName"] = eventName;
|
|
41
|
+
if (toolEvents) result["raindrop.toolEvents"] = "allow";
|
|
40
42
|
if (wizardSession) result["raindrop.wizardSession"] = wizardSession;
|
|
41
43
|
return result;
|
|
42
44
|
}
|
package/dist/otel/index.mjs
CHANGED
|
@@ -4,6 +4,7 @@ function metadata({
|
|
|
4
4
|
convoId,
|
|
5
5
|
eventName,
|
|
6
6
|
eventId,
|
|
7
|
+
toolEvents,
|
|
7
8
|
wizardSession
|
|
8
9
|
}) {
|
|
9
10
|
const result = {
|
|
@@ -12,6 +13,7 @@ function metadata({
|
|
|
12
13
|
};
|
|
13
14
|
if (convoId) result["raindrop.convoId"] = convoId;
|
|
14
15
|
if (eventName) result["raindrop.eventName"] = eventName;
|
|
16
|
+
if (toolEvents) result["raindrop.toolEvents"] = "allow";
|
|
15
17
|
if (wizardSession) result["raindrop.wizardSession"] = wizardSession;
|
|
16
18
|
return result;
|
|
17
19
|
}
|