Skip to content

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

test(runtime_adapter): add model name to session host builders

Steven Enamakel28bc85aade3c
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..9e106a0013 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
@@ -537,6 +537,7 @@ async fn cold_resumed_thread_can_send_again() {
let new_host = || {
crate::agent::SessionHostBuilder::new()
.chat_model(model.clone())
+ .model_name("test/session-fixture".to_string())
.tools(Vec::new())
.workspace_dir(root.path().join("workspace"))
.action_dir(root.path().to_path_buf())
@@ -585,6 +586,7 @@ async fn production_turn_path_wires_an_artifact_store_outside_the_project() {
Arc::new(tinyagents_harness::testkit::ScriptedModel::new(Vec::new()));
let mut host = crate::agent::SessionHostBuilder::new()
.chat_model(model)
+ .model_name("test/session-fixture".to_string())
.tools(Vec::new())
.workspace_dir(workspace.path().to_path_buf())
.action_dir(action_dir.path().to_path_buf())
@@ -631,6 +633,7 @@ async fn artifact_store_stays_in_the_workspace_without_a_descriptor() {
Arc::new(tinyagents_harness::testkit::ScriptedModel::new(Vec::new()));
let mut host = crate::agent::SessionHostBuilder::new()
.chat_model(model)
+ .model_name("test/session-fixture".to_string())
.tools(Vec::new())
.workspace_dir(workspace.path().to_path_buf())
.action_dir(action_dir.path().to_path_buf())
@@ -687,6 +690,7 @@ async fn reply_language_directive_rides_each_user_message_until_cleared_body() {
]));
let mut host = crate::agent::SessionHostBuilder::new()
.chat_model(model.clone() as Arc<dyn tinyinference_llm::model::ChatModel<()>>)
+ .model_name("test/session-fixture".to_string())
.tools(Vec::new())
.workspace_dir(root.path().join("workspace"))
.action_dir(root.path().to_path_buf())