Ask a question to get started
Enter to send•Shift+Enter new line
Prune checkpoints for the given threads.
prune( 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"