Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge the az-cli and az-ps agent changes to the main branch #224

Merged
merged 9 commits into from
Sep 10, 2024

Conversation

daxian-dbw
Copy link
Member

PR Summary

Merge the az-cli and az-ps agent changes to the main branch.

The az-cli and az-ps agent changes include some number of changes to the host and shell, which should be merged to the main branch. It's hard to separate out those changes only to merge, so we merge all changes, and then we can move the code for az-cli and az-ps agents to a separate branch again.

daxian-dbw and others added 9 commits September 10, 2024 11:46
…#208)

Merge the parameter injection prototype into the `azureAgents` branch, to reduce the maintenance complexity.

1. Add the `/replace` command
1. Retrieve data locally with 2 tiers of data source to assist user to input values for placeholders.
    - The 1st tier is the cache data generated from parsing the AzCLI help content. We the description and static values for a parameter from this data source.
    - The 2nd tier is the AzCLI tab completion, to get the dynamic values for a parameter, such as `--resource-group`.
1. Fix a bug when handling remote query.
1. Fix the data retrieval code to handle the case when the generated command is not AzCLI command
1. Send pseudo values to the server handler instead of real values from user to avoid any privacy issue. After receiving response, the agent will replace all pseudo values with the real values before displaying to the user.
1. Do not include 'placeholderSet' in a history entry when its value is null.
2. Reduce the fake wait time when replacing user values from 2.5s to 2s.
3. Change the format for a pseudo value from '__replace_<cnt>_v__' to '__pseudo_<cnt>_v__' to avoid confusion caused to GPT by the word 'replace'.
@daxian-dbw daxian-dbw merged commit 2fe79f4 into main Sep 10, 2024
4 checks passed
@daxian-dbw daxian-dbw deleted the azureAgents branch September 10, 2024 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants