Skip to content

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

fix(tinyagents): store dispatch admission as a trait object

Steven Enamakele411367a3ee1
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
index 61ac12cfd3..e688db48d0 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
@@ -271,7 +271,7 @@ pub struct OpenHumanRunContext {
pub model_budget: Option<super::super::budget::ModelBudget>,
/// Host admission policy shared by this run and its synchronous descendants.
pub dispatch_admission:
- Option<Arc<super::super::budget::PhysicalDispatchAdmission>>,
+ Option<Arc<dyn super::super::budget::PhysicalDispatchAdmission>>,
/// The response format and output cap this root turn asks of every model
/// call, and the slot its final call is reported into. Carried explicitly
/// from the caller (`agent_chat`) through the session; children never