agent-api-server
agent-api-server is a FastAPI-based API server for LangGraph agents. It exposes REST endpoints for thread, schema, graph, and runtime configuration management, and it serves a built-in web client from /site.
Features
- FastAPI application factory for embedding or standalone deployment
- LangGraph-oriented API routes under
/api/v1 - Built-in static client assets bundled in both sdist and wheel artifacts
- Redis-backed thread storage and PostgreSQL checkpoint integration
- Optional integration with config center, SSO, MCP, and model management services
Requirements
- Python 3.11 to 3.13
- Redis
- PostgreSQL
- Access to all runtime dependencies declared in
pyproject.toml
Installation
Install from a package index that provides all required dependencies:
pip install agent-api-server
This project depends on llm-sdk and model-manage-client. If those packages are hosted on a private index in your environment, configure pip or Poetry to use that index before installation.
Configuration
The server reads configuration from environment variables. Common settings include:
REDIS_URL=redis://localhost:6379/0
POSTGRES_URL=postgresql://postgres:postgres@localhost:5432/postgres
MODEL_MANAGER_SERVICE_URL=http://127.0.0.1:10053
SERVER_PORT=8080
SERVER_WORKER_AMOUNT=1
LOG_LEVEL=INFO
ENABLE_MCP_SERVER=False
See .env_example for a more complete example.
Running the server
Run the application with Uvicorn:
uvicorn agent_api_server.service:create_fastapi_app --factory --host 0.0.0.0 --port 8080
After startup:
- API root:
http://127.0.0.1:8080/api/v1 - OpenAPI docs:
http://127.0.0.1:8080/docs - Built-in client:
http://127.0.0.1:8080/site
Build
Build source and wheel distributions with Poetry:
poetry build
Repository
Source repository: https://gitlab.wise-paas.com/openai/agent_api_server
Metadata
Release files for agent-api-server 2.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agent_api_server-2.2.1.tar.gz | 1.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agent_api_server-2.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.3 MB
Release files / agent_api_server-2.2.1.tar.gz
| Download URL | agent_api_server-2.2.1.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
009da2924411bbb6822024f172621a06743d0bcc117fd44ca75662866728d28d
|
|
BLAKE2b-256 checksum How to use checksums |
a35556f9661391bae85371f0e4a724612c0cc3a3180b92d963b45d0a70317f8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.14 Linux/6.8.0-101-generic
|
Release files / agent_api_server-2.2.1-py3-none-any.whl
| Download URL | agent_api_server-2.2.1-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca6f5a67b58ca79aeaf2701d543a2a85fd58541d2a320d5a78a8e7d7d9d49866
|
|
BLAKE2b-256 checksum How to use checksums |
719c4a4e4e396e228861dccd1f933620fbc7b6ed3ef2150fea827197892e8916
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.14 Linux/6.8.0-101-generic
|