fix: self healing response parser

This commit is contained in:
Florian Hönicke
2023-05-26 17:35:00 +02:00
parent 70b37f7d14
commit 43bcfc31e2
5 changed files with 80 additions and 10 deletions

View File

@@ -310,14 +310,22 @@ Output the apt-get packages that need to be placed at {{APT_GET_PACKAGES}} as js
```json
{{"packages": ["<package1>", "<package2>"]}}
```
Example:
Error is about missing package `libgl1-mesa-glx`.
The output is:
Example output for an error is about missing package `libgl1-mesa-glx`:
**apt-get-packages.json**
```json
{{"packages": [libgl1-mesa-glx]}}
```
Only output content of the apt-get-packages.json file. Ensure the response can be parsed by Python json.loads
Negative example1:
```json
{{"packages": [libgl1-mesa-glx]}}
```
Negative example2:
{{"packages": [libgl1-mesa-glx]}}
Note: Only output content of the apt-get-packages.json file.
Note: you must not output the content of any other. Especially don't output the Dockerfile or requirements.txt.
Note: the first line you output must be: **apt-get-packages.json**
'''