File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
src/aks-preview/azext_aks_preview Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 378378CONST_AGENT_CONFIG_PATH_DIR_ENV_KEY = "HOLMES_CONFIGPATH_DIR"
379379CONST_AGENT_NAME = "AKS AGENT"
380380CONST_AGENT_NAME_ENV_KEY = "AGENT_NAME"
381- CONST_AGENT_CONFIG_FILE_NAME = "aksAgent.config "
381+ CONST_AGENT_CONFIG_FILE_NAME = "aksAgent.yaml "
Original file line number Diff line number Diff line change 40024002 - name: Show detailed tool output during analysis
40034003 text: az aks agent "Why is my service workload unavailable in namespace workload-ns?" --show-tool-output --model azure/my-gpt4.1-deployment
40044004 - name: Use custom configuration file
4005- text: az aks agent "Check kubernetes pod resource usage" --config-file /path/to/custom.config --model azure/my-gpt4.1-deployment
4005+ text: az aks agent "Check kubernetes pod resource usage" --config-file /path/to/custom.yaml --model azure/my-gpt4.1-deployment
40064006 - name: Run agent with no echo of the original question
40074007 text: az aks agent "What is the status of my cluster?" --no-echo-request --model azure/my-gpt4.1-deployment
40084008 - name: Refresh toolsets to get the latest available tools
40094009 text: az aks agent "What is the status of my cluster?" --refresh-toolsets --model azure/my-gpt4.1-deployment
40104010 - name: Run agent with config file
40114011 text: |
4012- az aks agent "Check kubernetes pod resource usage" --config-file /path/to/custom.config
4012+ az aks agent "Check kubernetes pod resource usage" --config-file /path/to/custom.yaml
40134013 Here is an example of config file:
40144014 ```json
40154015 model: "gpt-4o"
Original file line number Diff line number Diff line change 150150 CONST_ADVANCED_NETWORKPOLICIES_FQDN ,
151151 CONST_ADVANCED_NETWORKPOLICIES_L7 ,
152152 CONST_TRANSIT_ENCRYPTION_TYPE_NONE ,
153- CONST_TRANSIT_ENCRYPTION_TYPE_WIREGUARD
153+ CONST_TRANSIT_ENCRYPTION_TYPE_WIREGUARD ,
154+ CONST_AGENT_CONFIG_FILE_NAME ,
154155)
155156
156157from azext_aks_preview ._validators import (
@@ -2803,7 +2804,7 @@ def load_arguments(self, _):
28032804 )
28042805 c .argument (
28052806 "config_file" ,
2806- default = os .path .join (get_config_dir (), "aksAgent.config" ),
2807+ default = os .path .join (get_config_dir (), CONST_AGENT_CONFIG_FILE_NAME ),
28072808 validator = validate_agent_config_file ,
28082809 required = False ,
28092810 help = "Path to the config file." ,
You can’t perform that action at this time.
0 commit comments