mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-07-13 15:14:50 -06:00
feat!: remove close_session from session service as it is not implemented yet.
PiperOrigin-RevId: 759705443
This commit is contained in:
parent
370eed1c7a
commit
5ee17a3268
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user