guava-sdk 0.20.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. guava_sdk-0.20.0/.gitignore +11 -0
  2. guava_sdk-0.20.0/PKG-INFO +63 -0
  3. guava_sdk-0.20.0/README.md +41 -0
  4. guava_sdk-0.20.0/guava/__init__.py +9 -0
  5. guava_sdk-0.20.0/guava/agent.py +592 -0
  6. guava_sdk-0.20.0/guava/call.py +227 -0
  7. guava_sdk-0.20.0/guava/call_controller.py +538 -0
  8. guava_sdk-0.20.0/guava/campaigns.py +139 -0
  9. guava_sdk-0.20.0/guava/client.py +437 -0
  10. guava_sdk-0.20.0/guava/commands.py +125 -0
  11. guava_sdk-0.20.0/guava/devaudio/sounddevice.py +183 -0
  12. guava_sdk-0.20.0/guava/events.py +162 -0
  13. guava_sdk-0.20.0/guava/examples/agent/help_desk.py +77 -0
  14. guava_sdk-0.20.0/guava/examples/agent/polling_campaign.py +116 -0
  15. guava_sdk-0.20.0/guava/examples/agent/property_insurance.py +28 -0
  16. guava_sdk-0.20.0/guava/examples/agent/restaurant_waitlist.py +74 -0
  17. guava_sdk-0.20.0/guava/examples/agent/scheduling_outbound.py +68 -0
  18. guava_sdk-0.20.0/guava/examples/credit_card_activation.py +155 -0
  19. guava_sdk-0.20.0/guava/examples/example_data.py +804 -0
  20. guava_sdk-0.20.0/guava/examples/inbound_sip.py +21 -0
  21. guava_sdk-0.20.0/guava/examples/inbound_webrtc.py +25 -0
  22. guava_sdk-0.20.0/guava/examples/mock_appointments.py +35 -0
  23. guava_sdk-0.20.0/guava/examples/polling.py +140 -0
  24. guava_sdk-0.20.0/guava/examples/property_insurance.py +44 -0
  25. guava_sdk-0.20.0/guava/examples/scheduling_inbound.py +51 -0
  26. guava_sdk-0.20.0/guava/examples/scheduling_outbound.py +77 -0
  27. guava_sdk-0.20.0/guava/examples/thai_palace.py +76 -0
  28. guava_sdk-0.20.0/guava/guavadialer_events.py +42 -0
  29. guava_sdk-0.20.0/guava/helpers/beta.py +10 -0
  30. guava_sdk-0.20.0/guava/helpers/chromadb.py +89 -0
  31. guava_sdk-0.20.0/guava/helpers/fastapi.py +82 -0
  32. guava_sdk-0.20.0/guava/helpers/genai.py +190 -0
  33. guava_sdk-0.20.0/guava/helpers/lancedb.py +106 -0
  34. guava_sdk-0.20.0/guava/helpers/openai.py +259 -0
  35. guava_sdk-0.20.0/guava/helpers/pgvector.py +103 -0
  36. guava_sdk-0.20.0/guava/helpers/pinecone.py +135 -0
  37. guava_sdk-0.20.0/guava/helpers/rag.py +422 -0
  38. guava_sdk-0.20.0/guava/helpers/server_rag.py +180 -0
  39. guava_sdk-0.20.0/guava/helpers/vertexai.py +97 -0
  40. guava_sdk-0.20.0/guava/listen_inbound.py +51 -0
  41. guava_sdk-0.20.0/guava/logging_utils.py +76 -0
  42. guava_sdk-0.20.0/guava/py.typed +0 -0
  43. guava_sdk-0.20.0/guava/socket/client.py +349 -0
  44. guava_sdk-0.20.0/guava/socket/protocol.py +66 -0
  45. guava_sdk-0.20.0/guava/socket/utils.py +20 -0
  46. guava_sdk-0.20.0/guava/telemetry.py +159 -0
  47. guava_sdk-0.20.0/guava/terminal_call.py +111 -0
  48. guava_sdk-0.20.0/guava/threading_utils.py +17 -0
  49. guava_sdk-0.20.0/guava/tools/__init__.py +0 -0
  50. guava_sdk-0.20.0/guava/tools/create_sip_agent.py +5 -0
  51. guava_sdk-0.20.0/guava/tools/create_webrtc_agent.py +5 -0
  52. guava_sdk-0.20.0/guava/types/__init__.py +115 -0
  53. guava_sdk-0.20.0/guava/types/call_info.py +33 -0
  54. guava_sdk-0.20.0/guava/types/incoming_call_action.py +16 -0
  55. guava_sdk-0.20.0/guava/utils.py +93 -0
  56. guava_sdk-0.20.0/pyproject.toml +48 -0
@@ -0,0 +1,11 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
11
+ *.env
@@ -0,0 +1,63 @@
1
+ Metadata-Version: 2.4
2
+ Name: guava-sdk
3
+ Version: 0.20.0
4
+ Summary: The official Python SDK for building Guava voice agents.
5
+ Requires-Python: >=3.10
6
+ Requires-Dist: google-genai>=1.55.0
7
+ Requires-Dist: openai>=2.8.1
8
+ Requires-Dist: pydantic>=2.12.4
9
+ Requires-Dist: typing-extensions>=4.15.0
10
+ Requires-Dist: websockets>=15.0.1
11
+ Provides-Extra: chromadb
12
+ Requires-Dist: chromadb>=0.6.0; extra == 'chromadb'
13
+ Provides-Extra: lancedb
14
+ Requires-Dist: lancedb>=0.20.0; extra == 'lancedb'
15
+ Provides-Extra: pgvector
16
+ Requires-Dist: numpy>=1.26.0; extra == 'pgvector'
17
+ Requires-Dist: pgvector>=0.4.0; extra == 'pgvector'
18
+ Requires-Dist: psycopg[binary]>=3.2.0; extra == 'pgvector'
19
+ Provides-Extra: pinecone
20
+ Requires-Dist: pinecone>=5.0.0; extra == 'pinecone'
21
+ Description-Content-Type: text/markdown
22
+
23
+ # Guava Python SDK
24
+
25
+ ## Documentation
26
+
27
+ Full documentation for the Python SDK can be found at [https://docs.goguava.ai/](https://docs.goguava.ai/).
28
+
29
+
30
+ ## Installation
31
+
32
+ Install the Python SDK using your preferred package manager.
33
+
34
+ *Method 1: pip*
35
+ ```bash
36
+ $ pip install gridspace-guava --extra-index-url https://guava-pypi.gridspace.com
37
+ ```
38
+
39
+ *Method 2: uv astral*
40
+ ```bash
41
+ $ uv add gridspace-guava --index guava=https://guava-pypi.gridspace.com
42
+ ```
43
+
44
+ *Method 3: poetry*
45
+ ```bash
46
+ $ poetry source add --priority=explicit guava https://guava-pypi.gridspace.com
47
+ $ poetry add --source guava gridspace-guava
48
+ ```
49
+
50
+ ## Running an Example
51
+
52
+ Set your environment variables.
53
+
54
+ ```bash
55
+ $ export GUAVA_API_KEY="..."
56
+ $ export GUAVA_AGENT_NUMBER="..."
57
+ ```
58
+
59
+ Examples can be found in the `guava.examples` submodule.
60
+
61
+ ```bash
62
+ $ python -m guava.examples.scheduling_outbound +1... "John Doe" # Use your own phone number and name to receive a call.
63
+ ```
@@ -0,0 +1,41 @@
1
+ # Guava Python SDK
2
+
3
+ ## Documentation
4
+
5
+ Full documentation for the Python SDK can be found at [https://docs.goguava.ai/](https://docs.goguava.ai/).
6
+
7
+
8
+ ## Installation
9
+
10
+ Install the Python SDK using your preferred package manager.
11
+
12
+ *Method 1: pip*
13
+ ```bash
14
+ $ pip install gridspace-guava --extra-index-url https://guava-pypi.gridspace.com
15
+ ```
16
+
17
+ *Method 2: uv astral*
18
+ ```bash
19
+ $ uv add gridspace-guava --index guava=https://guava-pypi.gridspace.com
20
+ ```
21
+
22
+ *Method 3: poetry*
23
+ ```bash
24
+ $ poetry source add --priority=explicit guava https://guava-pypi.gridspace.com
25
+ $ poetry add --source guava gridspace-guava
26
+ ```
27
+
28
+ ## Running an Example
29
+
30
+ Set your environment variables.
31
+
32
+ ```bash
33
+ $ export GUAVA_API_KEY="..."
34
+ $ export GUAVA_AGENT_NUMBER="..."
35
+ ```
36
+
37
+ Examples can be found in the `guava.examples` submodule.
38
+
39
+ ```bash
40
+ $ python -m guava.examples.scheduling_outbound +1... "John Doe" # Use your own phone number and name to receive a call.
41
+ ```
@@ -0,0 +1,9 @@
1
+ from .client import Client
2
+ from .types import Field, Say, Todo
3
+ from .call_controller import CallController
4
+ from .types.call_info import CallInfo
5
+ from .types.incoming_call_action import IncomingCallAction, AcceptCall, DeclineCall
6
+ from .agent import Agent, SuggestedAction
7
+ from .call import Call
8
+
9
+ __all__ = ["CallController", "Client", "Field", "Say", "Todo", "CallInfo", "IncomingCallAction", "AcceptCall", "DeclineCall", "Agent", "Call", "SuggestedAction"]