Skip to content

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

chore(tests): remove unused test files

Steven Enamakelae52fa0610f0
diff --git a/crates/openhuman-core/src/agent/agent_tests.rs b/crates/openhuman-core/src/agent/agent_tests.rs
index 471f1d5410..c2824146c3 100644
--- a/crates/openhuman-core/src/agent/agent_tests.rs
+++ b/crates/openhuman-core/src/agent/agent_tests.rs
@@ -27,7 +27,8 @@
use crate::agent::messages::{ChatMessage, ConversationMessage};
use crate::agent::session_host::OpenHumanSessionHost;
use crate::config::AgentConfig;
-use crate::inference::provider::{ChatResponse, ToolCall};
+use crate::inference::provider::ChatResponse;
+use tinytools_agent::dialect::NativeToolCall;
use crate::memory::Memory;
use anyhow::Result;
use async_trait::async_trait;
@@ -304,7 +305,7 @@ fn build_agent_with_config(
}
/// Helper: create a ChatResponse with tool calls (native format).
-fn tool_response(calls: Vec<ToolCall>) -> ChatResponse {
+fn tool_response(calls: Vec<NativeToolCall>) -> ChatResponse {
ChatResponse {
text: Some(String::new()),
tool_calls: calls,
diff --git a/crates/openhuman-core/src/agent/harness/parse_wire_tests.rs b/crates/openhuman-core/src/agent/harness/parse_wire_tests.rs
index f8707a4fa0..696743bee2 100644
--- a/crates/openhuman-core/src/agent/harness/parse_wire_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/parse_wire_tests.rs
@@ -7,20 +7,20 @@
//! call from model text is OpenHuman-specific, so none of it stayed.
//!
//! What is left below speaks OpenHuman's own wire vocabulary — its
-//! `inference::provider::ToolCall`, its native-history JSON, its OpenAI
+//! `NativeToolCall`, its native-history JSON, its OpenAI
//! function-calling payload. All of it is `#[cfg(test)]`: these are the
//! fixtures its own tests assert against, and they never compiled into a
//! production build even before the move.
#[cfg(test)]
-use crate::inference::provider::ToolCall;
+use tinytools_agent::dialect::NativeToolCall;
#[cfg(test)]
use tinytools::Tool;
#[cfg(test)]
use tinytools_agent::{CallSource, ParsedToolCall};
#[cfg(test)]
-pub(crate) fn parse_structured_tool_calls(tool_calls: &[ToolCall]) -> Vec<ParsedToolCall> {
+pub(crate) fn parse_structured_tool_calls(tool_calls: &[NativeToolCall]) -> Vec<ParsedToolCall> {
tool_calls
.iter()
.map(|call| ParsedToolCall {
@@ -46,7 +46,7 @@ pub(crate) fn parse_structured_tool_calls(tool_calls: &[ToolCall]) -> Vec<Parsed
pub(crate) fn build_native_assistant_history(
text: &str,
reasoning_content: Option<&str>,
- tool_calls: &[ToolCall],
+ tool_calls: &[NativeToolCall],
) -> String {
let calls_json: Vec<serde_json::Value> = tool_calls
.iter()
@@ -100,7 +100,7 @@ pub(crate) fn build_native_assistant_history(
#[cfg(test)]
pub(crate) fn build_assistant_history_with_tool_calls(
text: &str,
- tool_calls: &[ToolCall],
+ tool_calls: &[NativeToolCall],
) -> String {
let mut parts = Vec::new();
diff --git a/crates/openhuman-core/src/agent/message_convert_tests.rs b/crates/openhuman-core/src/agent/message_convert_tests.rs
index 7d0bb6b430..41b15e7def 100644
--- a/crates/openhuman-core/src/agent/message_convert_tests.rs
+++ b/crates/openhuman-core/src/agent/message_convert_tests.rs
@@ -136,7 +136,7 @@ fn plain_user_text_stays_a_single_text_block() {
#[test]
fn seeded_native_tool_round_recovers_structure_and_round_trips() {
- use crate::inference::provider::ToolCall as OhToolCall;
+ use tinytools_agent::dialect::NativeToolCall as OhToolCall;
// The native dispatcher seeds an assistant tool round as a
// {content, tool_calls} envelope followed by {tool_call_id, content} rows.
let oh_call = OhToolCall {
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs
index ae3acb6b2c..18eda0e23a 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs
@@ -236,7 +236,7 @@ fn mirrored_tool_results_are_hidden_from_the_worker_thread_chat() {
&[
ConversationMessage::AssistantToolCalls {
text: Some("checking the calendar".to_string()),
- tool_calls: vec![crate::inference::provider::ToolCall {
+ tool_calls: vec![tinytools_agent::dialect::NativeToolCall {
id: "call-1".to_string(),
name: "list_events".to_string(),
arguments: "{}".to_string(),
diff --git a/crates/openhuman-core/src/flows/ops_tests.rs b/crates/openhuman-core/src/flows/ops_tests.rs
index 8982a25c16..996f737720 100644
--- a/crates/openhuman-core/src/flows/ops_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_tests.rs
@@ -579,10 +579,10 @@ fn readonly_graph() -> Value {
fn builder_tool_call(id: &str, name: &str) -> crate::agent::messages::ConversationMessage {
use crate::agent::messages::ConversationMessage;
- use crate::inference::provider::ToolCall;
+ use tinytools_agent::dialect::NativeToolCall;
ConversationMessage::AssistantToolCalls {
text: None,
- tool_calls: vec![ToolCall {
+ tool_calls: vec![NativeToolCall {
id: id.to_string(),
name: name.to_string(),
arguments: "{}".to_string(),
diff --git a/crates/openhuman-core/src/threads/transcript_host_tests.rs b/crates/openhuman-core/src/threads/transcript_host_tests.rs
index edf5946979..61190b81e8 100644
--- a/crates/openhuman-core/src/threads/transcript_host_tests.rs
+++ b/crates/openhuman-core/src/threads/transcript_host_tests.rs
@@ -42,7 +42,7 @@ 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 crate::inference::provider::ToolCall;
+ use tinytools_agent::dialect::NativeToolCall;
use tinyagents_runtime::{ResumeMode, TranscriptCodec, TranscriptTurnOptions};
use tinyinference_llm::message::Message;
@@ -54,13 +54,13 @@ fn text_dialect_tool_turn_projects_calls_on_their_issuing_row_as_settled() {
ConversationMessage::AssistantToolCalls {
text: None,
tool_calls: vec![
- ToolCall {
+ NativeToolCall {
id: "call_web_search_1".into(),
name: "web_search_tool".into(),
arguments: r#"{"query":"rust async traits"}"#.into(),
extra_content: None,
},
- ToolCall {
+ NativeToolCall {
id: "call_file_read_1".into(),
name: "file_read".into(),
arguments: r#"{"path":"README.md"}"#.into(),