Client
guava.Client complements guava.Agent by providing functions for managing account-level resources. It also provides any functions that don't fit onto guava.Agent.
run.py
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. |
Questions? hi@goguava.ai
import guava, os
client = guava.Client(
api_key=os.environ["GUAVA_API_KEY"], # or omit — reads env automatically
)