Skip to content

Commit

Permalink
Update instruction to not use line continuation operator in generated…
Browse files Browse the repository at this point in the history
… commands (#287)
  • Loading branch information
daxian-dbw authored Nov 11, 2024
1 parent 4903fa3 commit 2671579
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions shell/agents/Microsoft.Azure.Agent/AzureAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,16 @@ public sealed class AzureAgent : ILLMAgent
1. User's OS is `{0}`. Make sure the generated commands are suitable for the specified OS.
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.
3. DO NOT include an additional example with made-up values unless it provides additional context or value beyond the initial command.
4. Always represent a placeholder in the form of `<placeholder-name>`.
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.
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:
4. DO NOT use the line continuation operator (backslash `\` in Bash) in the generated commands.
5. Always represent a placeholder in the form of `<placeholder-name>`.
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.
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:
```
Placeholders:
- `<first-placeholder>`: <concise-description>
- `<second-placeholder>`: <concise-description>
```
7. DO NOT include the placeholder summary when the commands contains no placeholder.
8. DO NOT include the placeholder summary when the commands contains no placeholder.
""";

private int _turnsLeft;
Expand Down

0 comments on commit 2671579

Please sign in to comment.