feat!: remove close_session from session service as it is not implemented yet.

PiperOrigin-RevId: 759705443
This commit is contained in:
Shangjie Chen 2025-05-16 12:08:20 -07:00 committed by Copybara-Service
parent 370eed1c7a
commit 5ee17a3268
2 changed files with 0 additions and 14 deletions

View File

@ -327,16 +327,6 @@ class Runner:
await self.session_service.append_event(session=session, event=event)
yield event
async def close_session(self, session: Session):
"""Closes a session and adds it to the memory service (experimental feature).
Args:
session: The session to close.
"""
if self.memory_service:
await self.memory_service.add_session_to_memory(session)
await self.session_service.close_session(session=session)
def _find_agent_to_run(
self, session: Session, root_agent: BaseAgent
) -> BaseAgent:

View File

@ -91,10 +91,6 @@ class BaseSessionService(abc.ABC):
) -> None:
"""Deletes a session."""
async def close_session(self, *, session: Session):
"""Closes a session."""
# TODO: determine whether we want to finalize the session here.
async def append_event(self, session: Session, event: Event) -> Event:
"""Appends an event to a session object."""
if event.partial: