Skip to content

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

test(embed): update learning sink test doubles for new trait

Steven Enamakel453a29912ae2
diff --git a/crates/openhuman-embed/src/runtime/seams_tests.rs b/crates/openhuman-embed/src/runtime/seams_tests.rs
index 0c2cfeb7c2..d5cf2dab1b 100644
--- a/crates/openhuman-embed/src/runtime/seams_tests.rs
+++ b/crates/openhuman-embed/src/runtime/seams_tests.rs
@@ -30,9 +30,6 @@ struct NamedPostTurn(&'static str);
#[async_trait::async_trait]
impl LearningSink for NamedPostTurn {
- fn name(&self) -> &str {
- self.0
- }
async fn on_turn_complete(&self, _ctx: &TurnSummary) -> anyhow::Result<()> {
Ok(())
}
diff --git a/crates/openhuman-embed/tests/scoped_hooks.rs b/crates/openhuman-embed/tests/scoped_hooks.rs
index c2b00b9145..ef579dd694 100644
--- a/crates/openhuman-embed/tests/scoped_hooks.rs
+++ b/crates/openhuman-embed/tests/scoped_hooks.rs
@@ -66,13 +66,9 @@ impl ToolHook<OpenHumanRunContext> for Observer {
#[async_trait::async_trait]
impl LearningSink for Observer {
- fn name(&self) -> &str {
- "same-policy-name"
- }
async fn on_turn_complete(&self, ctx: &TurnSummary) -> anyhow::Result<()> {
- assert!(ctx.session_id.is_some());
- assert!(ctx.agent_id.is_some());
- self.record("turn", ctx.user_message.lines().last().unwrap());
+ assert!(!ctx.agent_id.is_empty());
+ self.record("turn", ctx.input.lines().last().unwrap());
Ok(())
}
}
diff --git a/crates/openhuman-embed/tests/seams_runtime.rs b/crates/openhuman-embed/tests/seams_runtime.rs
index 9c840501ce..648e5cf271 100644
--- a/crates/openhuman-embed/tests/seams_runtime.rs
+++ b/crates/openhuman-embed/tests/seams_runtime.rs
@@ -45,9 +45,6 @@ struct ProbeHook;
#[async_trait::async_trait]
impl LearningSink for ProbeHook {
- fn name(&self) -> &str {
- "embed-seam-runtime-hook"
- }
async fn on_turn_complete(
&self,
_ctx: &openhuman_embed::seams::TurnSummary,