LanguageModelExpected interface
Stay organized with collections
Save and categorize content based on your preferences.
(EXPERIMENTAL) Options for the expected inputs for an on-device language model.
Signature:
export interface LanguageModelExpected
Properties
LanguageModelExpected.languages
Signature:
languages?: string[];
LanguageModelExpected.type
Signature:
type: LanguageModelMessageType;
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,["# LanguageModelExpected interface\n\n**(EXPERIMENTAL)** Options for the expected inputs for an on-device language model.\n\n**Signature:** \n\n export interface LanguageModelExpected \n\nProperties\n----------\n\n| Property | Type | Description |\n|---------------------------------------------------------------------------|--------------------------------------------------------------|-------------|\n| [languages](./ai.languagemodelexpected.md#languagemodelexpectedlanguages) | string\\[\\] | |\n| [type](./ai.languagemodelexpected.md#languagemodelexpectedtype) | [LanguageModelMessageType](./ai.md#languagemodelmessagetype) | |\n\nLanguageModelExpected.languages\n-------------------------------\n\n**Signature:** \n\n languages?: string[];\n\nLanguageModelExpected.type\n--------------------------\n\n**Signature:** \n\n type: LanguageModelMessageType;"]]