SDK Initialization
Environment Modes
| Environment | Description | API Key | Logging | Telemetry |
|---|---|---|---|---|
.development | Local development | Optional | Verbose | Disabled |
.staging | Testing with services | Required | Info | Enabled |
.production | Production deployment | Required | Minimal | Enabled |
Development Mode (Default)
Production Mode
Check SDK State
Generation Options
Configure text generation behavior:Generation Parameters
| Parameter | Type | Default | Range | Description |
|---|---|---|---|---|
maxTokens | int | 100 | 1–4096 | Maximum output length |
temperature | double | 0.8 | 0.0–2.0 | Higher = more creative |
topP | double | 1.0 | 0.0–1.0 | Nucleus sampling |
stopSequences | List<String> | [] | - | Stop generation triggers |
systemPrompt | String? | null | - | System context |