Metadata-Version: 2.5
Name: zorvex-api
Version: 0.0.5
Summary: The Zorvex server: the LangGraph Agent Server API, self-hosted on PostgreSQL
Project-URL: Homepage, https://github.com/opendesign-os/zorvex
Project-URL: Source, https://github.com/opendesign-os/zorvex/tree/main/libs/zorvex-api
Project-URL: Issues, https://github.com/opendesign-os/zorvex/issues
License-Expression: Apache-2.0
Keywords: agent-protocol,agents,fastapi,langgraph,llm
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: FastAPI
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.12
Requires-Dist: alembic>=1.20.1
Requires-Dist: anyio>=4.16.0
Requires-Dist: asgi-correlation-id>=5.0.1
Requires-Dist: colorama>=0.4.6; sys_platform == 'win32'
Requires-Dist: croniter>=7.0.0
Requires-Dist: fastapi>=0.165.0
Requires-Dist: greenlet>=3.5.6
Requires-Dist: httpx>=0.28.1
Requires-Dist: jsonschema>=4.26.0
Requires-Dist: langchain-core>=1.8.4
Requires-Dist: langchain-protocol>=0.0.22
Requires-Dist: langgraph-checkpoint-postgres>=3.2.1
Requires-Dist: langgraph-sdk>=0.4.14
Requires-Dist: langgraph>=1.2.24
Requires-Dist: mcp>=2.3.0
Requires-Dist: openinference-instrumentation-langchain>=0.1.90
Requires-Dist: opentelemetry-api>=1.45.2
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.45.2
Requires-Dist: opentelemetry-instrumentation-fastapi>=0.66b2
Requires-Dist: opentelemetry-sdk>=1.45.2
Requires-Dist: prometheus-fastapi-instrumentator>=8.1.0
Requires-Dist: psycopg[binary,pool]>=3.3.9
Requires-Dist: pydantic-settings>=2.16.3
Requires-Dist: pydantic>=2.14.4
Requires-Dist: redis[hiredis]>=8.2.0
Requires-Dist: sqlalchemy>=2.1.9
Requires-Dist: sse-starlette<4.0.0,>=3.7.1
Requires-Dist: standardwebhooks>=1.3.0
Requires-Dist: structlog>=26.1.0
Requires-Dist: tenacity>=9.1.2
Requires-Dist: uvicorn[standard]>=0.54.0
Description-Content-Type: text/markdown

# zorvex-api

The server of [Zorvex](https://github.com/opendesign-os/zorvex): a FastAPI app that runs
[LangGraph](https://github.com/langchain-ai/langgraph) graphs behind the LangSmith Deployment Agent Server API, on
PostgreSQL. The LangGraph SDKs, and the clients built on them, work against it unchanged.

To create and run projects, install [zorvex-cli](https://pypi.org/project/zorvex-cli/) instead: it brings this
package along with the `zorvex` command.

## Running it directly

```bash
pip install zorvex-api
export DATABASE_URI=postgresql://zorvex:secret@localhost:5432/zorvex   # the zorvex.json in the working directory serves
uvicorn zorvex_api.main:app --host 0.0.0.0 --port 2026
```

The server applies its database migrations as it starts. On Windows, add
`--loop zorvex_api.utils.event_loop:selector_loop_factory`: psycopg's async mode needs a selector event loop.

## What it serves

- `/assistants`, `/threads`, `/runs`, `/runs/crons` and `/store`: the Agent Server API, as `langgraph-api` 0.18 serves
  it, with SSE streaming and resumable streams.
- `/threads/{thread_id}/stream/events` and `/threads/{thread_id}/commands`: the Agent Protocol v2 event stream, over
  SSE and WebSocket.
- `/mcp`: the deployment's assistants as an MCP server.
- `/a2a/{assistant_id}`: each assistant as an A2A agent, with its agent card.
- `/ok`, `/info` and `/metrics`: liveness, version and features, Prometheus metrics; `/docs` for the API reference.

## Learn more

Configuration (`zorvex.json` and the environment), deployment and API compatibility are covered in the
[Zorvex README](https://github.com/opendesign-os/zorvex#readme).

Licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).
