@mastra/voice-openai-realtime 0.0.0-remove-tiktoken-20250415231938 → 0.0.0-vnextWorkflows-20250416071310
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/CHANGELOG.md +12 -2
- package/dist/index.cjs +6 -0
- package/dist/index.js +6 -0
- package/package.json +2 -2
- package/src/index.ts +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
# @mastra/voice-openai-realtime
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-vnextWorkflows-20250416071310
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 185f8e9: Emit add tools and silence warnings
|
|
4
8
|
|
|
5
9
|
### Patch Changes
|
|
6
10
|
|
|
7
11
|
- Updated dependencies [03f3cd0]
|
|
8
12
|
- Updated dependencies [8a8a73b]
|
|
9
13
|
- Updated dependencies [6f92295]
|
|
10
|
-
- @mastra/core@0.0.0-
|
|
14
|
+
- @mastra/core@0.0.0-vnextWorkflows-20250416071310
|
|
15
|
+
|
|
16
|
+
## 0.2.0-alpha.2
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- 185f8e9: Emit add tools and silence warnings
|
|
11
21
|
|
|
12
22
|
## 0.1.5-alpha.1
|
|
13
23
|
|
package/dist/index.cjs
CHANGED
|
@@ -548,6 +548,12 @@ var OpenAIRealtimeVoice = class extends voice.MastraVoice {
|
|
|
548
548
|
messages: []
|
|
549
549
|
}
|
|
550
550
|
);
|
|
551
|
+
this.emit("tool-result", {
|
|
552
|
+
toolCallId: output.call_id,
|
|
553
|
+
toolName: output.name,
|
|
554
|
+
args: context,
|
|
555
|
+
result
|
|
556
|
+
});
|
|
551
557
|
this.sendEvent("conversation.item.create", {
|
|
552
558
|
item: {
|
|
553
559
|
type: "function_call_output",
|
package/dist/index.js
CHANGED
|
@@ -546,6 +546,12 @@ var OpenAIRealtimeVoice = class extends MastraVoice {
|
|
|
546
546
|
messages: []
|
|
547
547
|
}
|
|
548
548
|
);
|
|
549
|
+
this.emit("tool-result", {
|
|
550
|
+
toolCallId: output.call_id,
|
|
551
|
+
toolName: output.name,
|
|
552
|
+
args: context,
|
|
553
|
+
result
|
|
554
|
+
});
|
|
549
555
|
this.sendEvent("conversation.item.create", {
|
|
550
556
|
item: {
|
|
551
557
|
type: "function_call_output",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/voice-openai-realtime",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-vnextWorkflows-20250416071310",
|
|
4
4
|
"description": "Mastra OpenAI Realtime API integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"openai-realtime-api": "^1.0.7",
|
|
24
24
|
"ws": "^8.18.1",
|
|
25
25
|
"zod-to-json-schema": "^3.24.5",
|
|
26
|
-
"@mastra/core": "0.0.0-
|
|
26
|
+
"@mastra/core": "0.0.0-vnextWorkflows-20250416071310"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@microsoft/api-extractor": "^7.52.2",
|
package/src/index.ts
CHANGED
|
@@ -626,6 +626,12 @@ export class OpenAIRealtimeVoice extends MastraVoice {
|
|
|
626
626
|
messages: [],
|
|
627
627
|
},
|
|
628
628
|
);
|
|
629
|
+
this.emit('tool-result', {
|
|
630
|
+
toolCallId: output.call_id,
|
|
631
|
+
toolName: output.name,
|
|
632
|
+
args: context,
|
|
633
|
+
result,
|
|
634
|
+
});
|
|
629
635
|
this.sendEvent('conversation.item.create', {
|
|
630
636
|
item: {
|
|
631
637
|
type: 'function_call_output',
|