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:

  • management API for platform and workspace administration
  • chat-facing API for first-party Chat UI
  • bridge-facing API surface for IM connectors
  • runtime integration points for ya-agent-sdk
  • 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 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 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

Next Build Phase

  1. add persistence models and first migrations
  2. add runtime orchestration and worker execution
  3. add bridge registry and delivery guarantees
  4. connect the web app to live platform 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.3.tar.gz (15.3 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.3-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file ya_agent_platform-0.58.3.tar.gz.

File metadata

  • Download URL: ya_agent_platform-0.58.3.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.2

File hashes

Hashes for ya_agent_platform-0.58.3.tar.gz
Algorithm Hash digest
SHA256 1bfd2add708678aee4972ef174826aa39467014eefadfce075a180d4ef3cf371
MD5 3cc5e12d759eeeb6cc516d75b88addc5
BLAKE2b-256 a3e407cc19dad8b30e571f7679436f53b3a360874974da5d35f6ce744869fb5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ya_agent_platform-0.58.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c1b0fc48027e4f84edd822d61917d5f5367b248299407222366ddca7faaeda2e
MD5 aea2b2ce3087100264af4933544b4a74
BLAKE2b-256 21c2c174a30e2f1bc838155ec106f83218650706d68aece07eada69911e6fa73

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