Skip to content

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

test(session_host): add model name to goal session prompt test

Steven Enamakele08d0c9ca4b0
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/tool_rules_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/tool_rules_tests.rs
index 820237b23e..37da9fdd13 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session/tool_rules_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/tool_rules_tests.rs
@@ -63,6 +63,7 @@ async fn goal_session_prompt(rules: serde_json::Value) -> (String, Vec<String>)
std::sync::Arc::new(tinyagents_harness::testkit::ScriptedModel::new(Vec::new()));
let mut host = crate::agent::SessionHostBuilder::new()
.chat_model_with_config(model, std::sync::Arc::new(config))
+ .model_name("test/session-fixture".to_string())
.tools(crate::agent::goals::goal_tools(action_dir.path()))
.action_dir(action_dir.path().to_path_buf())
.tool_dispatcher(Box::new(tinytools_agent::dialect::XmlDialect))