|
| 1 | +# UCAgent Workshop Quick Start Guide |
| 2 | + |
| 3 | +Welcome to the UCAgent Workshop! The code and environment for this workshop demonstration are available at the official repository: [https://github.com/XS-MLVP/tutorial-records](https://github.com/XS-MLVP/tutorial-records). |
| 4 | + |
| 5 | +This guide will walk you through pulling the pre-built environment, launching the Web UI, and exploring the pre-configured digital circuit verification cases. |
| 6 | + |
| 7 | +## 📦 Repository Overview |
| 8 | + |
| 9 | +In this repository, you will find: |
| 10 | + |
| 11 | +- **Pre-prepared Cases**: Classic verification examples along with their historical verification records. |
| 12 | +- **Docker Scripts**: The `Dockerfile` and `start_demo.sh` scripts, which our CI uses to automatically build and publish the workshop image. |
| 13 | +- **Environment Template**: A `.env.template` file for optional API configuration. |
| 14 | + |
| 15 | +--- |
| 16 | + |
| 17 | +## 🚀 Quick Start (Viewing the Demo) |
| 18 | + |
| 19 | +You **do not** need to build the Docker image yourself. The tutorial repository's CI has automatically built and published the image for you. |
| 20 | + |
| 21 | +### 1. Pull the Docker Image |
| 22 | + |
| 23 | +First, pull the latest workshop image to your local machine: |
| 24 | + |
| 25 | +```bash |
| 26 | +docker pull ghcr.io/xs-mlvp/workshop:latest |
| 27 | +``` |
| 28 | + |
| 29 | +### 2. Launch the Demo Environment |
| 30 | + |
| 31 | +Start the container using the following command. This will spin up the Master API server and load the pre-configured background agents: |
| 32 | + |
| 33 | +```bash |
| 34 | +docker run -it --rm --network host ghcr.io/xs-mlvp/ucagent:workshop_demo |
| 35 | +``` |
| 36 | + |
| 37 | +_(Note: We use `--network host` so the container can easily map to your local ports and share your host's network settings.)_ |
| 38 | + |
| 39 | +### 3. Explore the Web UI |
| 40 | + |
| 41 | +Once the terminal indicates that all services have started, open your web browser and navigate to: |
| 42 | +👉 **http://localhost:8800** |
| 43 | + |
| 44 | +In this unified Master Web Interface, you can: |
| 45 | + |
| 46 | +- **View Pre-loaded Tasks**: On the left-hand task panel, you will see the cases. Both should have a green **Online** status indicator. |
| 47 | +- **Review History**: Click the **API** connection button next to any task to jump into its real-time control center. Here, you can review previously generated code, stage verification logs, and Diff files without needing any LLM API keys. |
| 48 | + |
| 49 | +--- |
| 50 | + |
| 51 | +## 🛠️ Advanced: Running Verifications Yourself (Optional) |
| 52 | + |
| 53 | +The quick start above is perfect for exploring the UI and viewing the pre-generated results. However, if you wish to write custom prompts and have UCAgent actively generate new code and run verifications in real-time, you must configure your Large Language Model (LLM) credentials. |
| 54 | + |
| 55 | +1. **Prepare your `.env` file** |
| 56 | + Copy the provided template and fill in your API credentials (e.g., OpenAI or a compatible interface): |
| 57 | + |
| 58 | + ```bash |
| 59 | + cp .env.template .env |
| 60 | + # Edit .env to add your OPENAI_API_KEY, OPENAI_API_BASE, and OPENAI_MODEL |
| 61 | + ``` |
| 62 | + |
| 63 | +2. **Launch with API Access** |
| 64 | + Run the container again, this time attaching your `.env` file so the agents can connect to the LLM: |
| 65 | + ```bash |
| 66 | + docker run -it --rm --network host --env-file .env ghcr.io/xs-mlvp/workshop:latest |
| 67 | + ``` |
| 68 | + |
| 69 | +With your API keys successfully loaded, the Agents are now fully empowered to execute new automated verification workflows based on your commands! |
0 commit comments