@@ -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 );
@@ -256,6 +260,8 @@ export { Date_2 as Date }
256260// @public
257261export interface EnhancedGenerateContentResponse extends GenerateContentResponse {
258262 functionCalls: () => FunctionCall [] | undefined ;
263+ // @beta
264+ inferenceSource? : InferenceSource ;
259265 inlineDataParts: () => InlineDataPart [] | undefined ;
260266 text: () => string ;
261267 thoughtSummary: () => string | undefined ;
@@ -816,6 +822,15 @@ export const InferenceMode: {
816822// @beta
817823export type InferenceMode = (typeof InferenceMode )[keyof typeof InferenceMode ];
818824
825+ // @beta
826+ export const InferenceSource: {
827+ readonly ON_DEVICE: " on_device" ;
828+ readonly IN_CLOUD: " in_cloud" ;
829+ };
830+
831+ // @beta
832+ export type InferenceSource = (typeof InferenceSource )[keyof typeof InferenceSource ];
833+
819834// @public
820835export interface InlineDataPart {
821836 // (undocumented)
@@ -911,7 +926,9 @@ export interface LanguageModelPromptOptions {
911926// @beta
912927export interface LiveGenerationConfig {
913928 frequencyPenalty? : number ;
929+ inputAudioTranscription? : AudioTranscriptionConfig ;
914930 maxOutputTokens? : number ;
931+ outputAudioTranscription? : AudioTranscriptionConfig ;
915932 presencePenalty? : number ;
916933 responseModalities? : ResponseModality [];
917934 speechConfig? : SpeechConfig ;
@@ -964,8 +981,10 @@ export type LiveResponseType = (typeof LiveResponseType)[keyof typeof LiveRespon
964981
965982// @beta
966983export interface LiveServerContent {
984+ inputTranscription? : Transcription ;
967985 interrupted? : boolean ;
968986 modelTurn? : Content ;
987+ outputTranscription? : Transcription ;
969988 turnComplete? : boolean ;
970989 // (undocumented)
971990 type: ' serverContent' ;
@@ -994,9 +1013,14 @@ export class LiveSession {
9941013 isClosed: boolean ;
9951014 receive(): AsyncGenerator <LiveServerContent | LiveServerToolCall | LiveServerToolCallCancellation >;
9961015 send(request : string | Array <string | Part >, turnComplete ? : boolean ): Promise <void >;
1016+ sendAudioRealtime(blob : GenerativeContentBlob ): Promise <void >;
9971017 sendFunctionResponses(functionResponses : FunctionResponse []): Promise <void >;
1018+ // @deprecated
9981019 sendMediaChunks(mediaChunks : GenerativeContentBlob []): Promise <void >;
1020+ // @deprecated (undocumented)
9991021 sendMediaStream(mediaChunkStream : ReadableStream <GenerativeContentBlob >): Promise <void >;
1022+ sendTextRealtime(text : string ): Promise <void >;
1023+ sendVideoRealtime(blob : GenerativeContentBlob ): Promise <void >;
10001024 }
10011025
10021026// @public
@@ -1326,6 +1350,11 @@ export interface ToolConfig {
13261350 functionCallingConfig? : FunctionCallingConfig ;
13271351}
13281352
1353+ // @beta
1354+ export interface Transcription {
1355+ text? : string ;
1356+ }
1357+
13291358// @public
13301359export type TypedSchema = IntegerSchema | NumberSchema | StringSchema | BooleanSchema | ObjectSchema | ArraySchema | AnyOfSchema ;
13311360
0 commit comments