@@ -92,6 +92,10 @@ export interface AudioConversationController {
9292 stop: () => Promise <void >;
9393}
9494
95+ // @public
96+ export interface AudioTranscriptionConfig {
97+ }
98+
9599// @public
96100export abstract class Backend {
97101 protected constructor (type : BackendType );
@@ -153,6 +157,8 @@ export interface ChromeAdapter {
153157 generateContent(request : GenerateContentRequest ): Promise <Response >;
154158 generateContentStream(request : GenerateContentRequest ): Promise <Response >;
155159 isAvailable(request : GenerateContentRequest ): Promise <boolean >;
160+ // @internal (undocumented)
161+ mode: InferenceMode ;
156162}
157163
158164// @public
@@ -256,6 +262,8 @@ export { Date_2 as Date }
256262// @public
257263export interface EnhancedGenerateContentResponse extends GenerateContentResponse {
258264 functionCalls: () => FunctionCall [] | undefined ;
265+ // @beta
266+ inferenceSource? : InferenceSource ;
259267 inlineDataParts: () => InlineDataPart [] | undefined ;
260268 text: () => string ;
261269 thoughtSummary: () => string | undefined ;
@@ -816,6 +824,15 @@ export const InferenceMode: {
816824// @beta
817825export type InferenceMode = (typeof InferenceMode )[keyof typeof InferenceMode ];
818826
827+ // @beta
828+ export const InferenceSource: {
829+ readonly ON_DEVICE: " on_device" ;
830+ readonly IN_CLOUD: " in_cloud" ;
831+ };
832+
833+ // @beta
834+ export type InferenceSource = (typeof InferenceSource )[keyof typeof InferenceSource ];
835+
819836// @public
820837export interface InlineDataPart {
821838 // (undocumented)
@@ -911,7 +928,9 @@ export interface LanguageModelPromptOptions {
911928// @beta
912929export interface LiveGenerationConfig {
913930 frequencyPenalty? : number ;
931+ inputAudioTranscription? : AudioTranscriptionConfig ;
914932 maxOutputTokens? : number ;
933+ outputAudioTranscription? : AudioTranscriptionConfig ;
915934 presencePenalty? : number ;
916935 responseModalities? : ResponseModality [];
917936 speechConfig? : SpeechConfig ;
@@ -964,8 +983,10 @@ export type LiveResponseType = (typeof LiveResponseType)[keyof typeof LiveRespon
964983
965984// @beta
966985export interface LiveServerContent {
986+ inputTranscription? : Transcription ;
967987 interrupted? : boolean ;
968988 modelTurn? : Content ;
989+ outputTranscription? : Transcription ;
969990 turnComplete? : boolean ;
970991 // (undocumented)
971992 type: ' serverContent' ;
@@ -994,9 +1015,14 @@ export class LiveSession {
9941015 isClosed: boolean ;
9951016 receive(): AsyncGenerator <LiveServerContent | LiveServerToolCall | LiveServerToolCallCancellation >;
9961017 send(request : string | Array <string | Part >, turnComplete ? : boolean ): Promise <void >;
1018+ sendAudioRealtime(blob : GenerativeContentBlob ): Promise <void >;
9971019 sendFunctionResponses(functionResponses : FunctionResponse []): Promise <void >;
1020+ // @deprecated
9981021 sendMediaChunks(mediaChunks : GenerativeContentBlob []): Promise <void >;
1022+ // @deprecated (undocumented)
9991023 sendMediaStream(mediaChunkStream : ReadableStream <GenerativeContentBlob >): Promise <void >;
1024+ sendTextRealtime(text : string ): Promise <void >;
1025+ sendVideoRealtime(blob : GenerativeContentBlob ): Promise <void >;
10001026 }
10011027
10021028// @public
@@ -1326,6 +1352,11 @@ export interface ToolConfig {
13261352 functionCallingConfig? : FunctionCallingConfig ;
13271353}
13281354
1355+ // @beta
1356+ export interface Transcription {
1357+ text? : string ;
1358+ }
1359+
13291360// @public
13301361export type TypedSchema = IntegerSchema | NumberSchema | StringSchema | BooleanSchema | ObjectSchema | ArraySchema | AnyOfSchema ;
13311362
0 commit comments