Model and provider
Connect an agent to a model and keep credentials in application configuration.
An agent selects its provider and model through a provider/model string. Configure the connection before testing a model response.
Configure your first connection
For local development, initialize user secrets in the ASP.NET Core project:
Use the key from configuration when creating the agent:
Place this after creating builder and register the definition with options.AddAgent(agent). The model is an example; use one available in your provider account. User secrets are for development; use your deployment's secret configuration in production.
Understand the model reference
In openai/gpt-5, openai selects the provider strategy and gpt-5 is passed to its client. Runiq validates the provider name, but model availability and supported parameters depend on the provider.
For a locally running Ollama server, use a model you have installed:
The default Ollama connection does not require an API key.
Provider reference
These are the defaults defined by Runiq's provider registry.
| Provider | Default URL | Key required at 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 | Configure an explicit URL | Yes |
Override connection options
ProviderOptions belongs to Runiq.AI.Core.Configuration. Pass it as the agent's provider argument:
Url overrides the default endpoint. Timeout handling depends on the provider client implementation; the option should not be treated as a universal deadline. Pass a cancellation token when running the agent.
Tune response behavior
| Constructor argument | Accepted values | Default |
|---|---|---|
reasoningEffort | minimal, low, medium, high | minimal |
verbosity | low, medium, high | low |
These are Runiq's accepted configuration values. Their effect depends on the selected provider and model; they do not guarantee identical behavior across providers.
Check connection failures
If execution reports ApiKeyMissing, confirm the key is present in the running host's configuration. For rejected model requests, check the model identifier, endpoint, credentials, and provider response.