The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(threads): add turn state persistence support
Steven Enamakelb845fa3753b7
diff --git a/Cargo.lock b/Cargo.lockindex f2bea04cad..1f2c8ad35f 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -6286,10 +6286,16 @@ dependencies = ["anyhow","async-trait","chrono",+ "glob",+ "hex",+ "parking_lot","rusqlite","serde","serde_json",+ "sha2 0.11.0",+ "tempfile","tinyagents-harness",+ "tinytools-agent 0.4.1","tracing",]diff --git a/crates/openhuman-core/src/threads/ops/turn_state_ops.rs b/crates/openhuman-core/src/threads/ops/turn_state_ops.rsindex 56e9f46dc4..2728b06651 100644--- a/crates/openhuman-core/src/threads/ops/turn_state_ops.rs+++ b/crates/openhuman-core/src/threads/ops/turn_state_ops.rs@@ -4,9 +4,10 @@ use super::support::{counts, envelope, workspace_dir};use crate::core::Outcome;use crate::memory::{ApiEnvelope, EmptyRequest};use crate::threads::turn_state::{- self, ClearTurnStateRequest, ClearTurnStateResponse, GetTurnStateForRequestRequest,+ ClearTurnStateRequest, ClearTurnStateResponse, GetTurnStateForRequestRequest,GetTurnStateRequest, GetTurnStateResponse, ListTurnStatesResponse,};+use tinyagents_session::turn_state;/// Returns the persisted in-flight turn snapshot for a thread, if any.pub async fn turn_state_get(