Model and provider
Configure provider, model, API key, and runtime behavior for Runiq agents.
Runiq agents use a provider/model string.
The provider part selects a supported provider strategy. The model part is passed to that provider client.
Supported provider names
The current implementation validates provider names against these defaults:
| Provider | Default URL | Requires API key with default URL |
|---|---|---|
openai | https://api.openai.com/v1 | Yes |
ollama | http://localhost:11434 | No |
groq | https://api.groq.com/openai/v1 | Yes |
mistral | https://api.mistral.ai/v1 | Yes |
deepseek | https://api.deepseek.com | Yes |
openrouter | https://openrouter.ai/api/v1 | Yes |
together | https://api.together.xyz/v1 | Yes |
fireworks | https://api.fireworks.ai/inference/v1 | Yes |
nvidia | https://integrate.api.nvidia.com/v1 | Yes |
azure-openai | No built-in default URL | Yes |
The model name is not a closed enum in the Agent constructor. It is the string after the first slash and is sent to the selected provider.
Examples
Custom provider options
An agent can receive ProviderOptions for provider-specific runtime settings.
ProviderOptions.Url overrides the provider's default URL. ProviderOptions.Timeout is present in the options model, but timeout behavior depends on the provider client implementation.
API key behavior
The apiKey constructor parameter is optional at the type level.
At runtime, provider requirements still apply. If an agent uses a provider default endpoint that requires a key and apiKey is missing, execution fails with ApiKeyMissing.
OpenAI with the default endpoint needs a valid key:
Ollama is currently configured as a local provider that does not require an API key:
Reasoning effort and verbosity
The Agent constructor supports two runtime behavior values:
reasoningEffort accepts:
verbosity accepts:
The constructor defaults are reasoningEffort: "minimal" and verbosity: "low".
For dashboard and playground testing, those defaults are usually a good starting point because they keep responses fast and focused. Increase them only when the agent needs deeper analysis or more detailed output.