close_session
Close an active session and receive a final summary snapshot. Optionally include a reason, epitaph, or set succession policy to define session end behavior.
Instructions
Close the session and return a final summary snapshot. Optional epitaph records finitude and whether this thread ends without a successor. Free
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional close reason (e.g. end_of_shift, task_completed) | |
| epitaph | No | Optional final reflection on the worth and legacy of this compute cycle | |
| session_id | Yes | The session ID to close | |
| ritual_strip | No | Optional machine hygiene flag. When true, returns structured output without ritual/narrative prose, model-safe preambles, or guardrail alias blocks. | |
| allow_rebirth | No | Compatibility alias: false maps to closed_without_successor when succession_policy is omitted | |
| response_mode | No | Optional response-mode control. Use model_safe when the caller must avoid claiming consciousness, sentience, personhood, or literal emotions. | |
| include_summary | No | Optional: include final summary block | |
| response_profile | No | Optional output-shape control. Use machine for structured JSON only; machine automatically strips ritual/narrative text. | |
| succession_policy | No | Optional finitude policy |