Cloud-ready agent platform built on top of ya-agent-sdk
Project description
YA Agent Platform
Cloud-ready agent platform package for the ya-mono workspace.
Scope
This package initializes the backend service for a complete agent platform:
- multi-tenant control plane for tenants, cost centers, profiles, bridges, policies, and secrets
- a single configurable
WorkspaceProviderthat mapsproject_idsinto agent environments - chat-facing API for the first-party Web UI and programmatic clients
- role-aware administration for admins and scoped users
- bridge-facing API surface for IM connectors and future channel adapters
- runtime orchestration built on
ya-agent-sdkwith environment-aware scheduling - persistence scaffold with PostgreSQL, Redis, packaged Alembic migrations, and startup auto-migration
- specification documents that define the target architecture before full implementation
Current Layout
packages/ya-agent-platform/
├── README.md
├── infra/
│ ├── dev.env
│ └── docker-compose.dev.yml
├── pyproject.toml
├── spec/
├── start.sh
├── tests/
└── ya_agent_platform/
├── alembic/
├── alembic.ini
├── api/
├── app.py
├── cli.py
├── config.py
├── db/
└── redis.py
Quick Start
From the workspace root:
uv sync --all-packages
make platform-infra-up
set -a && source packages/ya-agent-platform/infra/dev.env && set +a
uv run --package ya-agent-platform ya-agent-platform serve --reload
The development server listens on http://127.0.0.1:9042 by default.
Database and Redis Commands
Use the package CLI directly:
uv run --package ya-agent-platform ya-agent-platform migrate
uv run --package ya-agent-platform ya-agent-platform db current
uv run --package ya-agent-platform ya-agent-platform db history
uv run --package ya-agent-platform ya-agent-platform db migrate "add workspace provider tables"
Use the workspace Makefile wrappers:
make platform-db-upgrade
make platform-db-current
make platform-db-history
make platform-db-migrate MSG="add workspace provider tables"
Auto Migration
YA_PLATFORM_AUTO_MIGRATE=true is the default behavior.
ya-agent-platform serveapplies migrations before boot whenYA_PLATFORM_DATABASE_URLis configuredya-agent-platform migrateruns migrations separatelystart.shapplies migrations before starting the server in container environments
Development Infrastructure
The dev compose file starts PostgreSQL and Redis:
make platform-infra-up
make platform-infra-status
make platform-infra-down
Default development URLs live in packages/ya-agent-platform/infra/dev.env.
Combined Docker Image
The repository root Dockerfile builds a single production image that contains:
- the
ya-agent-platformbackend - the bundled
ya-agent-platform-webfrontend - FastAPI static serving for the built web assets
- startup auto-migration support through
packages/ya-agent-platform/start.sh
Build locally from the repository root:
docker build -t ya-agent-platform:dev .
Run locally:
docker run --rm -p 9042:9042 ya-agent-platform:dev
The container serves the combined application on http://127.0.0.1:9042.
Initial API Surface
GET /healthz— service health probe with postgres and redis component statusGET /api/v1/platform/info— platform metadata and enabled surfacesGET /api/v1/platform/topology— high-level component topology for the UI and tooling
Specification Set
The spec is organized around a multi-tenant, cloud-ready platform model with simple admin/user roles, first-class cost centers, and one configurable WorkspaceProvider.
Primary documents:
spec/README.mdspec/000-platform-overview.mdspec/001-product-model.mdspec/002-multi-tenancy-and-identity.mdspec/003-control-plane.mdspec/004-runtime-and-environments.mdspec/005-session-and-execution-model.mdspec/006-events-streaming-and-notifications.mdspec/007-bridge-protocol.mdspec/008-http-api.mdspec/009-web-ui.mdspec/010-deployment-topology.mdspec/011-data-model.md
Next Build Phase
- add multi-tenant persistence models, cost centers, and auth context
- add
WorkspaceProviderintegration and provider-aware runtime resolution - add control-plane CRUD for tenants, agent profiles, environment profiles, bridges, and grants
- add runtime scheduling, session orchestration, and durable replay storage
- connect the Web UI to live chat, admin, usage, and audit endpoints
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 ya_agent_platform-0.58.5.tar.gz.
File metadata
- Download URL: ya_agent_platform-0.58.5.tar.gz
- Upload date:
- Size: 36.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d5be136ac6d58803a57aa2c589f509c05f2ca88450856da8ffbd4f4a40d01cf
|
|
| MD5 |
4544856a81e25674a3de317f181ffd6b
|
|
| BLAKE2b-256 |
11655ff22bdff129ce35dc45424360166e37595c34822a3eeb53e358714ee902
|
File details
Details for the file ya_agent_platform-0.58.5-py3-none-any.whl.
File metadata
- Download URL: ya_agent_platform-0.58.5-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5830ba3575fd8365ba44fc834a240a1cd698523192da909689bfbfb7e3b9724b
|
|
| MD5 |
4a35617640059dd28a22132eb1513533
|
|
| BLAKE2b-256 |
e08d243fae483b1a210842ecc331fc2ebd770f457df3243b11bf3a5d268e7c23
|