context_assemble
Assembles event replay and ranked retrieval into a prompt-ready context bundle for memory-backed AI reasoning.
Instructions
Assemble replay plus ranked retrieval into a prompt-ready context bundle. memory_checkout, the front door, wraps this assembly with current facts, citations, and a trust contract.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| max_tokens | No | Optional prompt token budget; sections are greedily packed and elisions are reported in the budget payload. | |
| session_id | No | ||
| replay_from_seq | No | ||
| max_recent_events | No |