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(prompts, cron): add tier method and external effect check
Steven Enamakel8dc7c91db367
diff --git a/src/openhuman/agent/prompts/sections.rs b/src/openhuman/agent/prompts/sections.rsindex 7ebbfd53fe..acd2312226 100644--- a/src/openhuman/agent/prompts/sections.rs+++ b/src/openhuman/agent/prompts/sections.rs@@ -66,6 +66,10 @@ impl PromptSection for DynamicPromptSection {"dynamic_prompt"}+ fn tier(&self) -> PromptTier {+ PromptTier::Volatile+ }+fn build(&self, ctx: &PromptContext<'_>) -> Result<String> {(self.builder)(ctx)}diff --git a/src/openhuman/cron/tools/collapsed.rs b/src/openhuman/cron/tools/collapsed.rsindex 87006a9ddf..bf818dfafa 100644--- a/src/openhuman/cron/tools/collapsed.rs+++ b/src/openhuman/cron/tools/collapsed.rs@@ -147,6 +147,15 @@ impl Tool for CronTool {any_external_effect(&self.actions())}+ fn external_effect_with_args(&self, args: &Value) -> bool {+ let actions = self.actions();+ args.get("action")+ .and_then(Value::as_str)+ .and_then(|action| resolve(&actions, action))+ .map(|entry| entry.tool.external_effect_with_args(args))+ .unwrap_or(true)+ }+fn supports_markdown(&self) -> bool {true}