A tool-calling mode for the language model to use.

Static variables

@:enumstaticread onlyAuto:LanguageModelChatToolMode

The language model can choose to call a tool or generate a message. Is the default.

@:enumstaticread onlyRequired:LanguageModelChatToolMode

The language model must call one of the provided tools. Note- some models only support a single tool when using this mode.