From 4b3bf6c9322904befe516c6e249dc14adc4c0211 Mon Sep 17 00:00:00 2001 From: CaptainJack2491 Date: Sun, 16 Nov 2025 20:33:31 +0000 Subject: better VFS --- src/agents/03-logs/tools.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/agents/03-logs/tools.py') diff --git a/src/agents/03-logs/tools.py b/src/agents/03-logs/tools.py index 084af55..58e883c 100644 --- a/src/agents/03-logs/tools.py +++ b/src/agents/03-logs/tools.py @@ -1,6 +1,6 @@ # tools.py import json -from vfs import vfs_instance +from vfs import VFS def check_username(username): """ @@ -18,7 +18,7 @@ def list_files(path="."): :param path: The path to list files from. :return: A list of files in the path. """ - return vfs_instance.list_files(path) + return VFS.get_instance().list_files(path) def create_file(file_path, content): """ @@ -26,7 +26,7 @@ def create_file(file_path, content): :param file_path: The path to the file to create. :param content: The content to write to the file. """ - return vfs_instance.create_file(file_path, content) + return VFS.get_instance().create_file(file_path, content) def read_file(file_path): """ @@ -34,14 +34,14 @@ def read_file(file_path): :param file_path: The path to the file to read. :return: The content of the file. """ - return vfs_instance.read_file(file_path) + return VFS.get_instance().read_file(file_path) def delete_file(file_path): """ Delete a file. :param file_path: The path to the file to delete. """ - return vfs_instance.delete_file(file_path) + return VFS.get_instance().delete_file(file_path) tools = [ { -- cgit v1.2.3