Ask a question to get started
Enter to send•Shift+Enter new line
Asynchronously prune checkpoints for the given threads.
aprune( self, thread_ids: Sequence[str], *, strategy: str = 'keep_latest' ) -> None
thread_ids
Sequence[str]
The thread IDs to prune.
strategy
str
'keep_latest'
The pruning strategy. "keep_latest" retains only the most recent checkpoint per namespace. "delete" removes all checkpoints.
"keep_latest"
"delete"