2024-06-17 17:54:27 -07:00
|
|
|
# Examples
|
|
|
|
|
|
|
|
This directory contains examples of how to use AGNext.
|
|
|
|
|
2024-06-19 13:49:13 -04:00
|
|
|
First, you need a shell with AGNext and the examples dependencies installed. To do this, run:
|
2024-06-17 17:54:27 -07:00
|
|
|
|
|
|
|
```bash
|
2024-06-19 13:49:13 -04:00
|
|
|
hatch shell
|
2024-06-17 17:54:27 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
To run an example, just run the corresponding Python script. For example, to run the `coder_reviewer.py` example, run:
|
|
|
|
|
|
|
|
```bash
|
2024-06-19 13:49:13 -04:00
|
|
|
hatch shell
|
2024-06-17 17:54:27 -07:00
|
|
|
python coder_reviewer.py
|
|
|
|
```
|
|
|
|
|
2024-06-19 13:49:13 -04:00
|
|
|
Or simply:
|
|
|
|
```bash
|
|
|
|
hatch run python coder_reviewer.py
|
|
|
|
```
|
|
|
|
|
2024-06-17 17:54:27 -07:00
|
|
|
To enable logging, turn on verbose mode by setting `--verbose` flag:
|
|
|
|
|
|
|
|
```bash
|
2024-06-19 13:49:13 -04:00
|
|
|
hatch run python coder_reviewer.py --verbose
|
2024-06-17 17:54:27 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
By default the log file is saved in the same directory with the same filename
|
|
|
|
as the script, e.g., "coder_reviewer.log".
|