ModelParams interface
Stay organized with collections
Save and categorize content based on your preferences.
Params passed to getGenerativeModel().
Signature:
export interface ModelParams extends BaseParams
Extends: BaseParams
Properties
ModelParams.model
Signature:
model: string;
ModelParams.systemInstruction
Signature:
systemInstruction?: string | Part | Content;
Signature:
toolConfig?: ToolConfig;
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-07 UTC.
[null,null,["Last updated 2025-08-07 UTC."],[],[],null,["# ModelParams interface\n\nParams passed to [getGenerativeModel()](./ai.md#getgenerativemodel_c63f46a).\n\n**Signature:** \n\n export interface ModelParams extends BaseParams \n\n**Extends:** [BaseParams](./ai.baseparams.md#baseparams_interface)\n\nProperties\n----------\n\n| Property | Type | Description |\n|-----------------------------------------------------------------------|--------------------------------------------------------------------------------|-------------|\n| [model](./ai.modelparams.md#modelparamsmodel) | string | |\n| [systemInstruction](./ai.modelparams.md#modelparamssysteminstruction) | string \\| [Part](./ai.md#part) \\| [Content](./ai.content.md#content_interface) | |\n| [toolConfig](./ai.modelparams.md#modelparamstoolconfig) | [ToolConfig](./ai.toolconfig.md#toolconfig_interface) | |\n| [tools](./ai.modelparams.md#modelparamstools) | [Tool](./ai.md#tool)\\[\\] | |\n\nModelParams.model\n-----------------\n\n**Signature:** \n\n model: string;\n\nModelParams.systemInstruction\n-----------------------------\n\n**Signature:** \n\n systemInstruction?: string | Part | Content;\n\nModelParams.toolConfig\n----------------------\n\n**Signature:** \n\n toolConfig?: ToolConfig;\n\nModelParams.tools\n-----------------\n\n**Signature:** \n\n tools?: Tool[];"]]