-
Notifications
You must be signed in to change notification settings - Fork 338
Expand file tree
/
Copy pathapi_proto.ts
More file actions
82 lines (78 loc) · 2.51 KB
/
Copy pathapi_proto.ts
File metadata and controls
82 lines (78 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// SPDX-FileCopyrightText: 2025 LiveKit, Inc.
//
// SPDX-License-Identifier: Apache-2.0
import type * as types from '@google/genai';
/**
* Supported Google Live API models
*
* Gemini API deprecations: https://ai.google.dev/gemini-api/docs/deprecations
* Gemini API release notes with preview deprecations: https://ai.google.dev/gemini-api/docs/changelog
* Live models: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/live-api
* VertexAI retirement: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions#retired-models
* Additional references:
* 1. https://github.com/kazunori279/adk-streaming-test/blob/main/test_report.md
*/
export type LiveAPIModels =
// VertexAI models
| 'gemini-live-2.5-flash-native-audio' // GA https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/2-5-flash-live-api#live-2.5-flash
| 'gemini-live-2.5-flash-preview-native-audio-09-2025' // Public preview https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/2-5-flash-live-api#live-2.5-flash-preview
| 'gemini-live-2.5-flash-preview-native-audio' // still works, possibly an alias, but not mentioned in any docs or changelog
// Gemini API models
| 'gemini-3.1-flash-live-preview' // https://ai.google.dev/gemini-api/docs/models/gemini-3.1-flash-live-preview
| 'gemini-2.5-flash-native-audio-preview-12-2025' // https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-live
| 'gemini-2.5-flash-native-audio-preview-09-2025' // https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-live
| 'gemini-2.0-flash-exp'; // still works in Gemini API but not VertexAI
/**
* Available voice options for Google Realtime API
*/
export type Voice =
| 'Achernar'
| 'Achird'
| 'Algenib'
| 'Algieba'
| 'Alnilam'
| 'Aoede'
| 'Autonoe'
| 'Callirrhoe'
| 'Charon'
| 'Despina'
| 'Enceladus'
| 'Erinome'
| 'Fenrir'
| 'Gacrux'
| 'Iapetus'
| 'Kore'
| 'Laomedeia'
| 'Leda'
| 'Orus'
| 'Pulcherrima'
| 'Puck'
| 'Rasalgethi'
| 'Sadachbia'
| 'Sadaltager'
| 'Schedar'
| 'Sulafat'
| 'Umbriel'
| 'Vindemiatrix'
| 'Zephyr'
| 'Zubenelgenubi';
/**
* Union type for all possible client events
*/
export type ClientEvents =
| {
type: 'content';
value: types.LiveClientContent;
}
| {
type: 'realtime_input';
value: types.LiveClientRealtimeInput;
}
| {
type: 'tool_response';
value: types.LiveClientToolResponse;
}
| {
type: 'function_response';
value: types.FunctionResponse;
};