LanguageModelCreateCoreOptions interface
Stay organized with collections
Save and categorize content based on your preferences.
(EXPERIMENTAL) Configures the creation of an on-device language model session.
Signature:
export interface LanguageModelCreateCoreOptions
Properties
Signature:
expectedInputs?: LanguageModelExpected[];
LanguageModelCreateCoreOptions.temperature
Signature:
temperature?: number;
LanguageModelCreateCoreOptions.topK
Signature:
topK?: number;
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,["# LanguageModelCreateCoreOptions interface\n\n**(EXPERIMENTAL)** Configures the creation of an on-device language model session.\n\n**Signature:** \n\n export interface LanguageModelCreateCoreOptions \n\nProperties\n----------\n\n| Property | Type | Description |\n|-------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|-------------|\n| [expectedInputs](./ai.languagemodelcreatecoreoptions.md#languagemodelcreatecoreoptionsexpectedinputs) | [LanguageModelExpected](./ai.languagemodelexpected.md#languagemodelexpected_interface)\\[\\] | |\n| [temperature](./ai.languagemodelcreatecoreoptions.md#languagemodelcreatecoreoptionstemperature) | number | |\n| [topK](./ai.languagemodelcreatecoreoptions.md#languagemodelcreatecoreoptionstopk) | number | |\n\nLanguageModelCreateCoreOptions.expectedInputs\n---------------------------------------------\n\n**Signature:** \n\n expectedInputs?: LanguageModelExpected[];\n\nLanguageModelCreateCoreOptions.temperature\n------------------------------------------\n\n**Signature:** \n\n temperature?: number;\n\nLanguageModelCreateCoreOptions.topK\n-----------------------------------\n\n**Signature:** \n\n topK?: number;"]]