Skip to content

Commit 1d74329

Browse files
Gemini Data Analytics Teamcopybara-github
authored andcommitted
Add DeleteConversation to GDA SDK Colab
PiperOrigin-RevId: 822036015
1 parent 1a4c6ce commit 1d74329

File tree

1 file changed

+35
-4
lines changed

1 file changed

+35
-4
lines changed

agents/gemini_data_analytics/intro_gemini_data_analytics_sdk.ipynb

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"id": "3decEzdcBiOl"
3939
},
4040
"source": [
41-
"# Intro to Gemini Data Analytics "
41+
"# Intro to Gemini Data Analytics"
4242
]
4343
},
4444
{
@@ -68,7 +68,7 @@
6868
"2. Authenticate to Google Cloud\n",
6969
"3. Add data\n",
7070
"4. Perform agent operations (create, list, get, delete)\n",
71-
"5. Manage conversations (create, list, get)\n",
71+
"5. Manage conversations (create, list, get, delete)\n",
7272
"6. Ask questions with your agent"
7373
]
7474
},
@@ -1534,7 +1534,6 @@
15341534
"cell_type": "code",
15351535
"execution_count": null,
15361536
"metadata": {
1537-
"cellView": "form",
15381537
"id": "clN0SioB6ejc"
15391538
},
15401539
"outputs": [],
@@ -1605,6 +1604,31 @@
16051604
"# Handle the response\n",
16061605
"print(response)"
16071606
]
1607+
},
1608+
{
1609+
"cell_type": "code",
1610+
"source": [
1611+
"# @title Get Conversation\n",
1612+
"\n",
1613+
"# fmt: off\n",
1614+
"conversation_id = \"conversation_1\" # @param {type:\"string\"}\n",
1615+
"# fmt: on\n",
1616+
"\n",
1617+
"request = geminidataanalytics.DeleteConversationRequest(\n",
1618+
" name=data_chat_client.conversation_path(billing_project, location, conversation_id),\n",
1619+
")\n",
1620+
"\n",
1621+
"# Make the request\n",
1622+
"response = data_chat_client.delete_conversation(request=request)\n",
1623+
"\n",
1624+
"# Handle the response\n",
1625+
"print(response)"
1626+
],
1627+
"metadata": {
1628+
"id": "VutwJEtlbTP1"
1629+
},
1630+
"execution_count": null,
1631+
"outputs": []
16081632
}
16091633
],
16101634
"metadata": {
@@ -1618,7 +1642,14 @@
16181642
"NKmRVLyDlt0n"
16191643
],
16201644
"name": "intro_gemini_data_analytics_sdk.ipynb",
1621-
"toc_visible": true
1645+
"toc_visible": true,
1646+
"private_outputs": true,
1647+
"provenance": [
1648+
{
1649+
"file_id": "/piper/depot/google3/google/cloud/geminidataanalytics/colab/intro_gemini_data_analytics_sdk.ipynb",
1650+
"timestamp": 1760373388601
1651+
}
1652+
]
16221653
},
16231654
"kernelspec": {
16241655
"display_name": "Python 3",

0 commit comments

Comments
 (0)