Skip to content

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

refactor(agent): update tool snapshot usage to harness types

Steven Enamakelcbbfacd5f031
diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rs
index 18c31d8883..f6b353f012 100644
--- a/crates/openhuman-core/src/agent/session_host/driver.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver.rs
@@ -165,7 +165,7 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {
messages = crate::agent::multimodal::rehydrate_image_placeholders(&messages).await;
}
- // Runtime's `ToolSnapshot` remains the model declaration and final
+ // Harness `ToolSnapshot` remains the model declaration and final
// allowlist. The actual executable instances must be supplied by the
// request hook as well: falling back to a long-lived driver's tool
// registry would let revoked or hidden tools execute under stale
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
index 450f13ee6c..e7b1f3bcaa 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
@@ -3,12 +3,13 @@ use std::sync::{Arc, Mutex};
use async_trait::async_trait;
use tinyagents_runtime::{
DriverFailure, DriverOutcome, DriverRequest, PrefixSnapshot, ResumeMode, SessionBuilder,
- SessionDriver, SessionTerminal, SessionTurnRequest, ToolSnapshot, TranscriptCodec,
+ SessionDriver, SessionTerminal, SessionTurnRequest, TranscriptCodec,
TranscriptTurnOptions, TurnOptions,
};
use tinyagents_session::port::{InMemorySessionStores, SessionStoreProvider};
use tinyagents_session::transcript::TranscriptMeta;
use tinyinference_llm::message::Message;
+use tinyagents_harness::tool::ToolSnapshot;
use super::runtime_session::{account_committed_turn_against_goal, holistic_last_turn_usage};
use super::{OpenHumanSessionHooks, OpenHumanTranscriptCodec};
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs b/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs
index 7816f2646e..d366eae9f0 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs
@@ -18,7 +18,8 @@ use tinyagents_harness::turn_policy::effective_max_iterations;
use tinyagents_runtime::turn_driver::{
SubagentScope as DriverSubagentScope, TurnControls, TurnDriver, TurnScope,
};
-use tinyagents_runtime::{DriverRequest, ToolSnapshot};
+use tinyagents_runtime::DriverRequest;
+use tinyagents_harness::tool::ToolSnapshot;
use crate::agent::harness::tool_result_artifacts::TINYAGENTS_TOOL_RESULT_ARTIFACT_STORE;
use crate::agent::tinyagents::host::OpenHumanRunContext;
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_plan_tests.rs b/crates/openhuman-core/src/agent/tinyagents/turn_plan_tests.rs
index d6c409c8b2..49bd137086 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_plan_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_plan_tests.rs
@@ -9,7 +9,8 @@ use tinyagents_harness::turn_policy::{
DEFAULT_MODEL_CALL_TIMEOUT_SECS, LOCAL_MODEL_CALL_TIMEOUT_SECS,
};
use tinyagents_runtime::turn_driver::{SharedToolSet, TurnControls, TurnDriver};
-use tinyagents_runtime::{DriverRequest, ToolSnapshot};
+use tinyagents_runtime::DriverRequest;
+use tinyagents_harness::tool::ToolSnapshot;
use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tinytools::{Tool, ToolResult};
diff --git a/crates/openhuman-core/src/agent/tools.rs b/crates/openhuman-core/src/agent/tools.rs
index 313dc73821..a91e4facfc 100644
--- a/crates/openhuman-core/src/agent/tools.rs
+++ b/crates/openhuman-core/src/agent/tools.rs
@@ -21,6 +21,6 @@ pub(crate) mod plan_exit;
mod todo;
pub use plan_exit::PlanExitTool;
-pub const PLAN_EXIT_MARKER: &str = tinyagents_harness::tool::plan_exit::PLAN_EXIT_MARKER;
+pub const PLAN_EXIT_MARKER: &str = tinyagents_harness_tools::PLAN_EXIT_MARKER;
pub use todo::TodoTool;
pub(crate) use todo::TodoToolDispatch;