Skip to main content

parse_options

Function parse_options 

Source
pub fn parse_options(
    config: &GoogleConfig,
    provider_options: &ProviderOptions,
) -> Result<GoogleLanguageModelOptions, InvalidArgumentError>
Expand description

Parses the language model options (canonical key, then configured name).

ยงErrors

Returns InvalidArgumentError when either object does not match the option schema.