library_prompt_build
Assemble a bounded prompt from recent turns and a reading desk, keeping full history on disk to manage context window size.
Instructions
Build a complete stateless model-input envelope from bounded recent turns plus a replacement reading desk. Full history remains shelved on disk instead of growing the live prompt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_books | No | ||
| collection | No | Optional library collection/namespace; defaults to the configured collection. | |
| session_id | No | codex | |
| record_user | No | ||
| token_budget | No | ||
| user_message | No | ||
| system_prompt | No | ||
| recent_token_budget | No |