LanguageModelPromptOptions interface

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.

Options for an on-device language model prompt.

Signature:

exportinterfaceLanguageModelPromptOptions

Properties

PropertyTypeDescription
responseConstraintobject(Public Preview)

LanguageModelPromptOptions.responseConstraint

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:

responseConstraint?:object;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-09-18 UTC.