pyrtan / src / pyrtan / __init__.py
995 bytes · last changed 2026-10-28 in Merge main (agents beside the swarm, 0.18.0) into identity without a shell; this is release 0.19.0
| 1 | """Pyrtan: a core set of expandable services that act on all forms of I/O through inspectable |
| 2 | decision trees. |
| 3 | |
| 4 | The public surface is small on purpose: |
| 5 | |
| 6 | - :func:`pyrtan.load_tree` reads one tree file. |
| 7 | - :class:`pyrtan.Registry` holds the trees a service knows about. |
| 8 | - :class:`pyrtan.Runner` executes a tree against a transport and returns an |
| 9 | :class:`pyrtan.Outcome` with a full :class:`pyrtan.Trace`. |
| 10 | - :func:`pyrtan.grow.propose` turns a sentence nobody answers into the tree |
| 11 | that would. |
| 12 | """ |
| 13 | |
| 14 | from .tree import Tree, load_tree, load_tree_text, TreeError |
| 15 | from .registry import Registry |
| 16 | from .runtime import Runner, Outcome |
| 17 | from .trace import Trace, Step |
| 18 | from .transport import Transport, UrllibTransport, RecordedTransport, Response |
| 19 | |
| 20 | __all__ = [ |
| 21 | "Tree", |
| 22 | "TreeError", |
| 23 | "load_tree", |
| 24 | "load_tree_text", |
| 25 | "Registry", |
| 26 | "Runner", |
| 27 | "Outcome", |
| 28 | "Trace", |
| 29 | "Step", |
| 30 | "Transport", |
| 31 | "UrllibTransport", |
| 32 | "RecordedTransport", |
| 33 | "Response", |
| 34 | ] |
| 35 | |
| 36 | __version__ = "0.19.0" |