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
fix(agent): remove unused tool result artifacts module
Steven Enamakele9d4e637f092
diff --git a/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs b/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rsindex 3cd17ca532..4913d6d578 100644--- a/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs+++ b/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs@@ -80,17 +80,3 @@ fn a_page_names_file_read_as_the_continuation() {"{page}");}--/// The read limit is `file_read`'s own: a body whose redacted form it would-/// refuse is never stored, so the preview never points at an unreadable file.-#[tokio::test]-async fn the_store_is_bounded_by_file_reads_limit() {- let tmp = tempfile::tempdir().unwrap();- let store = new_tool_result_store(tmp.path().to_path_buf(), "s");- let too_big = "z".repeat(FileReadTool::MAX_FILE_SIZE_BYTES as usize + 1);- let (out, outcome) =- apply_per_result_persistence(too_big, None, Some(&store), "shell", Some("c"), 1024).await;- assert!(!outcome.persisted, "an unreadable body must truncate inline");- assert!(out.contains("truncated by tool_result_budget"));- assert!(!tmp.path().join("artifacts").exists());-}diff --git a/crates/openhuman-core/src/agent/session_host/artifact_wiring.rs b/crates/openhuman-core/src/agent/session_host/artifact_wiring.rsindex 2882b09a32..c2224bb4b7 100644--- a/crates/openhuman-core/src/agent/session_host/artifact_wiring.rs+++ b/crates/openhuman-core/src/agent/session_host/artifact_wiring.rs@@ -6,7 +6,8 @@use std::path::{Path, PathBuf};-use crate::agent::harness::tool_result_artifacts::ToolResultArtifactStore;+use crate::agent::harness::tool_result_artifacts::new_tool_result_store;+use tinyagents_harness::artifacts::tool_results::ToolResultArtifactStore;/// How long another session's tool-result artifacts survive before a later/// session sweeps them.@@ -69,7 +70,7 @@ pub(super) fn build_artifact_store(session_key: &str,) -> ToolResultArtifactStore {let store =- ToolResultArtifactStore::new(artifact_root(workspace_descriptor, action_dir), session_key);+ new_tool_result_store(artifact_root(workspace_descriptor, action_dir), session_key);match store.prune_stale_sessions(ARTIFACT_RETENTION) {Ok(0) => {}Ok(removed) => log::debug!(diff --git a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rsindex b2b39a987c..a95c2f3bad 100644--- a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs+++ b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs@@ -15,7 +15,7 @@ use tinyagents_registry::{CapabilityRegistry, RegistryDiagnostic, RegistrySnapshuse tinyinference_llm::model::CapabilitySet;use tokio::sync::mpsc::Sender;-use crate::agent::harness::tool_result_artifacts::ToolResultArtifactIndexStore;+use tinyagents_harness::store::InMemoryStore as ToolResultArtifactIndexStore;use crate::agent::progress::AgentProgress;use crate::agent::tinyagents::harness_context_ladder::install_context_ladder;use crate::agent::tinyagents::harness_tool_registration::register_turn_tools_and_agents;diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rsindex 7c7f7148c8..56b4234bde 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs@@ -18,7 +18,7 @@ use tokio::sync::mpsc::Sender;use crate::agent::harness::definition::SandboxMode;use crate::agent::harness::fork_context::{AgentContextPreparedSource, ParentExecutionContext};-use crate::agent::harness::tool_result_artifacts::ToolResultArtifactIndexStore;+use tinyagents_harness::store::InMemoryStore as ToolResultArtifactIndexStore;use crate::agent::progress::AgentProgress;use crate::agent::stop_hooks::StopHook;use crate::agent::subagent_host::SubagentUsage;diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rsindex 5591b97bd7..1acb145351 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rs@@ -16,8 +16,10 @@ use tinyinference_llm::tool::ToolCall as TaToolCall;use tinytools::{ToolPolicy as TaToolPolicy, ToolResult as TaToolResult};use crate::agent::harness::tool_result_artifacts::{- apply_per_result_persistence, artifact_read_target, page_artifact_read, ArtifactRead,- ToolResultArtifactStore, TINYAGENTS_TOOL_RESULT_ARTIFACT_STORE,+ artifact_read_target, page_artifact_read, TINYAGENTS_TOOL_RESULT_ARTIFACT_STORE,+};+use tinyagents_harness::artifacts::tool_results::{+ apply_per_result_persistence, ArtifactRead, ToolResultArtifactStore,};use crate::agent::tinyagents::payload_summarizer::PayloadSummarizer;use crate::inference::tokenjuice::generate::GenerateTicket;diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rsindex 78ff3ab005..66c3053fd4 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rs@@ -16,7 +16,7 @@ use tinyinference_llm::message::Message;use tinyinference_llm::model::{ModelRequest, ModelResponse, ResolvedModelRoute};use tinytools::{ToolPolicy as TaToolPolicy, ToolResult as TaToolResult};-use crate::agent::harness::tool_result_artifacts::ToolResultArtifactStore;+use tinyagents_harness::artifacts::tool_results::ToolResultArtifactStore;use crate::agent::tinyagents::payload_summarizer::PayloadSummarizer;use crate::agent::tinyagents::turn_outcome::ToolCallOutcome;use crate::inference::tokenjuice::AgentTokenjuiceCompression;diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_wrap_up_toc_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_wrap_up_toc_tests.rsindex d0eb588255..36e56ea030 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_wrap_up_toc_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_wrap_up_toc_tests.rs@@ -302,7 +302,7 @@ async fn ctx_with_artifacts_and_config() -> RunContext<crate::agent::tinyagents::host::OpenHumanRunContext> {use tinyagents_harness::store::StoreRegistry;let index = std::sync::Arc::new(- crate::agent::harness::tool_result_artifacts::ToolResultArtifactIndexStore::new(),+ tinyagents_harness::store::InMemoryStore::new(),);for (call_id, tool, path, bytes) in entries {let mut fields = serde_json::Map::new();