Skip to content

Commit e15f548

Browse files
authored
fix: fix the image path (#249)
fix the image path
1 parent 51dfbb6 commit e15f548

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/streaming/custom-streaming.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,17 @@ uvicorn main:app --reload
144144

145145
Now you should see the UI like this:
146146

147-
<img src="../assets/adk-streaming-text.png" alt="ADK Streaming Test" width="600">
147+
![ADK Streaming app](../assets/adk-streaming-text.png)
148148

149149
Try asking a question `What time is it now?`. The agent will use Google Search to respond to your queries. You would notice that the UI shows the agent's response as streaming text. You can also send messages to the agent at any time, even while the agent is still responding. This demonstrates the bidirectional communication capability of ADK Streaming.
150150

151151
4\. **Access the app with the audio mode:** Now click the `Start Audio` button. The app reconnects with the server in an audio mode, and the UI will show the following dialog for the first time:
152152

153-
<img src="../assets/adk-streaming-audio-dialog.png" alt="ADK Streaming Test" width="600">
153+
![ADK Streaming app](../assets/adk-streaming-audio-dialog.png)
154154

155155
Click `Allow while visiting the site`, then you will see the microphone icon will be shown at the top of the browser:
156156

157-
<img src="../assets/adk-streaming-mic.png" alt="ADK Streaming Test" width="600">
157+
![ADK Streaming app](../assets/adk-streaming-mic.png)
158158

159159
Now you can talk to the agent with voice. Ask questions like `What time is it now?` with voice and you will hear the agent responding in voice too. As Streaming for ADK supports [multiple languages](https://ai.google.dev/gemini-api/docs/live#supported-languages), it can also respond to question in the supported languages.
160160

@@ -267,11 +267,11 @@ This function initializes an ADK agent live session.
267267
| `is_audio` | `bool` | `True` for audio responses, `False` for text (default). |
268268

269269
**Key Steps:**
270-
1. **Create Session:** Establishes an ADK session.
271-
2. **Create Runner:** Instantiates the ADK runner for the `root_agent`.
272-
3. **Set Response Modality:** Configures agent response as "AUDIO" or "TEXT".
273-
4. **Create LiveRequestQueue:** Creates a queue for client inputs to the agent.
274-
5. **Start Agent Session:** `runner.run_live(...)` starts the agent, returning:
270+
1\. **Create Session:** Establishes an ADK session.
271+
2\. **Create Runner:** Instantiates the ADK runner for the `root_agent`.
272+
3\. **Set Response Modality:** Configures agent response as "AUDIO" or "TEXT".
273+
4\. **Create LiveRequestQueue:** Creates a queue for client inputs to the agent.
274+
5\. **Start Agent Session:** `runner.run_live(...)` starts the agent, returning:
275275
* `live_events`: Asynchronous iterable for agent events (text, audio, completion).
276276
* `live_request_queue`: Queue to send data to the agent.
277277

0 commit comments

Comments
 (0)