Documentation
¶
Overview ¶
Package memtree keeps a session's whole history reachable at a constant size: a binary tree of one-line summaries over every message, a view of it that fades with age, and a zoom tool that opens any line back down to its message. In fresh mode (OptChat) every prompt starts a new context from the view; in compaction mode the view replaces Orb's summary when the context fills. The design is OptChat's: https://gist.github.com/VictorTaelin/91837951a5ce5b38f341ec1ba1df6449
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extension ¶
func Extension(options Options) extensions.Factory
Extension builds memtree. It needs nothing from the host: summaries are kept in the session.
Types ¶
type Options ¶ added in v0.16.0
Options configure memtree. Mode is "fresh" (the default, OptChat's turn loop) or "compaction"; Model is the compactor as "provider/id", the session's model when empty.
func OptionsFrom ¶ added in v0.16.0
OptionsFrom reads a "plugins": {"memtree": {...}} settings object.