LanguageModelChatRequestOptions

Options for making a chat request using a language model.

See also

Properties

Link copied to clipboard
abstract var justification: String?

A human-readable message that explains why access to a language model is needed and what feature is enabled by it.

Link copied to clipboard
abstract var modelOptions: Record<JsString, *>?

A set of options that control the behavior of the language model. These options are specific to the language model and need to be looked up in the respective documentation.

Link copied to clipboard

The tool-selecting mode to use. LanguageModelChatToolMode.Auto by default.

Link copied to clipboard

An optional list of tools that are available to the language model. These could be registered tools available via lm.tools, or private tools that are just implemented within the calling extension.