A Langgraph agent API server that implements Langgraph agent's web capabilities and can interact with chatbot
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_api_server-2.2.1a0.tar.gz.
File metadata
- Download URL: agent_api_server-2.2.1a0.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.14 Linux/6.8.0-101-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5de997810c1b6c8bdb086c011ccb3678a66b0b6c60515921e825b9dfa25e5d80
|
|
| MD5 |
cd77aa1e8a83654030c23501531b4f20
|
|
| BLAKE2b-256 |
659886197fe20878f6d7b2a8715ad3f17f0c3e8862258b0567a631039ae78b21
|
File details
Details for the file agent_api_server-2.2.1a0-py3-none-any.whl.
File metadata
- Download URL: agent_api_server-2.2.1a0-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.14 Linux/6.8.0-101-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
339a69ab63d2e058fa93009b8ef002a9442597afaf5f803d9ae779bb617b13d5
|
|
| MD5 |
abf7797d972a0e2f086996b0df66c67f
|
|
| BLAKE2b-256 |
e6e83efe2c62d2d28c6293f619b53d9ed2ad81314fe1aafa0fb4aeb44c11a7d2
|