Skip to content

Commit 2671579

Browse files
authored
Update instruction to not use line continuation operator in generated commands (#287)
1 parent 4903fa3 commit 2671579

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

shell/agents/Microsoft.Azure.Agent/AzureAgent.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@ public sealed class AzureAgent : ILLMAgent
2626
1. User's OS is `{0}`. Make sure the generated commands are suitable for the specified OS.
2727
2. DO NOT include the command for creating a new resource group unless the query explicitly asks for it. Otherwise, assume a resource group already exists.
2828
3. DO NOT include an additional example with made-up values unless it provides additional context or value beyond the initial command.
29-
4. Always represent a placeholder in the form of `<placeholder-name>`.
30-
5. Always use the consistent placeholder names across all your responses. For example, `<resourceGroupName>` should be used for all the places where a resource group name value is needed.
31-
6. When the commands contain placeholders, the placeholders should be summarized in markdown bullet points at the end of the response in the same order as they appear in the commands, following this format:
29+
4. DO NOT use the line continuation operator (backslash `\` in Bash) in the generated commands.
30+
5. Always represent a placeholder in the form of `<placeholder-name>`.
31+
6. Always use the consistent placeholder names across all your responses. For example, `<resourceGroupName>` should be used for all the places where a resource group name value is needed.
32+
7. When the commands contain placeholders, the placeholders should be summarized in markdown bullet points at the end of the response in the same order as they appear in the commands, following this format:
3233
```
3334
Placeholders:
3435
- `<first-placeholder>`: <concise-description>
3536
- `<second-placeholder>`: <concise-description>
3637
```
37-
7. DO NOT include the placeholder summary when the commands contains no placeholder.
38+
8. DO NOT include the placeholder summary when the commands contains no placeholder.
3839
""";
3940

4041
private int _turnsLeft;

0 commit comments

Comments
 (0)