@mastra/voice-google-gemini-live 0.14.9 → 0.14.10-alpha.1
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/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts +21 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts
CHANGED
|
@@ -79,6 +79,27 @@ type VersionOverrides = {
|
|
|
79
79
|
defaultStatus?: 'draft' | 'published';
|
|
80
80
|
};
|
|
81
81
|
declare function mergeVersionOverrides(base?: VersionOverrides, overrides?: VersionOverrides): VersionOverrides | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Carries typed, request-specific values through agents, tools, and workflows.
|
|
84
|
+
* Pass the instance as `requestContext` when starting an operation.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```typescript
|
|
88
|
+
* import { RequestContext } from '@mastra/core/request-context';
|
|
89
|
+
*
|
|
90
|
+
* const requestContext = new RequestContext<{ locale: string }>([
|
|
91
|
+
* ['locale', 'en'],
|
|
92
|
+
* ]);
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* @see For documentation bundled with your installed package, locate
|
|
96
|
+
* `@mastra/core/package.json` with your project's resolver or package-manager
|
|
97
|
+
* tooling, then read `dist/docs/SKILL.md` from that package root and follow its
|
|
98
|
+
* reference links. Use package-manager tools for virtual or archived packages.
|
|
99
|
+
*
|
|
100
|
+
* @see [Request context documentation](https://mastra.ai/docs/server/request-context)
|
|
101
|
+
* if packaged docs are unavailable.
|
|
102
|
+
*/
|
|
82
103
|
declare class RequestContext<Values extends Record<string, any> | unknown = unknown> {
|
|
83
104
|
private registry;
|
|
84
105
|
constructor(iterable?: Values extends Record<string, any> ? RecordToTuple<Partial<Values>> : Iterable<readonly [string, unknown]>);
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-voice-google-gemini-live
|
|
|
3
3
|
description: Documentation for @mastra/voice-google-gemini-live. Use when working with @mastra/voice-google-gemini-live APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/voice-google-gemini-live"
|
|
6
|
-
version: "0.14.
|
|
6
|
+
version: "0.14.10-alpha.1"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
package/dist/index.cjs
CHANGED
|
@@ -636,7 +636,7 @@ var AudioStreamManager = class {
|
|
|
636
636
|
turnComplete: true
|
|
637
637
|
} };
|
|
638
638
|
else return { realtime_input: { audio: {
|
|
639
|
-
mime_type:
|
|
639
|
+
mime_type: `audio/pcm;rate=${this.audioConfig.inputSampleRate ?? DEFAULT_AUDIO_CONFIG.inputSampleRate}`,
|
|
640
640
|
data: audioData
|
|
641
641
|
} } };
|
|
642
642
|
}
|
|
@@ -2361,7 +2361,8 @@ var GeminiLiveVoice = class GeminiLiveVoice extends MastraVoice {
|
|
|
2361
2361
|
} else if (data.toolCall) {
|
|
2362
2362
|
this.log("Processing tool call message");
|
|
2363
2363
|
await this.handleToolCall(data);
|
|
2364
|
-
}
|
|
2364
|
+
}
|
|
2365
|
+
if (data.usageMetadata) {
|
|
2365
2366
|
this.log("Processing usage metadata message");
|
|
2366
2367
|
this.handleUsageUpdate(data);
|
|
2367
2368
|
}
|