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

Function _spy_factory

tests/unittests/sessions/test_session_service.py:1173–1176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1171 spy_sessions = []
1172
1173 def _spy_factory():
1174 spy = _RollbackSpySession(original_factory(), fail_commit=True)
1175 spy_sessions.append(spy)
1176 return spy
1177
1178 service.database_session_factory = _spy_factory
1179

Callers

nothing calls this directly

Calls 4

_RollbackSpySessionClass · 0.85
appendMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected