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
refactor(inference): remove turn reasoning logic
Steven Enamakelc72f2ba2f498
diff --git a/crates/openhuman-core/src/inference/reasoning.rs b/crates/openhuman-core/src/inference/reasoning.rsindex 05844d31a3..1d17f50487 100644--- a/crates/openhuman-core/src/inference/reasoning.rs+++ b/crates/openhuman-core/src/inference/reasoning.rs@@ -37,55 +37,6 @@ pub(crate) fn reasoning_for_config(config: &Config) -> Option<ReasoningConfig> {None}-/// A thread preference takes precedence over the selected model's config.-pub(crate) fn turn_reasoning(- dispatch: &crate::core::runtime::DispatchCtx,- thread_id: Option<&str>,- config: Option<&Config>,-) -> Option<ReasoningConfig> {- if let Some(effort) = thread_id.and_then(|thread_id| {- crate::agent::tinyagents::thread_reasoning::thread_effort(dispatch, thread_id)- }) {- return Some(ReasoningConfig::effort(effort));- }- config.and_then(reasoning_for_config)-}--/// Reasoning configuration for one root turn. The store snapshots an explicit-/// thread choice once; subsequent updates apply to later turns only.-pub(crate) fn turn_reasoning_for(- ctx: &crate::agent::tinyagents::host::OpenHumanRunContext,- config: Option<&Config>,- max_output_tokens: Option<u32>,-) -> Option<ReasoningConfig> {- if ctx.spawn_depth > 0 {- return None;- }-- let dispatch = ctx.dispatch_ctx();- let reasoning = if let Some(thread_id) = ctx.thread_id.as_deref() {- crate::agent::tinyagents::thread_reasoning::store(&dispatch).reasoning_for_turn(- Some(&tinyagents_harness::ids::ThreadId::new(thread_id)),- max_output_tokens,- )- } else {- None- }- .or_else(|| {- reasoning_for_config(config?).map(|reasoning| reasoning.with_output_room(max_output_tokens))- });-- if let Some(reasoning) = reasoning.as_ref() {- log::debug!(- "[agent][reasoning] turn reasoning effort={:?} budget_tokens={:?} thread_id={:?}",- reasoning.effort,- reasoning.budget_tokens,- ctx.thread_id- );- }- reasoning-}-#[cfg(test)]#[path = "reasoning_tests.rs"]mod tests;