Skip to content

Commit 7152af7

Browse files
author
naman-msft
committed
testing ada mcp server
1 parent f561175 commit 7152af7

File tree

6 files changed

+609
-12
lines changed

6 files changed

+609
-12
lines changed
67.9 KB
Binary file not shown.
105 KB
Binary file not shown.

tools/ada.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,6 @@ def analyze_error(error_log, dependency_files=[]):
838838
"file": dep_file,
839839
"message": error_log
840840
}
841-
842841
# If no specific dependency file is mentioned, check for patterns
843842
error_patterns = [
844843
r"Error: open (.*?): no such file or directory",
@@ -1360,7 +1359,7 @@ def redact_pii_from_doc_with_path(doc_path, output_file_path=None):
13601359
# Use the LLM to identify and redact PII
13611360
redaction_prompt = """Redacting PII from the output helps protect sensitive information from being inadvertently shared or exposed. This is crucial for maintaining privacy, complying with data protection regulations, and furthering the company's security posture.
13621361
1363-
Ensure result block(s) have all the PII (Personally Identifiable Information) stricken out from them and replaced with x's.
1362+
Ensure result block(s) have all the PII (Personally Identifiable Information) stricken out from them and replaced with xs.
13641363
13651364
**Example:**
13661365
@@ -2144,8 +2143,8 @@ def main():
21442143
f"\n\nUSER-DEFINED VARIABLE NAMES: The user has specified the following environment variable "
21452144
f"NAMES that you MUST prioritize using in the document where appropriate: {var_names_list}. "
21462145
f"When you need to define an environment variable for a concept (e.g., resource group name, location), "
2147-
f"if a user-provided name seems relevant for that concept, use the user's variable name. "
2148-
f"For example, if the user provides 'MY_RG' and the document needs a resource group name, use 'MY_RG' "
2146+
f"if a user-provided name seems relevant for that concept, use the user's variable name. For example, "
2147+
f"if the user provides 'MY_RG' and the document needs a resource group name, use 'MY_RG' "
21492148
f"instead of a default like 'RESOURCE_GROUP_NAME'. You are still responsible for generating the "
21502149
f"'export' statements and appropriate values (e.g., export MY_RG=\\\"my-resource-group$RANDOM_SUFFIX\\\" "
21512150
f"or export MY_LOCATION=\\\"eastus2\\\"). The primary goal is to use the user's *names*."
@@ -2493,14 +2492,14 @@ def main():
24932492
last_success_file = os.path.join(output_folder, f"attempt_{attempt}_success.md")
24942493
# final_file = os.path.join(output_folder, f"FINAL_OUTPUT_success.md")
24952494
# shutil.copy2(last_success_file, final_file)
2496-
# Update output_file to point to final file
2495+
# Update output_file variable to point to final file
24972496
output_file = last_success_file
24982497
else:
24992498
# For failures, create a new final file
25002499
final_file = os.path.join(output_folder, f"FINAL_OUTPUT_failure_final.md")
25012500
with open(final_file, "w") as f:
25022501
f.write(output_file_content)
2503-
# Update output_file to point to final file
2502+
# Update output_file variable to point to final file
25042503
output_file = final_file
25052504

25062505
# # Update output_file variable to point to the final file
@@ -2514,5 +2513,5 @@ def main():
25142513

25152514
print_message(f"\nThe updated file is stored at: {output_file}\n")
25162515

2517-
if __name__ == "__main__":
2518-
main()
2516+
# if __name__ == "__main__":
2517+
# main()

0 commit comments

Comments
 (0)