Skip to content

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

test(prompts): use absolute path for current_datetime_line in tests

Steven Enamakel7d4b177783e7
diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs
index e43f43991f..c439452d4d 100644
--- a/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs
+++ b/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs
@@ -239,7 +239,7 @@ fn current_datetime_line_is_fresh_local_stamp() {
// The per-turn stamp carries a parseable local date, IANA zone (or the
// `UTC` fallback), a UTC offset, and the weekday — everything the model
// needs to localize a greeting without a tool call (#3602).
- let line = super::super::current_datetime_line(None);
+ let line = crate::prompts::current_datetime_line(None);
let rest = line
.strip_prefix("Current Date & Time: ")
.unwrap_or_else(|| panic!("stamp must start with canonical prefix: {line}"));
@@ -260,7 +260,7 @@ fn current_datetime_line_is_fresh_local_stamp() {
/// does not know falls back to the device stamp rather than echoing it.
#[test]
fn current_datetime_line_is_stamped_in_the_users_zone() {
- let line = super::super::current_datetime_line(Some("Pacific/Chatham"));
+ let line = crate::prompts::current_datetime_line(Some("Pacific/Chatham"));
let now = chrono::Utc::now().with_timezone(&chrono_tz::Pacific::Chatham);
assert!(line.contains(" Pacific/Chatham ("), "{line}");
assert!(
@@ -269,7 +269,7 @@ fn current_datetime_line_is_stamped_in_the_users_zone() {
);
assert!(line.contains(&now.format("%Y-%m-%d").to_string()), "{line}");
- let line = super::super::current_datetime_line(Some("Not/AZone"));
+ let line = crate::prompts::current_datetime_line(Some("Not/AZone"));
assert!(!line.contains("Not/AZone"), "{line}");
}
diff --git a/vendor/tinyagents b/vendor/tinyagents
index 4b20f9fc8c..b071a8b8db 160000
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@ -1 +1 @@
-Subproject commit 4b20f9fc8cffc89d6aff60340594a50a869b99a2
+Subproject commit b071a8b8db070db878fbce7fa77e3d38a52b1129