| sidebar_position | 1 |
|---|---|
| title | Installation |
| description | Install the Conversational AI Python SDK. |
- Python >= 3.8
pip install agent-server-sdkpoetry add agent-server-sdkThe following packages are installed automatically:
| Package | Purpose |
|---|---|
httpx (>= 0.21.2) |
HTTP client for sync and async requests |
pydantic (>= 1.9.2) |
Data validation for vendor configuration and API types |
typing_extensions (>= 4.0.0) |
Backported type hints for Python 3.8+ |
The SDK supports both synchronous and asynchronous usage:
- Synchronous — import
AgentClientfromagentand use blocking method calls - Asynchronous — import
AsyncAgentClientandAsyncAgentSessionfromagentand useawaitwith all API calls
# Sync
from shengwang_agent import AgentClient, Area
# Async
from shengwang_agent import AsyncAgentClient, AsyncAgentSession, AreaBoth clients share the same constructor parameters and capabilities. See Authentication for setup details.