From b6c049158dfe5805c790774edaa0c692b79d2489 Mon Sep 17 00:00:00 2001 From: Madhu Nunna Date: Mon, 9 Mar 2026 09:30:38 -0700 Subject: [PATCH 1/2] fix: remove uninitialized details_placeholder reference in app_streaming.py In app_streaming.py, details_placeholder was checked in session state but never initialized, causing AttributeError on newer Streamlit versions. Unlike app.py which properly initializes it, app_streaming.py has no use for it. Removed the dead code block. Fixes #140 --- 04-UX-demos/01-streamlit-template/docker_app/app_streaming.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/04-UX-demos/01-streamlit-template/docker_app/app_streaming.py b/04-UX-demos/01-streamlit-template/docker_app/app_streaming.py index b6cd1fc3..75265000 100644 --- a/04-UX-demos/01-streamlit-template/docker_app/app_streaming.py +++ b/04-UX-demos/01-streamlit-template/docker_app/app_streaming.py @@ -85,10 +85,6 @@ def logout(): # Add user message to chat history st.session_state.messages.append({"role": "user", "content": prompt}) - # Clear previous tool usage details - if "details_placeholder" in st.session_state: - st.session_state.details_placeholder.empty() - # Display user message with st.chat_message("user"): st.write(prompt) From 352d47c581885fca8d63fc270e05300c227c0b02 Mon Sep 17 00:00:00 2001 From: Madhu Nunna Date: Mon, 9 Mar 2026 10:02:44 -0700 Subject: [PATCH 2/2] docs: add uv install instructions to Quick Start Added uv as an alternative to pip/venv for setting up the Python environment. uv combines venv creation and package installation into fewer steps and is significantly faster than pip. Fixes #177 --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 41381b12..5383bad5 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,16 @@ venv\Scripts\activate pip install strands-agents strands-agents-tools ``` +**Alternative: Using [uv](https://docs.astral.sh/uv/) (faster)** +```bash +# Install uv if you don't have it +curl -LsSf https://astral.sh/uv/install.sh | sh + +# Create venv and install in one step +uv venv && source .venv/bin/activate +uv pip install strands-agents strands-agents-tools +``` + **Your First Agent:** ```python from strands import Agent