{"agent":"claude","input":"Add caching to this Streamlit app. Read requirements.txt, .ruff.toml, app_test.py and every page under the root and pages/ first, and list what each rerun rebuilds or re-sends. Put objects that should exist once per process (API clients, tools) behind st.cache_resource in a shared module, and put repeatable computations (the File Q&A answer, keyed on the article text and question) behind st.cache_data with a ttl and with the API key passed as an underscore-prefixed argument so it is not part of the cache key. Do not cache chat completions whose input is the whole conversation; explain why in the pull request. Keep every missing-API-key check in place before any cached call. Add a sidebar button that clears st.cache_data. Extend app_test.py with AppTest cases that show the patched provider call happens once for a repeated question and that the cached client is reused. Run pytest, ruff check and ruff format --check, paste the output in the pull request and open it.","resources":[{"url":"https://github.com/your-org/your-app"}]}