pyrtan / sourcev0.19.0 · main

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
2decision trees.
3
4The 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
14from .tree import Tree, load_tree, load_tree_text, TreeError
15from .registry import Registry
16from .runtime import Runner, Outcome
17from .trace import Trace, Step
18from .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"