You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
150
150
151
151
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:
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.
160
160
@@ -267,11 +267,11 @@ This function initializes an ADK agent live session.
267
267
|`is_audio`|`bool`|`True` for audio responses, `False` for text (default). |
268
268
269
269
**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:
275
275
* `live_events`: Asynchronous iterable for agent events (text, audio, completion).
276
276
* `live_request_queue`: Queue to send data to the agent.
0 commit comments