llm_wire/google
Configures the built-in Google Gemini GenerateContent adapter.
let config = google.new(api_key) |> google.config
The adapter targets https://generativelanguage.googleapis.com/v1beta.
The model is one segment of the request path, so prepare admits only
ASCII letters, digits, ., -, _ and : (for example
gemini-2.5-pro) and refuses anything else with
InvalidSetting(Model, _).
Gemini’s signed parts travel in each assistant turn’s provider_data
and must be replayed unchanged. Structured output is sent as
generationConfig.responseJsonSchema, which also takes what strict
providers refuse: optional fields, codec.nullable, number ranges,
pairs and codec.value(). The key is held in a closure and never
prints.
Types
Values
pub fn config(options: Options) -> llm_wire.Config
The configuration of Gemini calls, with the default limits and timeouts.