Llm Options
Portable LLM options.
Parameters
explicit model selection criteria. If provided, overrides model and role.
Optional model name to use. If provided, specifies an LLM by name. Takes precedence over role.
Optional role to use for model selection. If provided, and model is not specified, used to find an LLM by role
Optional timeout for this LLM call. If provided, overrides the default client timeout.
Constructors
Properties
Functions
Get a provider-specific extension value by key. Returns null if the extension is not present or cannot be cast to type T.
Read the native structured-output mode from LlmOptions.
Fill in anything this instance leaves unset from defaults, keeping every value set here.
Add or update a provider-specific extension. Returns a new LlmOptions with the extension added/updated.
Attach a native structured-output mode to LlmOptions.
Create a copy with a default temperature for the LLM. If null, uses the default temperature for the model.