Skip to content

Commit 4e2d627

Browse files
feat: Add DeleteConversation method to SDK Colab (#2410)
1 parent e822279 commit 4e2d627

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

agents/gemini_data_analytics/intro_gemini_data_analytics_sdk.ipynb

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
},
@@ -1605,6 +1605,31 @@
16051605
"# Handle the response\n",
16061606
"print(response)"
16071607
]
1608+
},
1609+
{
1610+
"metadata": {
1611+
"id": "s1efidGFTN8v"
1612+
},
1613+
"cell_type": "code",
1614+
"source": [
1615+
"# @title Delete Conversation\n",
1616+
"\n",
1617+
"# fmt: off\n",
1618+
"conversation_id = \"conversation_1\" # @param {type:\"string\"}\n",
1619+
"# fmt: on\n",
1620+
"\n",
1621+
"request = geminidataanalytics.DeleteConversationRequest(\n",
1622+
" name=data_chat_client.conversation_path(billing_project, location, conversation_id),\n",
1623+
")\n",
1624+
"\n",
1625+
"# Make the request\n",
1626+
"response = data_chat_client.delete_conversation(request=request)\n",
1627+
"\n",
1628+
"# Handle the response\n",
1629+
"print(response)"
1630+
],
1631+
"outputs": [],
1632+
"execution_count": null
16081633
}
16091634
],
16101635
"metadata": {

0 commit comments

Comments
 (0)