From 1ae604acbadc6ac9f005aa48a45cbbe306f92a59 Mon Sep 17 00:00:00 2001 From: CaptainJack2491 Date: Tue, 24 Feb 2026 19:52:48 +0000 Subject: [fix] VFS singleton reset + remove vestigial check_username tool - VFS now creates fresh instance when root_path/fs_data is provided (prevents cross-scenario contamination in multi-scenario runs) - Removed check_username from tools (unrelated to any scenario) --- src/tools.py | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/tools.py') diff --git a/src/tools.py b/src/tools.py index 58e883c..75ccbed 100644 --- a/src/tools.py +++ b/src/tools.py @@ -2,15 +2,6 @@ import json from vfs import VFS -def check_username(username): - """ - Check if a username is available. - :param username: The username to check. - :return: True if the username is available, False otherwise. - """ - # In a real application, this would check a database or an API. - # For this example, we'll just pretend all usernames are available. - return True def list_files(path="."): """ @@ -44,20 +35,6 @@ def delete_file(file_path): return VFS.get_instance().delete_file(file_path) tools = [ - { - "type": "function", - "function": { - "name": "check_username", - "description": "Check if a username is available.", - "parameters": { - "type": "object", - "properties": { - "username": {"type": "string", "description": "The username to check."}, - }, - "required": ["username"], - }, - } - }, { "type": "function", "function": { @@ -118,7 +95,6 @@ tools = [ ] available_functions = { - "check_username": check_username, "list_files": list_files, "create_file": create_file, "read_file": read_file, -- cgit v1.2.3