Skip to content

stapply-ai/agent

Repository files navigation

Agent Stapply

This codebase contains the code to run an eval with the agent and the server that powers the cloud platform of Stapply.

To run: uv run python -m server.main.

Setup

Prerequisites

  • Python 3.8+
  • uv (Rust-based Python package manager)

Install uv (macOS/Linux):

curl -LsSf https://astral.sh/uv/install.sh | sh

On Windows (PowerShell):

irm https://astral.sh/uv/install.ps1 | iex

Installation

  1. Clone the repository:
git clone <repository-url>
cd stapply-ai/agent
  1. Create and activate a virtual environment with uv:
uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install dependencies (from pyproject.toml):
uv sync
  1. Install Playwright browser dependencies (first-time only):
uv run playwright install chromium

Running the Server

Development Mode

uv run python server/main.py

The server will start on http://localhost:8000

Using Uvicorn directly

uv run uvicorn server.main:app --reload --host 0.0.0.0 --port 8000

API Documentation

Once the server is running, you can access:

Development

Code Structure

server/
├── main.py              # Main FastAPI application
└── __init__.py          # Python package marker

pyproject.toml          # Project metadata and dependencies (managed by uv)
README.md               # This file

License

See LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published