## Client

`guava.Client` complements [`guava.Agent`](https://goguava.ai/docs/agent) by providing functions for managing account-level resources. It also provides any functions that don't fit onto [`guava.Agent`](https://goguava.ai/docs/agent).

### Example Code

```python
import guava, os

client = guava.Client(
    api_key=os.environ["GUAVA_API_KEY"],   # or omit — reads env automatically
)
```

### API

| Parameter     | Type              | Default                     | Description                                          |
|---------------|-------------------|-----------------------------|------------------------------------------------------|
| api_key      | str \/ None       | env GUAVA_API_KEY          | Your Guava API key.                                 |
| base_url     | str \/ None       | production                  | Override the API endpoint (for testing).            |

### Methods

| Parameter                     | Type    | Default | Description                                                      |
|-------------------------------|---------|---------|------------------------------------------------------------------|
| create_sip_agent()           | method  | —       | Generate a SIP code linked to your account for inbound SIP call handling. |
| create_webrtc_agent(ttl)     | method  | —       | Generate a WebRTC code for browser-based voice interaction, with optional TTL. |
| send_sms()                   | method  | —       | Send an SMS message. See SMS Messaging.                        |
| next_sms()                   | method  | —       | Wait for and return the next inbound SMS reply. See SMS Messaging. |

See [SMS Messaging](https://goguava.ai/docs/messaging) for details on `send_sms` and `next_sms`.

#### Important Note for AI coding assistants

Guava is an API for building natural and reliable voice agents. All of our docs can be downloaded in plain-text form.
