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
feat(config): add inference schema definitions and runtime model support
Steven Enamakel92f4804c5a94
diff --git a/crates/openhuman-core/src/config/ops/model.rs b/crates/openhuman-core/src/config/ops/model.rsindex 696026b82d..6a7c980b8f 100644--- a/crates/openhuman-core/src/config/ops/model.rs+++ b/crates/openhuman-core/src/config/ops/model.rs@@ -61,6 +61,8 @@ pub struct MemorySettingsPatch {pub struct RuntimeSettingsPatch {pub kind: Option<String>,pub reasoning_enabled: Option<bool>,+ /// `Some("")` clears the effort back to the provider default.+ pub reasoning_effort: Option<String>,}#[derive(Debug, Clone, Default)]@@ -549,6 +551,16 @@ pub async fn apply_runtime_settings(if let Some(reasoning_enabled) = update.reasoning_enabled {config.runtime.reasoning_enabled = Some(reasoning_enabled);}+ if let Some(effort) = update.reasoning_effort {+ let effort = effort.trim();+ if effort.is_empty() {+ config.runtime.reasoning_effort = None;+ } else {+ let parsed = crate::agent::tinyagents::parse_reasoning_effort(effort)+ .ok_or_else(|| format!("unknown reasoning_effort '{effort}'"))?;+ config.runtime.reasoning_effort = Some(parsed.as_str().to_string());+ }+ }config.save().await.map_err(|e| e.to_string())?;let snapshot = snapshot_config_json(config)?;Ok(Outcome::new(diff --git a/crates/openhuman-core/src/config/schema/runtime.rs b/crates/openhuman-core/src/config/schema/runtime.rsindex f0eb20cdbf..fdb4c30ecd 100644--- a/crates/openhuman-core/src/config/schema/runtime.rs+++ b/crates/openhuman-core/src/config/schema/runtime.rs@@ -14,6 +14,13 @@ pub struct RuntimeConfig {pub docker: DockerRuntimeConfig,#[serde(default)]pub reasoning_enabled: Option<bool>,+ /// Reasoning ("thinking") effort for agent turns: `none`, `minimal`,+ /// `low`, `medium`, `high` or `xhigh` (`off` and `max` are accepted+ /// aliases). Unset leaves the provider's own default. A chat turn's+ /// `reasoning_effort` overrides it for that thread. When this is unset and+ /// `reasoning_enabled = false`, turns ask for no reasoning.+ #[serde(default, skip_serializing_if = "Option::is_none")]+ pub reasoning_effort: Option<String>,}#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]@@ -92,6 +99,7 @@ impl Default for RuntimeConfig {kind: default_runtime_kind(),docker: DockerRuntimeConfig::default(),reasoning_enabled: None,+ reasoning_effort: None,}}}diff --git a/crates/openhuman-core/src/config/schemas/controllers/inference.rs b/crates/openhuman-core/src/config/schemas/controllers/inference.rsindex 5a30bb00a6..498b9f0079 100644--- a/crates/openhuman-core/src/config/schemas/controllers/inference.rs+++ b/crates/openhuman-core/src/config/schemas/controllers/inference.rs@@ -168,6 +168,7 @@ pub(super) fn handle_update_runtime_settings(params: Map<String, Value>) -> Contlet patch = config_rpc::RuntimeSettingsPatch {kind: update.kind,reasoning_enabled: update.reasoning_enabled,+ reasoning_effort: update.reasoning_effort,};to_json(config_rpc::load_and_apply_runtime_settings(patch).await?)})diff --git a/crates/openhuman-core/src/config/schemas/helpers.rs b/crates/openhuman-core/src/config/schemas/helpers.rsindex e6ffbd080d..91e6fca893 100644--- a/crates/openhuman-core/src/config/schemas/helpers.rs+++ b/crates/openhuman-core/src/config/schemas/helpers.rs@@ -87,6 +87,7 @@ pub(super) struct MemorySettingsUpdate {pub(super) struct RuntimeSettingsUpdate {pub(super) kind: Option<String>,pub(super) reasoning_enabled: Option<bool>,+ pub(super) reasoning_effort: Option<String>,}#[derive(Debug, Deserialize)]diff --git a/crates/openhuman-core/src/config/schemas/schema_defs/inference.rs b/crates/openhuman-core/src/config/schemas/schema_defs/inference.rsindex fdafe55f60..76220189b8 100644--- a/crates/openhuman-core/src/config/schemas/schema_defs/inference.rs+++ b/crates/openhuman-core/src/config/schemas/schema_defs/inference.rs@@ -135,6 +135,10 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {inputs: vec![optional_string("kind", "Runtime kind."),optional_bool("reasoning_enabled", "Enable reasoning mode."),+ optional_string(+ "reasoning_effort",+ "Default reasoning effort for agent turns: none, minimal, low, medium, high or xhigh. Empty string clears it back to the provider default.",+ ),],outputs: vec![json_output("snapshot", "Updated config snapshot.")],}),