LanguageModelExpected 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 the expected inputs for an on-device language model.

Signature:

export interface LanguageModelExpected 

Properties

Property Type Description
languages string[] (Public Preview)
type LanguageModelMessageType (Public Preview)

LanguageModelExpected.languages

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:

languages?: string[];

LanguageModelExpected.type

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:

type: LanguageModelMessageType;