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): correct test imports and unused variable warnings
Steven Enamakel59c859fbcafa
diff --git a/crates/openhuman-core/src/agent/agent_tests.rs b/crates/openhuman-core/src/agent/agent_tests.rsindex c2824146c3..616547920a 100644--- a/crates/openhuman-core/src/agent/agent_tests.rs+++ b/crates/openhuman-core/src/agent/agent_tests.rs@@ -28,13 +28,13 @@ use crate::agent::messages::{ChatMessage, ConversationMessage};use crate::agent::session_host::OpenHumanSessionHost;use crate::config::AgentConfig;use crate::inference::provider::ChatResponse;-use tinytools_agent::dialect::NativeToolCall;use crate::memory::Memory;use anyhow::Result;use async_trait::async_trait;use std::sync::{Arc, Mutex};use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};use tinytools::{Tool, ToolResult};+use tinytools_agent::dialect::NativeToolCall;use tinytools_agent::dialect::{NativeDialect, ToolDialect, XmlDialect};// ═══════════════════════════════════════════════════════════════════════════diff --git a/crates/openhuman-core/src/agent/harness/parse_wire_tests.rs b/crates/openhuman-core/src/agent/harness/parse_wire_tests.rsindex 696743bee2..39c6925745 100644--- a/crates/openhuman-core/src/agent/harness/parse_wire_tests.rs+++ b/crates/openhuman-core/src/agent/harness/parse_wire_tests.rs@@ -12,11 +12,11 @@//! fixtures its own tests assert against, and they never compiled into a//! production build even before the move.-#[cfg(test)]-use tinytools_agent::dialect::NativeToolCall;#[cfg(test)]use tinytools::Tool;#[cfg(test)]+use tinytools_agent::dialect::NativeToolCall;+#[cfg(test)]use tinytools_agent::{CallSource, ParsedToolCall};#[cfg(test)]diff --git a/crates/openhuman-core/src/agent/message_convert.rs b/crates/openhuman-core/src/agent/message_convert.rsindex 53a8e8f3f9..5bcbfc5400 100644--- a/crates/openhuman-core/src/agent/message_convert.rs+++ b/crates/openhuman-core/src/agent/message_convert.rs@@ -31,8 +31,7 @@ use crate::inference::provider::ChatResponse;pub(crate) fn dialect_response_from_provider(response: &ChatResponse) -> DialectResponse {DialectResponse {text: response.text.clone(),- tool_calls: response- .tool_calls+ tool_calls: response.tool_calls.clone(),}}@@ -73,7 +72,7 @@ fn conversation_to_transcript_entry(message: &ConversationMessage) -> Transcriptextra_metadata,} => TranscriptEntry::AssistantToolCalls {text: text.clone(),- tool_calls: tool_calls+ tool_calls: tool_calls.clone(),reasoning_content: reasoning_content.clone(),extra_metadata: extra_metadata.clone(),},diff --git a/crates/openhuman-core/src/agent/session_host/runtime/turn_helpers.rs b/crates/openhuman-core/src/agent/session_host/runtime/turn_helpers.rsindex 298318de25..ae2fa438db 100644--- a/crates/openhuman-core/src/agent/session_host/runtime/turn_helpers.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime/turn_helpers.rs@@ -4,8 +4,8 @@use super::super::types::OpenHumanSessionHost;use crate::agent::error::AgentError;use crate::agent::messages::ConversationMessage;-use tinytools_agent::dialect::NativeToolCall;use crate::util::truncate_with_ellipsis;+use tinytools_agent::dialect::NativeToolCall;use tinytools_agent::ParsedToolCall;impl OpenHumanSessionHost {diff --git a/crates/openhuman-core/src/threads/transcript_host_tests.rs b/crates/openhuman-core/src/threads/transcript_host_tests.rsindex 61190b81e8..071a019451 100644--- a/crates/openhuman-core/src/threads/transcript_host_tests.rs+++ b/crates/openhuman-core/src/threads/transcript_host_tests.rs@@ -9,8 +9,10 @@use crate::agent::messages::{attach_chat_tool_failure_metadata, transcript_message_from_chat, ChatMessage,};-use tinyagents_session::transcript::view::{project_records, project_thread, DisplayItem, ToolCallStatus};use tempfile::TempDir;+use tinyagents_session::transcript::view::{+ project_records, project_thread, DisplayItem, ToolCallStatus,+};use tinyagents_session::transcript::{self, read_transcript_display};/// Write a raw JSONL transcript (meta header + `body` lines) for `thread_id`.@@ -42,9 +44,9 @@ fn text_dialect_tool_turn_projects_calls_on_their_issuing_row_as_settled() {use crate::agent::messages::{ConversationMessage, ToolResultMessage};use crate::agent::session_host::OpenHumanTranscriptCodec;use crate::agent::tinyagents::host::OpenHumanRunContext;- use tinytools_agent::dialect::NativeToolCall;use tinyagents_runtime::{ResumeMode, TranscriptCodec, TranscriptTurnOptions};use tinyinference_llm::message::Message;+ use tinytools_agent::dialect::NativeToolCall;let dir = TempDir::new().unwrap();