Skip to content

Commit 05e3f73

Browse files
seanzhougooglecopybara-github
authored andcommitted
chore: Remove _in_memory_session_service from InMemoryRunner
PiperOrigin-RevId: 806385604
1 parent 23834e8 commit 05e3f73

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/google/adk/runners.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,6 @@ class InMemoryRunner(Runner):
744744
agent: The root agent to run.
745745
app_name: The application name of the runner. Defaults to
746746
'InMemoryRunner'.
747-
_in_memory_session_service: Deprecated. Please don't use. The in-memory
748-
session service for the runner.
749747
"""
750748

751749
def __init__(
@@ -763,13 +761,12 @@ def __init__(
763761
app_name: The application name of the runner. Defaults to
764762
'InMemoryRunner'.
765763
"""
766-
self._in_memory_session_service = InMemorySessionService()
767764
super().__init__(
768765
app_name=app_name,
769766
agent=agent,
770767
artifact_service=InMemoryArtifactService(),
771768
plugins=plugins,
772769
app=app,
773-
session_service=self._in_memory_session_service,
770+
session_service=InMemorySessionService(),
774771
memory_service=InMemoryMemoryService(),
775772
)

0 commit comments

Comments
 (0)