Skip to main content

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 WorkspaceProvider that maps project_ids into 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-sdk with 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 serve applies migrations before boot when YA_PLATFORM_DATABASE_URL is configured
  • ya-agent-platform migrate runs migrations separately
  • start.sh applies 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-platform backend
  • the bundled ya-agent-platform-web frontend
  • 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 status
  • GET /api/v1/platform/info — platform metadata and enabled surfaces
  • GET /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:

Next Build Phase

  1. add multi-tenant persistence models, cost centers, and auth context
  2. add WorkspaceProvider integration and provider-aware runtime resolution
  3. add control-plane CRUD for tenants, agent profiles, environment profiles, bridges, and grants
  4. add runtime scheduling, session orchestration, and durable replay storage
  5. connect the Web UI to live chat, admin, usage, and audit endpoints

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ya_agent_platform-0.58.5.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ya_agent_platform-0.58.5-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

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

Hashes for ya_agent_platform-0.58.5.tar.gz
Algorithm Hash digest
SHA256 6d5be136ac6d58803a57aa2c589f509c05f2ca88450856da8ffbd4f4a40d01cf
MD5 4544856a81e25674a3de317f181ffd6b
BLAKE2b-256 11655ff22bdff129ce35dc45424360166e37595c34822a3eeb53e358714ee902

See more details on using hashes here.

File details

Details for the file ya_agent_platform-0.58.5-py3-none-any.whl.

File metadata

File hashes

Hashes for ya_agent_platform-0.58.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5830ba3575fd8365ba44fc834a240a1cd698523192da909689bfbfb7e3b9724b
MD5 4a35617640059dd28a22132eb1513533
BLAKE2b-256 e08d243fae483b1a210842ecc331fc2ebd770f457df3243b11bf3a5d268e7c23

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page