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