Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(threads): add public delete_turn function

Steven Enamakel9895d8304b64
diff --git a/crates/openhuman-core/src/threads/turn_state/store.rs b/crates/openhuman-core/src/threads/turn_state/store.rs
index 5fa2bce13e..40ed9ae9b9 100644
--- a/crates/openhuman-core/src/threads/turn_state/store.rs
+++ b/crates/openhuman-core/src/threads/turn_state/store.rs
@@ -648,6 +648,10 @@ pub fn delete(workspace_dir: PathBuf, thread_id: &str) -> Result<bool, String> {
TurnStateStore::new(workspace_dir).delete(thread_id)
}
+pub fn delete_turn(workspace_dir: PathBuf, thread_id: &str, request_id: &str) -> Result<bool, String> {
+ TurnStateStore::new(workspace_dir).delete_turn(thread_id, request_id)
+}
+
pub fn list(workspace_dir: PathBuf) -> Result<Vec<TurnState>, String> {
TurnStateStore::new(workspace_dir).list()
}