Skip to content

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

refactor(session_host): reorder test args and widen enrich_request visibility

Steven Enamakelfff5b9a699e0
diff --git a/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs b/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs
index 9a62993743..0ddc6d49d7 100644
--- a/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs
@@ -186,13 +186,12 @@ async fn required_output_repair_preserves_all_host_output_placements() {
"test-model",
0.0,
None,
- Some(&progress),
&tinytools_agent::dialect::NativeDialect,
&contract,
&[],
reply,
streamed,
- None,
+ Some(&progress),
1,
&mut usage,
)
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs
index d15c4702e2..bed289433c 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs
@@ -210,7 +210,7 @@ impl OpenHumanTurnPrelude {
/// Assemble every dynamic, host-owned user-turn addition after the runtime
/// has selected/resumed its transcript. The returned message is then the
/// sole input which `Session` appends to generic history.
- async fn enrich_request(
+ pub(super) async fn enrich_request(
&self,
original_user_message: &str,
turn: &super::super::types::TurnInputs,