Clear short-term memory for this session. Removes all session-scoped memory items without affecting long-term or working memory.
(&self, py: Python<'_>)
| 3223 | /// |
| 3224 | /// Removes all session-scoped memory items without affecting long-term or working memory. |
| 3225 | fn clear_short_term(&self, py: Python<'_>) -> PyResult<()> { |
| 3226 | let memory = self |
| 3227 | .inner |
| 3228 | .memory() |
| 3229 | .ok_or_else(|| PyRuntimeError::new_err("Memory not configured for this session"))? |
| 3230 | .clone(); |
| 3231 | py.allow_threads(move || get_runtime().block_on(memory.clear_short_term())); |
| 3232 | Ok(()) |
| 3233 | } |
| 3234 | |
| 3235 | // ======================================================================== |
| 3236 | // Slash Command & Scheduler API |
nothing calls this directly
no test coverage detected