Documentation Index
Fetch the complete documentation index at: https://patter-06b046ce-docs-fix-logo-and-home-icon.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Configuration
ThePatter class is the main entry point for the SDK. The constructor parameters you provide determine the operational mode.
Mode Detection
Patter runs in local mode. It is auto-detected when telephony provider keys are provided:| Condition | Detected Mode |
|---|---|
twilio_sid or telnyx_key provided | Local (auto-detected) |
mode="local" set explicitly | Local |
Constructor Parameters
Local Mode
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | str | "local" | Operating mode. Can be omitted — auto-detected when provider keys are given. |
twilio_sid | str | "" | Twilio Account SID. |
twilio_token | str | "" | Twilio Auth Token. Required when twilio_sid is provided. |
telnyx_key | str | "" | Telnyx API key. |
telnyx_connection_id | str | "" | Telnyx Call Control Application ID. |
openai_key | str | "" | OpenAI API key for the Realtime API. |
elevenlabs_key | str | "" | ElevenLabs API key (optional, for pipeline mode). |
deepgram_key | str | "" | Deepgram API key (optional, for pipeline mode). |
phone_number | str | "" | Your phone number in E.164 format (e.g., "+15550001234"). Required when telephony keys are provided. |
webhook_url | str | "" | Public hostname of this server, without scheme (e.g., "abc.ngrok.io"). Required when telephony keys are provided. |
Validation Rules
Local mode enforces the following validation when telephony keys are provided:phone_numberis requiredwebhook_urlis requiredtwilio_tokenis required whentwilio_sidis provided
Environment Variables
We recommend loading credentials from environment variables usingpython-dotenv: