Skip to content

Commit 15213d4

Browse files
committed
Rename package from plivo_agent to plivo_agentstack
Move src/plivo_agent/ to src/plivo_agentstack/, update all imports across tests, examples, CI, pyproject.toml, README, and CLAUDE.md.
1 parent ae3c5cd commit 15213d4

49 files changed

Lines changed: 115 additions & 115 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
run: pip install -e ".[dev]" pytest-cov
4646

4747
- name: Run tests with coverage
48-
run: pytest tests/ --cov=plivo_agent --cov-report=xml
48+
run: pytest tests/ --cov=plivo_agentstack --cov-report=xml
4949

5050
- name: Upload coverage to Codecov
5151
uses: codecov/codecov-action@v4

CLAUDE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# CLAUDE.md — plivo-agent-python
1+
# CLAUDE.md — plivo-agentstack-python
22

33
## Project overview
44

5-
Async-first Python SDK for Plivo (`plivo_agent`). Covers Voice AI Agents (WebSocket + REST), Messaging (SMS/MMS/WhatsApp), and Numbers. Python 3.10+, built with `hatchling`.
5+
Async-first Python SDK for Plivo (`plivo_agentstack`). Covers Voice AI Agents (WebSocket + REST), Messaging (SMS/MMS/WhatsApp), and Numbers. Python 3.10+, built with `hatchling`.
66

77
## Repository layout
88

99
```
10-
src/plivo_agent/
10+
src/plivo_agentstack/
1111
__init__.py # Public exports: AsyncClient, errors
1212
client.py # AsyncClient entry point
1313
_http.py # HttpTransport — retry, auth, error mapping
@@ -78,5 +78,5 @@ ruff check src/ tests/ # lint
7878

7979
- New REST resources: add to the appropriate sub-client (`agent/client.py`, `messaging/client.py`, `numbers/client.py`), wire into the parent client, add tests with `respx` mocks
8080
- New WebSocket events: add a `@dataclass` to `agent/events.py`, register in `_EVENT_REGISTRY`, add parse test in `test_events.py`
81-
- New examples: add to `examples/`, use `from plivo_agent import AsyncClient` and `from plivo_agent.agent import VoiceApp, ...` pattern. Update README Quick start section
81+
- New examples: add to `examples/`, use `from plivo_agentstack import AsyncClient` and `from plivo_agentstack.agent import VoiceApp, ...` pattern. Update README Quick start section
8282
- Keep dependencies minimal — core deps are `httpx`, `websockets`, `starlette` only

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Plivo Agent Python SDK
1+
# Plivo AgentStack Python SDK
22

3-
[![PyPI version](https://img.shields.io/pypi/v/plivo_agent.svg)](https://pypi.org/project/plivo_agent/)
4-
[![Python 3.10+](https://img.shields.io/pypi/pyversions/plivo_agent.svg)](https://pypi.org/project/plivo_agent/)
5-
[![Tests](https://github.com/plivo/plivo-agent-python/actions/workflows/tests.yml/badge.svg)](https://github.com/plivo/plivo-agent-python/actions/workflows/tests.yml)
6-
[![codecov](https://codecov.io/gh/plivo/plivo-agent-python/branch/main/graph/badge.svg)](https://codecov.io/gh/plivo/plivo-agent-python)
3+
[![PyPI version](https://img.shields.io/pypi/v/plivo_agentstack.svg)](https://pypi.org/project/plivo_agentstack/)
4+
[![Python 3.10+](https://img.shields.io/pypi/pyversions/plivo_agentstack.svg)](https://pypi.org/project/plivo_agentstack/)
5+
[![Tests](https://github.com/plivo/plivo-agentstack-python/actions/workflows/tests.yml/badge.svg)](https://github.com/plivo/plivo-agentstack-python/actions/workflows/tests.yml)
6+
[![codecov](https://codecov.io/gh/plivo/plivo-agentstack-python/branch/main/graph/badge.svg)](https://codecov.io/gh/plivo/plivo-agentstack-python)
77
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
88

99
Plivo Programmable Agents SDK - Build AI Agents that work over voice calls, SMS/WhatsApp programmatically.
@@ -71,7 +71,7 @@ Inbound/Outbound Call
7171
## Installation
7272

7373
```bash
74-
pip install plivo_agent
74+
pip install plivo_agentstack
7575
```
7676

7777
Requires Python 3.10+.
@@ -98,8 +98,8 @@ Sign up at [cx.plivo.com/signup](https://cx.plivo.com/signup) to get your `PLIVO
9898
## Development
9999

100100
```bash
101-
git clone https://github.com/plivo/plivo-agent-python.git
102-
cd plivo-agent-python
101+
git clone https://github.com/plivo/plivo-agentstack-python.git
102+
cd plivo-agentstack-python
103103
python -m venv .venv && source .venv/bin/activate
104104
pip install -e ".[dev]"
105105
pytest tests/ -v # 70 tests

examples/agent_basic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
handles tool calls during live voice sessions.
55
66
Prerequisites:
7-
pip install plivo_agent[all]
7+
pip install plivo_agentstack[all]
88
99
Environment variables:
1010
PLIVO_AUTH_ID -- Your Plivo auth ID
@@ -18,8 +18,8 @@
1818
import logging
1919
import os
2020

21-
from plivo_agent import AsyncClient
22-
from plivo_agent.agent import (
21+
from plivo_agentstack import AsyncClient
22+
from plivo_agentstack.agent import (
2323
AgentSessionEnded,
2424
AgentSessionStarted,
2525
ToolCall,

examples/agent_fastapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
allowing you to combine voice agent endpoints with REST routes.
55
66
Prerequisites:
7-
pip install plivo_agent[all] fastapi uvicorn
7+
pip install plivo_agentstack[all] fastapi uvicorn
88
99
Run:
1010
uvicorn agent_fastapi:fastapi_app --port 9000
@@ -14,7 +14,7 @@
1414

1515
from fastapi import FastAPI, WebSocket
1616

17-
from plivo_agent.agent import (
17+
from plivo_agentstack.agent import (
1818
AgentSessionEnded,
1919
AgentSessionStarted,
2020
ToolCall,

examples/audio_stream.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
- clearAudio: Clear all queued audio (for interruption)
3535
3636
Usage:
37-
1. pip install plivo_agent[all]
37+
1. pip install plivo_agentstack[all]
3838
2. Set PLIVO_AUTH_ID, PLIVO_AUTH_TOKEN env vars
3939
3. python audio_stream.py
4040
"""
@@ -43,8 +43,8 @@
4343
import os
4444
import time
4545

46-
from plivo_agent import AsyncClient
47-
from plivo_agent.agent import (
46+
from plivo_agentstack import AsyncClient
47+
from plivo_agentstack.agent import (
4848
AgentSessionEnded,
4949
AgentSessionStarted,
5050
ClearedAudio,

examples/background_audio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@
3030
1.0 Full volume (use sparingly)
3131
3232
Usage:
33-
1. pip install plivo_agent[all]
33+
1. pip install plivo_agentstack[all]
3434
2. Set PLIVO_AUTH_ID, PLIVO_AUTH_TOKEN env vars
3535
3. python background_audio.py
3636
"""
3737

3838
import asyncio
3939
import os
4040

41-
from plivo_agent import AsyncClient
42-
from plivo_agent.agent import (
41+
from plivo_agentstack import AsyncClient
42+
from plivo_agentstack.agent import (
4343
AgentSessionEnded,
4444
AgentSessionStarted,
4545
ToolCall,

examples/buy_number.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Search for available phone numbers and buy one.
22
33
Prerequisites:
4-
pip install plivo_agent
4+
pip install plivo_agentstack
55
66
Environment variables:
77
PLIVO_AUTH_ID -- Your Plivo auth ID
@@ -13,7 +13,7 @@
1313

1414
import asyncio
1515

16-
from plivo_agent import AsyncClient
16+
from plivo_agentstack import AsyncClient
1717

1818

1919
async def main():

examples/byollm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
LLM: OpenAI GPT-4.1-mini (your API key, your code)
2121
2222
Usage:
23-
1. pip install plivo_agent[all] openai
23+
1. pip install plivo_agentstack[all] openai
2424
2. Set PLIVO_AUTH_ID, PLIVO_AUTH_TOKEN, OPENAI_API_KEY env vars
2525
3. python byollm.py
2626
"""
@@ -30,8 +30,8 @@
3030

3131
from openai import AsyncOpenAI
3232

33-
from plivo_agent import AsyncClient
34-
from plivo_agent.agent import (
33+
from plivo_agentstack import AsyncClient
34+
from plivo_agentstack.agent import (
3535
AgentSessionEnded,
3636
AgentSessionStarted,
3737
Dtmf,

examples/byollm_echo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
This lets you trace the full STT -> customer WS -> TTS flow with fake API keys.
66
77
Usage:
8-
1. pip install plivo_agent[all]
8+
1. pip install plivo_agentstack[all]
99
2. python byollm_echo.py
1010
"""
1111

12-
from plivo_agent.agent import (
12+
from plivo_agentstack.agent import (
1313
AgentSessionEnded,
1414
AgentSessionStarted,
1515
Error,

0 commit comments

Comments
 (0)