Skip to content

Commit e8fa0fd

Browse files
committed
feat: add the support to delete thread (session)
1 parent 3923e75 commit e8fa0fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adk-chatkit/src/adk_chatkit/_store.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ async def delete_thread_item(self, thread_id: str, item_id: str, context: ADKCon
202202
pass
203203

204204
async def delete_thread(self, thread_id: str, context: ADKContext) -> None:
205-
raise NotImplementedError()
205+
await self._session_service.delete_session(
206+
app_name=context["app_name"], user_id=context["user_id"], session_id=thread_id
207+
)
206208

207209
async def save_item(self, thread_id: str, item: ThreadItem, context: ADKContext) -> None:
208210
# we will only handle specify types of items here

0 commit comments

Comments
 (0)