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
Copy file name to clipboardExpand all lines: examples/python/notebooks/adk_tutorial.ipynb
+32-1Lines changed: 32 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -400,7 +400,7 @@
400
400
"\n",
401
401
"**5\\. Run the Conversation**\n",
402
402
"\n",
403
-
"Finally, let's test our setup by sending a few queries to the agent. We wrap our `async` calls in a main `async` function and run it using `await`.\n",
403
+
"Let's test our setup by sending a few queries to the agent. We wrap our `async` calls in a main `async` function and run it using `await`.\n",
404
404
"\n",
405
405
"Watch the output:\n",
406
406
"\n",
@@ -440,6 +440,37 @@
440
440
"await run_conversation()"
441
441
]
442
442
},
443
+
{
444
+
"cell_type": "markdown",
445
+
"metadata": {},
446
+
"source": [
447
+
"---\n",
448
+
"**6\\. Interactive Conversation**\n",
449
+
"\n",
450
+
"Now, let's make this interactive so you can ask your own questions! Run the cell below. It will prompt you to enter your queries directly."
451
+
]
452
+
},
453
+
{
454
+
"cell_type": "code",
455
+
"execution_count": null,
456
+
"metadata": {},
457
+
"outputs": [],
458
+
"source": [
459
+
"async def run_interactive_conversation():\n",
460
+
" while True:\n",
461
+
" user_query = input(\"Ask me something (or type 'exit' to quit): \")\n",
0 commit comments