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 component configuration schema
Steven Enamakelb7f134396cc3
diff --git a/crates/openhuman-core/src/config/schema/components.rs b/crates/openhuman-core/src/config/schema/components.rsindex 3837b4709d..cf4cb9ac8a 100644--- a/crates/openhuman-core/src/config/schema/components.rs+++ b/crates/openhuman-core/src/config/schema/components.rs@@ -20,7 +20,7 @@ use serde::{Deserialize, Serialize};use super::defaults::default_true;/// Names of every toggleable component, in declaration order.-pub const COMPONENT_NAMES: [&str; 16] = [+pub const COMPONENT_NAMES: [&str; 17] = ["flows","tinyflows","memes",@@ -37,6 +37,7 @@ pub const COMPONENT_NAMES: [&str; 16] = ["channels","skills","voice",+ "eventqueues",];#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]@@ -92,6 +93,11 @@ pub struct ComponentsConfig {/// Voice (tinyvoice).#[serde(default = "default_true")]pub voice: bool,+ /// Inbound event queues (tinyeventqueues): Composio triggers and agent+ /// webhooks are queued, deduplicated and paced before triage. Off, they+ /// take the direct triage path.+ #[serde(default = "default_true")]+ pub eventqueues: bool,}impl Default for ComponentsConfig {@@ -113,6 +119,7 @@ impl Default for ComponentsConfig {channels: true,skills: true,voice: true,+ eventqueues: true,}}}@@ -137,6 +144,7 @@ impl ComponentsConfig {"channels" => self.channels,"skills" => self.skills,"voice" => self.voice,+ "eventqueues" => self.eventqueues,_ => return None,})}@@ -160,6 +168,7 @@ impl ComponentsConfig {"channels" => &mut self.channels,"skills" => &mut self.skills,"voice" => &mut self.voice,+ "eventqueues" => &mut self.eventqueues,_ => return false,};*slot = value;diff --git a/crates/openhuman-core/src/core/runtime/components.rs b/crates/openhuman-core/src/core/runtime/components.rsindex 6ea4523828..eebc29ae12 100644--- a/crates/openhuman-core/src/core/runtime/components.rs+++ b/crates/openhuman-core/src/core/runtime/components.rs@@ -35,6 +35,7 @@ pub struct ComponentSet {pub channels: bool,pub skills: bool,pub voice: bool,+ pub eventqueues: bool,}impl Default for ComponentSet {@@ -68,6 +69,7 @@ impl ComponentSet {channels: c.channels,skills: c.skills,voice: c.voice,+ eventqueues: c.eventqueues,}}@@ -95,6 +97,7 @@ impl ComponentSet {channels: self.channels,skills: self.skills,voice: self.voice,+ eventqueues: self.eventqueues,}}diff --git a/crates/openhuman-core/src/core/runtime/features.rs b/crates/openhuman-core/src/core/runtime/features.rsindex 5b97a2ef8e..263234a9e2 100644--- a/crates/openhuman-core/src/core/runtime/features.rs+++ b/crates/openhuman-core/src/core/runtime/features.rs@@ -13,6 +13,7 @@ pub fn compiled_features() -> std::collections::BTreeMap<String, bool> {("documents", cfg!(feature = "documents")),("hosting", cfg!(feature = "hosting")),("tinymemes", cfg!(feature = "tinymemes")),+ ("inbound-queues", cfg!(feature = "inbound-queues")),("modules", cfg!(feature = "modules")),("voice", cfg!(feature = "voice")),("web3", cfg!(feature = "web3")),