MCPcopy Index your code
hub / github.com/google/adk-python / new_session

Method new_session

tests/integration/utils/test_runner.py:53–56  ·  view source on GitHub ↗
(self, session_id: Optional[str] = None)

Source from the content-addressed store, hash-verified

51 ).id
52
53 def new_session(self, session_id: Optional[str] = None) -> None:
54 self.current_session_id = self.session_service.create_session(
55 app_name=self.app_name, user_id=self.user_id, session_id=session_id
56 ).id
57
58 def run(self, prompt: str) -> list[Event]:
59 current_session = self.session_service.get_session(

Callers

nothing calls this directly

Calls 1

create_sessionMethod · 0.45

Tested by

no test coverage detected