You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
4
+
5
+
We will be adding more samples to help you get the most out of magentic-ui.
6
+
7
+
## 1. `sample_azure_agent.py`
8
+
9
+
**Description:**
10
+
11
+
- Demonstrates how to use an Azure AI Foundry agent within the Magentic-UI team.
12
+
13
+
**Usage:**
14
+
15
+
- Configure your Azure credentials and deployment names as needed.
16
+
- Run the script to see the Azure agent respond to a simple message or in the Magentic-UI team.
17
+
18
+
## 2. `sample_coder.py`
19
+
20
+
**Description:**
21
+
22
+
- Runs the coding agent (`CoderAgent`) in a round-robin manner with the user.
23
+
24
+
**Usage:**
25
+
26
+
- Run with `python sample_coder.py --work_dir <directory>` (default: `debug`).
27
+
- Enter your coding task at the prompt.
28
+
29
+
## 3. `sample_file_surfer.py`
30
+
31
+
**Description:**
32
+
33
+
- Runs the `FileSurfer` agent, which can browse and read files in a directory.
34
+
35
+
**Usage:**
36
+
37
+
- Run with `python sample_file_surfer.py --work-dir <directory>` (default: `debug`).
38
+
- Enter your file-related task at the prompt.
39
+
40
+
## 4. `sample_web_surfer.py`
41
+
42
+
**Description:**
43
+
44
+
- Runs the `WebSurfer` agent, which can interact with web pages using a Playwright browser (local or Dockerized).
45
+
- Supports both headless and VNC (noVNC) browser modes for web automation and browsing tasks.
46
+
47
+
**Usage:**
48
+
49
+
- Run with `python sample_web_surfer.py` for local browser.
50
+
- Use `--port` and `--novnc-port` for Docker/VNC modes (see script help for details).
0 commit comments