File size: 1,575 Bytes
6e38ce1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | # Magentic-UI Sample Scripts
This directory contains sample scripts to help explore Magentic-UI. Each script showcases a different agent or team configuration. See below for a brief explanation of each sample:
We will be adding more samples to help you get the most out of magentic-ui.
## 1. `sample_azure_agent.py`
**Description:**
- Demonstrates how to use an Azure AI Foundry agent within the Magentic-UI team.
**Usage:**
- Configure your Azure credentials and deployment names as needed.
- Run the script to see the Azure agent respond to a simple message or in the Magentic-UI team.
## 2. `sample_coder.py`
**Description:**
- Runs the coding agent (`CoderAgent`) in a round-robin manner with the user.
**Usage:**
- Run with `python sample_coder.py --work_dir <directory>` (default: `debug`).
- Enter your coding task at the prompt.
## 3. `sample_file_surfer.py`
**Description:**
- Runs the `FileSurfer` agent, which can browse and read files in a directory.
**Usage:**
- Run with `python sample_file_surfer.py --work-dir <directory>` (default: `debug`).
- Enter your file-related task at the prompt.
## 4. `sample_web_surfer.py`
**Description:**
- Runs the `WebSurfer` agent, which can interact with web pages using a Playwright browser (local or Dockerized).
- Supports both headless and VNC (noVNC) browser modes for web automation and browsing tasks.
**Usage:**
- Run with `python sample_web_surfer.py` for local browser.
- Use `--port` and `--novnc-port` for Docker/VNC modes (see script help for details).
- Enter your web task at the prompt.
|