LiveModelParams interface
Stay organized with collections
Save and categorize content based on your preferences.
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Params passed to getLiveGenerativeModel().
Signature:
export interface LiveModelParams
Properties
LiveModelParams.generationConfig
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Signature:
generationConfig?: LiveGenerationConfig;
LiveModelParams.model
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Signature:
model: string;
LiveModelParams.systemInstruction
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Signature:
systemInstruction?: string | Part | Content;
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Signature:
toolConfig?: ToolConfig;
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Signature:
tools?: Tool[];
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[],[],null,["\u003e This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\nParams passed to [getLiveGenerativeModel()](./ai.md#getlivegenerativemodel_f2099ac).\n\n**Signature:** \n\n export interface LiveModelParams \n\nProperties\n\n| Property | Type | Description |\n|-------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|------------------------|\n| [generationConfig](./ai.livemodelparams.md#livemodelparamsgenerationconfig) | [LiveGenerationConfig](./ai.livegenerationconfig.md#livegenerationconfig_interface) | ***(Public Preview)*** |\n| [model](./ai.livemodelparams.md#livemodelparamsmodel) | string | ***(Public Preview)*** |\n| [systemInstruction](./ai.livemodelparams.md#livemodelparamssysteminstruction) | string \\| [Part](./ai.md#part) \\| [Content](./ai.content.md#content_interface) | ***(Public Preview)*** |\n| [toolConfig](./ai.livemodelparams.md#livemodelparamstoolconfig) | [ToolConfig](./ai.toolconfig.md#toolconfig_interface) | ***(Public Preview)*** |\n| [tools](./ai.livemodelparams.md#livemodelparamstools) | [Tool](./ai.md#tool)\\[\\] | ***(Public Preview)*** |\n\nLiveModelParams.generationConfig This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\n**Signature:** \n\n generationConfig?: LiveGenerationConfig;\n\nLiveModelParams.model This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\n**Signature:** \n\n model: string;\n\nLiveModelParams.systemInstruction This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\n**Signature:** \n\n systemInstruction?: string | Part | Content;\n\nLiveModelParams.toolConfig This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\n**Signature:** \n\n toolConfig?: ToolConfig;\n\nLiveModelParams.tools This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\n**Signature:** \n\n tools?: Tool[];"]]