Skip to content

Commit fe1e60d

Browse files
committed
add Streamlit PoC demo
1 parent 252f3c4 commit fe1e60d

File tree

12 files changed

+406
-47
lines changed

12 files changed

+406
-47
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,8 @@ fastapi: ## run FastAPI in production mode
127127
--port 8000 \
128128
--workers 4 \
129129
template_langgraph/services/fastapis/main.py
130+
131+
.PHONY: streamlit
132+
streamlit: ## run Streamlit
133+
uv run streamlit run \
134+
template_langgraph/services/streamlits/main.py

docs/faq.ja.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/images/streamlit.png

359 KB
Loading

docs/index.ja.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,19 @@ uv run fastapi run \
211211

212212
![fastapi.png](./images/fastapi.png)
213213

214+
### オプション 5: Streamlit(PoC デモ)
215+
216+
Streamlit アプリを実行して、エージェントを Web インターフェースとして公開:
217+
218+
```shell
219+
uv run streamlit run \
220+
template_langgraph/services/streamlits/main.py
221+
```
222+
223+
Streamlit アプリのデモ:
224+
225+
[![streamlit.png](./images/streamlit.png)](https://youtu.be/z7QhEsqIGAk)
226+
214227
## 実演されている主要概念
215228

216229
### 1. **ReAct パターン**(推論 + 行動)

docs/index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,19 @@ This allows you to interact with the agent programmatically via HTTP requests.
211211

212212
![fastapi.png](./images/fastapi.png)
213213

214+
### Option 5: Streamlit (PoC demo)
215+
216+
Run the Streamlit app to expose the agent as a web interface:
217+
218+
```shell
219+
uv run streamlit run \
220+
template_langgraph/services/streamlits/main.py
221+
```
222+
223+
Demonstration of the Streamlit app:
224+
225+
[![streamlit.png](./images/streamlit.png)](https://youtu.be/z7QhEsqIGAk)
226+
214227
## Key Concepts Demonstrated
215228

216229
### 1. **ReAct Pattern** (Reasoning + Acting)

docs/references.ja.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

docs/references.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- [LangGraph の(LLM なし)Human-in-the-loop を試してみた](https://qiita.com/te_yama/items/db38201af60dec76384d)
77
- [🤖 LangGraph Multi-Agent Supervisor](https://github.com/langchain-ai/langgraph-supervisor-py)
88
- [Software Design 誌「実践 LLM アプリケーション開発」第 24 回サンプルコード](https://github.com/mahm/softwaredesign-llm-application/tree/main/24)
9+
- [Streamlit](https://python.langchain.com/docs/integrations/callbacks/streamlit/)
910

1011
### Sample Codes
1112

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dependencies = [
2121
"pypdf>=5.9.0",
2222
"python-dotenv>=1.1.0",
2323
"qdrant-client>=1.15.1",
24+
"streamlit>=1.48.0",
2425
"typer>=0.16.0",
2526
]
2627

template_langgraph/services/streamlits/__init__.py

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import streamlit as st
2+
3+
st.title("template-streamlit")
4+
st.info("Select a code sample from the sidebar to run it")

0 commit comments

Comments
 (0)