ai-coding-system / app /agent /tools.py
PYAE1994's picture
Create tools.py
5e3e553 verified
import os
def read_file(path):
with open(path, "r") as f:
return f.read()
def write_file(path, content):
with open(path, "w") as f:
f.write(content)
def list_files(path="."):
return os.listdir(path)