class RubyLLM::FileStore::Directory

Keeps files in a folder on disk, created when missing. Files someone puts in the folder are the chat’s files too. Hidden files and folders, whose names start with a dot, are left out, and symbolic links are never followed. Code execution runs in the folder itself and can change anything in it, so give each store a folder of its own.

chat.with_file_store(RubyLLM.file_store.directory("tmp/chats/42"))