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(composio): add curated tool contract
Steven Enamakel31b61b9b55ce
diff --git a/crates/openhuman-core/src/integrations/composio/contract/curated.rs b/crates/openhuman-core/src/integrations/composio/contract/curated.rsindex e14f556cda..d8ed62f2bd 100644--- a/crates/openhuman-core/src/integrations/composio/contract/curated.rs+++ b/crates/openhuman-core/src/integrations/composio/contract/curated.rs@@ -126,7 +126,7 @@ fn test_fixture() -> Arc<Snapshot> {.clone()}-/// Leak each distinct string once: `CuratedTool` carries `&'static str`, and a+/// Leak each distinct description once: `toolkit_description` hands out `&'static str`, and a/// re-read after reinit must not grow the heap by another copy of the tables.fn intern(text: &str) -> &'static str {static POOL: Mutex<Option<HashSet<&'static str>>> = Mutex::new(None);diff --git a/crates/openhuman-core/src/integrations/composio/contract/curated_tests.rs b/crates/openhuman-core/src/integrations/composio/contract/curated_tests.rsindex d060781480..5513371659 100644--- a/crates/openhuman-core/src/integrations/composio/contract/curated_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/contract/curated_tests.rs@@ -1,11 +1,11 @@use super::*;use tinyconnectors_bus::vocabulary::{ToolkitVocabulary, VocabularyAction};-fn reply() -> (Vec<BusCuratedTool>, VocabularyResponse) {- let listed = vec![BusCuratedTool {+fn reply() -> (Vec<CuratedTool>, VocabularyResponse) {+ let listed = vec![CuratedTool {toolkit: "gmail".into(),slug: "GMAIL_SEND_EMAIL".into(),- scope: BusScope::Write,+ scope: ToolScope::Write,}];let vocabulary = VocabularyResponse {toolkits: vec![@@ -16,11 +16,11 @@ fn reply() -> (Vec<BusCuratedTool>, VocabularyResponse) {actions: Some(vec![VocabularyAction {slug: "GMAIL_FETCH_EMAILS".into(),- scope: BusScope::Read,+ scope: ToolScope::Read,},VocabularyAction {slug: "GMAIL_SEND_EMAIL".into(),- scope: BusScope::Write,+ scope: ToolScope::Write,},]),},@@ -30,7 +30,7 @@ fn reply() -> (Vec<BusCuratedTool>, VocabularyResponse) {native_provider: false,actions: Some(vec![VocabularyAction {slug: "GOOGLECALENDAR_CREATE_EVENT".into(),- scope: BusScope::Write,+ scope: ToolScope::Write,}]),},ToolkitVocabulary {@@ -40,7 +40,7 @@ fn reply() -> (Vec<BusCuratedTool>, VocabularyResponse) {actions: None,},],- agent_ready_toolkits: vec![],+ agent_ready_toolkits: vec!["gmail".into(), "gmail".into(), "Notion".into()],};(listed, vocabulary)}