Skip to content

GoogleRealtimeSession

Namespace: Vercel.AI.Google

public sealed class GoogleRealtimeSession

Session fields accepted by GoogleRealtime.

Inheritance: object

View source

public int? InputAudioRate { get; set; }

Capture rate advertised on input audio blobs.

Value: int?

View source

public bool InputAudioTranscription { get; set; }

When true, request input transcription.

Value: bool

View source

public string? Instructions { get; set; }

System instruction.

Value: string

View source

public string ModelId { get; set; }

Model id.

Value: string

View source

public bool OutputAudioTranscription { get; set; }

When true, request output transcription.

Value: bool

View source

public IReadOnlyList<string>? OutputModalities { get; set; }

Output modalities. Defaults to audio.

Value: IReadOnlyList<string>

View source

public JsonElement? ProviderOptions { get; set; }

Provider options. google holds translation and thinking config. Other keys are copied onto setup.

Value: JsonElement?

View source

public IReadOnlyList<GoogleRealtimeTool>? Tools { get; set; }

Function tools.

Value: IReadOnlyList<GoogleRealtimeTool>

View source

public string? Voice { get; set; }

Voice name.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product