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
Copy file name to clipboardExpand all lines: aws_doc_sdk_examples_tools/agent/README.md
+32-12Lines changed: 32 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,13 @@
1
1
# Ailly Prompt Workflow
2
2
3
-
This project provides two scripts to **generate**, **run**, and **parse**[Ailly](https://www.npmjs.com/package/@ailly/cli) prompts based on your AWS DocGen snippets.
3
+
This project provides three scripts to **generate** Ailly prompts, **run** them, **parse**the results, and **update** a DocGen instance.
4
4
5
5
## Overview
6
6
7
7
1.**Generate** Ailly prompts from DocGen snippets (`make_prompts.py`).
8
8
2.**Run** the Ailly CLI on the generated prompts (`npx @ailly/cli`).
9
-
3.**Parse** the Ailly outputs back into structured JSON (`parse_json_files.py`).
9
+
3.**Parse** the Ailly outputs into structured JSON (`parse_json_files.py`).
10
+
4.**Update** your DocGen project with the parsed results (`update_doc_gen.py`).
10
11
11
12
---
12
13
@@ -33,15 +34,11 @@ python make_prompts.py \
33
34
-`--system-prompts`: One or more system prompts, either as strings or file paths.
34
35
-`--out`: (Optional) Output directory. Defaults to `.ailly_prompts`.
35
36
36
-
This will:
37
-
- Create Markdown files for each snippet.
38
-
- Create a `.aillyrc` file with the provided system prompts.
39
-
40
37
---
41
38
42
39
## Step 2: Run Ailly CLI
43
40
44
-
Run Ailly on the generated prompts. From inside the .ailly_prompts directory:
41
+
Run Ailly on the generated prompts:
45
42
46
43
```bash
47
44
npx @ailly/cli --root .ailly_prompts
@@ -53,15 +50,33 @@ This will create `{file}.ailly.md` output files in the `.ailly_prompts` director
53
50
54
51
## Step 3: Parse Ailly output
55
52
56
-
After Ailly has generated response files (`*.ailly.md`), parse them into JSON objects using `parse_json_files.py`:
53
+
Parse the `{name}.ailly.md` files into JSON using `parse_json_files.py`:
0 commit comments