MCPcopy Index your code
hub / github.com/langroid/langroid / session

Function session

tests/main/sql_chat/test_sql_chat_security.py:35–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34@pytest.fixture
35def session():
36 engine = create_engine("sqlite:///:memory:")
37 Base.metadata.create_all(engine)
38 Session = sessionmaker(bind=engine)
39 s = Session()
40 s.add(Item(id=1, name="a"))
41 s.commit()
42 yield s
43 s.close()
44
45
46def _make_agent(session, **cfg_kwargs):

Callers

nothing calls this directly

Calls 3

ItemClass · 0.85
addMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…