Skip to main content
Register contributors, selectors, budget policies and compactors with explicit extension names. Context selection does not grant tool authority. CompactionReceipt declares the input, output identity and losses; omission is not a lossless summary. Memory input is not a checkpoint store. Missing factories fail at composition. See the executable tutorial for method arguments and an observed lossy compaction. 完整可运行教程 / Complete tutorial · API index Signatures and fields below are extracted from the pinned source. Signatures are reference material, not standalone programs. Source links bind the same runtime baseline. Any does not imply arbitrary objects are supported; use the behavioral contract above and the linked tutorial. The concrete module APIs are qitos.kit.memory.adapter.MemorySourceAdapter(memory, *, namespace, query=None, required=False, priority=0) and qitos.kit.context.compaction.ClosedExchangeWindowCompactor(). Bind them using the existing extensions mapping; no root export or Engine constructor option is added. Memdir restore is explicit about missing resources (create=True initializes); Markdown recall is instance-scoped. Required contributions take precedence over optional priorities. RequestView now requires an explicit compaction policy for budget-driven exchange omission. Its compact callback receives eligible omitted IDs and the SHA-256 digest of the selected exchange projection, and must return a matching loss receipt. Preexisting receipts alone do not authorize new omission. The request builder owns the recent window and all protection checks; continuation protection is conservative. See the tutorial for the Python-only context budget/loss settings and migration boundaries.

StaticContextContributor

Source @ d000a42 Usage and executable example Usage fragment: continues with objects from the linked complete tutorial; not a standalone program.

PriorityContextSelectionPolicy

Source @ d000a42 Usage and executable example Usage fragment: continues with objects from the linked complete tutorial; not a standalone program.

PriorityContextSelectionPolicy.select

Source

DeclaredContextBudgetPolicy

Source @ d000a42 Usage and executable example Usage fragment: continues with objects from the linked complete tutorial; not a standalone program.

CompactionReceipt

Source @ d000a42 Usage and executable example Usage fragment: continues with objects from the linked complete tutorial; not a standalone program.

MemoryRecord

Source @ d000a42 Usage and executable example Usage fragment: continues with objects from the linked complete tutorial; not a standalone program.

MemoryResourceError

Source @ d000a42 Usage and executable example Usage fragment: continues with objects from the linked complete tutorial; not a standalone program.

MemdirMemory

Source @ d000a42 Usage and executable example Usage fragment: continues with objects from the linked complete tutorial; not a standalone program.

MemdirMemory.append

Source

MemdirMemory.retrieve

Source

MemdirMemory.summarize

Source

MemdirMemory.reset

Source

MemdirMemory.evict

Source

MemdirMemory.delete

Source

MarkdownFileMemory

Source @ d000a42 Usage and executable example Usage fragment: continues with objects from the linked complete tutorial; not a standalone program.

MemorySourceAdapter

Source @ d000a42 Usage and executable example Usage fragment: continues with objects from the linked complete tutorial; not a standalone program.

MemorySourceAdapter.contribute

Source

MemorySourceAdapter.reset

Source

MemorySourceAdapter.close

Source

ClosedExchangeWindowCompactor

Source @ d000a42 Usage and executable example Usage fragment: continues with objects from the linked complete tutorial; not a standalone program.

ClosedExchangeWindowCompactor.compact

Source

RequestView

Source @ d000a42 Usage and executable example Usage fragment: continues with objects from the linked complete tutorial; not a standalone program.

RequestView.from_exchange_log

Source

ContextBudgetExceededError

Source @ d000a42 Usage and executable example Usage fragment: continues with objects from the linked complete tutorial; not a standalone program.

LifecyclePolicy

Source @ d000a42 Usage and executable example Usage fragment: continues with objects from the linked complete tutorial; not a standalone program.

LifecyclePolicy.should_pause

Source