Skip to content
providerkit
GitHub

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.

Parameter Type
create () => | Session | Promise<Session>

Promise<void>