From c6ece177cd8d6ec0b4aad26262ac559bc507c7c3 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 25 Mar 2026 20:04:03 +0000 Subject: [PATCH] fix: small issues --- .gitignore | 1 + application/agents/tools/internal_search.py | 2 +- results.txt | 12 ------------ 3 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 results.txt diff --git a/.gitignore b/.gitignore index 9b09303d..4d8f8c84 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ __pycache__/ *.py[cod] *$py.class +results.txt experiments/ experiments diff --git a/application/agents/tools/internal_search.py b/application/agents/tools/internal_search.py index 18b9c514..66f91e83 100644 --- a/application/agents/tools/internal_search.py +++ b/application/agents/tools/internal_search.py @@ -112,7 +112,7 @@ class InternalSearchTool(Tool): docs = retriever.search(query) except Exception as e: logger.error(f"Internal search failed: {e}", exc_info=True) - return f"Search failed: {str(e)}" + return "Search failed: an internal error occurred." if not docs: return "No documents found matching your query." diff --git a/results.txt b/results.txt deleted file mode 100644 index beff8056..00000000 --- a/results.txt +++ /dev/null @@ -1,12 +0,0 @@ -Base URL:http://petstore.swagger.io,https://api.example.com -Path1: /pets -description: None -parameters: [] -methods: -get=A paged array of pets -post=Null response -Path2: /pets/{petId} -description: None -parameters: [] -methods: -get=Expected response to a valid request