Realtime Chat
[BETA] Modules concerning the realtime chat modules to interact with realtime chat models.
GoogleRealtimeChat(model_name, api_key=None, credentials_path=None, project_id=None, location='us-central1')
Bases: GoogleRealtimeSession
[BETA] A realtime chat module to interact with Gemini Live models.
Attributes:
| Name | Type | Description |
|---|---|---|
model_name |
str
|
The name of the language model. |
client_params |
dict[str, Any]
|
The Google client instance init parameters. |
Initializes a new instance of the GoogleRealtimeChat class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model_name
|
str
|
The name of the model to use. |
required |
api_key
|
str | None
|
Required for Google Gen AI authentication. Cannot be used together
with |
None
|
credentials_path
|
str | None
|
Required for Google Vertex AI authentication. Path to the service
account credentials JSON file. Cannot be used together with |
None
|
project_id
|
str | None
|
The Google Cloud project ID for Vertex AI. Only used when authenticating
with |
None
|
location
|
str
|
The location of the Google Cloud project for Vertex AI. Only used when
authenticating with |
'us-central1'
|
Note
If neither api_key nor credentials_path is provided, Google Gen AI will be used by default.
The GOOGLE_API_KEY environment variable will be used for authentication.