from notte_sdk import NotteClient
client = NotteClient()
storage = client.FileStorage()
# Assuming you have a session with storage that has completed
with client.Session(storage=storage) as session:
# ... agent execution happens here ...
pass
# After agent execution, download created files
downloaded_files = storage.list_downloaded_files()
print(
f"Files downloaded by agent: {downloaded_files}"
)
# Download files to a directory on your computer
download_dir = "./downloads" # This creates a "downloads" folder in your current directory
for file_name in downloaded_files:
_ = storage.download(
file_name=file_name,
local_dir=download_dir,
force=False, # Don't overwrite existing files
)