Constructor
| Parameter | Type | Description |
|---|---|---|
api_key | str | Your GPT Driver API key |
platform | str | "android" or "ios" (when the SDK starts its own session) |
device_name | str | Device name (when the SDK starts its own session) |
platform_version | str | Platform version (when the SDK starts its own session) |
driver | WebDriver | An existing Appium driver to attach to instead of starting a new session |
enable_self_healing | bool | Enable/disable self healing globally (default: True) |
Self healing
By default, allfind_element calls are wrapped with self-healing. When an element can’t be found, the SDK attempts to resolve it automatically.
AI commands
execute
Execute a natural language instruction on the current screen.assert_condition
Verify a condition without taking any action. Raises an error if the condition fails.Session status
Report the outcome of a session so it is recorded on the dashboard.Caching
The SDK supports caching to reduce AI calls for repetitive executions:| Mode | Description |
|---|---|
NONE | No caching |
FULL_SCREEN | Cache hit only if the full screen matches a previous successful execution |
INTERACTION_REGION | Cache hit if the interaction region matches (e.g., the area around a tapped element) |

