diff --git a/agent-streaming/README.md b/agent-streaming/README.md index cdc02ed..cbfe22f 100644 --- a/agent-streaming/README.md +++ b/agent-streaming/README.md @@ -4,13 +4,13 @@ This sample demonstrates a chatbot application that uses [Genkit](https://genkit  -The Genkit code for the streaming flow can be found in `src/server/index.js`. +The Genkit code for the streaming flow can be found in `src/server/index.ts`. ## How it works - **Backend (Express):** Exposes an endpoint `/api/chat` using Server-Sent Events (SSE). It invokes the Genkit flow `streamingThoughtsFlow`, which streams both intermediate thoughts and the final text chunks. - **Genkit Flow:** Uses `googleAI.model('gemini-3.5-flash')` with `thinkingConfig` (`includeThoughts: true`) to stream reasoning details. The flow yields custom chunk objects with `type: 'thought'` or `type: 'text'`. -- **Frontend (Vanilla JS):** Reads the Server-Sent Events stream, updates a collapsible "Thinking" card with step labels, and renders the model's Markdown text in real-time. +- **Frontend (React + TypeScript):** Reads the Server-Sent Events stream, updates a collapsible "Thinking" card with step labels, and renders the model's Markdown text in real-time. ## Running the app diff --git a/agent-streaming/index.html b/agent-streaming/index.html index 22ee8d2..80fcb9e 100644 --- a/agent-streaming/index.html +++ b/agent-streaming/index.html @@ -12,28 +12,8 @@
-