library_context_commit
Commit assistant or tool results after a model call to durable storage, indexing them for retrieval while keeping the latest context immediately visible.
Instructions
Durably append the assistant or tool result after a governed model call. The outbox indexes it asynchronously while the recent ring makes it immediately visible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | assistant | |
| content | Yes | ||
| event_id | No | Optional caller idempotency key for this result. | |
| metadata | No | JSON catalog metadata or exact-match catalog filters. | |
| max_books | No | ||
| protected | No | ||
| collection | No | Optional library collection/namespace; defaults to the configured collection. | |
| importance | No | ||
| session_id | No | codex | |
| token_budget | No | ||
| recent_token_budget | No | ||
| protected_token_budget | No |