create_provider
Create a provider configuration for AI assistant delegation by specifying type, endpoint, and the environment variable holding the API key.
Instructions
Create a provider configuration.
Secrets are NOT stored in the config: pass the NAME of an environment variable (e.g. 'MISTRAL_API_KEY') as api_key_env and the value will be resolved at request time from the server's environment.
Args: name: Unique provider id (lowercase, '-' or '_' allowed). type: Provider type (stub, openai_compatible, ollama). endpoint: Base URL for the provider API. api_key_env: Environment variable name holding the API key. options: JSON object with provider-specific options (e.g. model, timeout).
Returns: JSON result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| type | Yes | ||
| options | No | {} | |
| endpoint | No | ||
| api_key_env | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |