{"agent":"claude","input":"Add file uploads to this Reflex chat app so a user can attach a text, Markdown or PDF file to a chat and have its contents given to the model. Read rxconfig.py, requirements.txt, chat/chat.py, chat/state.py, chat/components/chat.py, chat/components/navbar.py and .github/workflows/ci.yml first. Add an rx.upload with max_files=1, an accept map for .txt, .md and .pdf and a size cap to the action bar, an upload handler that saves the file under rx.get_upload_dir() per chat and extracts its text with pypdf for PDFs, an attachments dict in State keyed like the chats and cleared by delete_chat, and a second system message carrying the file name and text when the chat has an attachment, trimmed to a budget you state. Show the file name under the question. Install the requirements with uv, run pyright and ruff, start the app with a dummy OPENAI_API_KEY and OPENAI_BASE_URL pointed at a local stub that echoes the system messages, attach a file in your browser and confirm its text reaches the request, run reflex export, and open a pull request with what you checked.","resources":[{"url":"https://github.com/your-org/your-app"}]}