The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
style(tinyagents): reformat call id and provider id expressions
Steven Enamakel7cf59915bbf1
diff --git a/crates/openhuman-core/src/agent/tinyagents/routes.rs b/crates/openhuman-core/src/agent/tinyagents/routes.rsindex 1918d12bee..cec34b1af7 100644--- a/crates/openhuman-core/src/agent/tinyagents/routes.rs+++ b/crates/openhuman-core/src/agent/tinyagents/routes.rs@@ -268,10 +268,14 @@ impl ModelMiddleware<(), crate::agent::tinyagents::host::OpenHumanRunContext>.correlation.as_ref().map(|correlation| correlation.call_id.clone())- .or_else(|| ctx.active_model_call.as_ref().map(|call_id| call_id.as_str().to_owned()));+ .or_else(|| {+ ctx.active_model_call+ .as_ref()+ .map(|call_id| call_id.as_str().to_owned())+ });if let Some(call_id) = &call_id {- let provider_id = valid_trace_provider_id(&self.provider_id)- .then(|| self.provider_id.clone());+ let provider_id =+ valid_trace_provider_id(&self.provider_id).then(|| self.provider_id.clone());if let Some(provider_id) = provider_id {ctx.events.emit(AgentEvent::GenerationEnriched {call_id: call_id.clone().into(),