From 142cffe43811b5e469f9fff7f31365f5d6bd5f1d Mon Sep 17 00:00:00 2001 From: Dmitry Paramonov Date: Fri, 24 May 2024 15:01:39 +0300 Subject: [PATCH] chore: Remove commented out code --- .../agents_api/activities/summarization.py | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/agents-api/agents_api/activities/summarization.py b/agents-api/agents_api/activities/summarization.py index f2ebd387b..c8c4215c1 100644 --- a/agents-api/agents_api/activities/summarization.py +++ b/agents-api/agents_api/activities/summarization.py @@ -165,36 +165,6 @@ async def run_prompt( return parser(content.strip() if content is not None else "") -# @activity.defn -# async def summarization(session_id: str) -> None: -# session_id = UUID(session_id) -# entries = [ -# Entry(**row) -# for _, row in get_toplevel_entries_query(session_id=session_id).iterrows() -# ] - -# assert len(entries) > 0, "no need to summarize on empty entries list" - -# response = await run_prompt( -# dialog=entries, previous_memories=[], model=summarization_model_name -# ) - -# new_entry = Entry( -# session_id=session_id, -# source="summarizer", -# role="system", -# name="information", -# content=response, -# timestamp=entries[-1].timestamp + 0.01, -# ) - -# entries_summarization_query( -# session_id=session_id, -# new_entry=new_entry, -# old_entry_ids=[e.id for e in entries], -# ) - - @activity.defn async def summarization(session_id: str) -> None: session_id = UUID(session_id)