checkSession
function checkSession(create): Promise<void>;Defined in: agents/src/session.ts:81
Check a session store against the contract the run relies on, by writing to fresh sessions
from create. Each call to create must return a new, empty session. Throws an Error that
names the first rule the store breaks. Run it against a test database, never a real one.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
create |
() => | Session | Promise<Session> |
Returns
Section titled “Returns”Promise<void>