falaw.session#

Session: optional stateful controller over a sequence of falaw operations.

Plain function calls work without a session. Sessions exist to make multi-step flows ergonomic — a working directory, a result history, and a journal binding that future-you (or another agent) can read.

Classes

Session([output_dir, journal, history])

A working session for a sequence of falaw operations.

class falaw.session.Session(output_dir=<factory>, journal=<factory>, history=<factory>)[source]#

Bases: object

A working session for a sequence of falaw operations.

>>> import tempfile
>>> s = Session(output_dir=tempfile.mkdtemp())
>>> s.history
[]