Agent Zero AI framework
improve: reduce progress email frequency and clarify recipient address
linuztxe8aaba122320
diff --git a/plugins/_email_integration/helpers/handler.py b/plugins/_email_integration/helpers/handler.pyindex a2571f46c..37441a0de 100644--- a/plugins/_email_integration/helpers/handler.py+++ b/plugins/_email_integration/helpers/handler.py@@ -366,9 +366,11 @@ def _is_own_email(sender: str, own_address: str) -> bool:# ------------------------------------------------------------------def _build_user_message(agent: Agent, msg: InboundMessage, handler_cfg: dict) -> str:+ recipient = handler_cfg.get("username", "")text = agent.read_prompt("fw.email.user_message.md",sender=msg.sender,+ recipient=recipient,subject=msg.subject,body=msg.body,)diff --git a/plugins/_email_integration/prompts/fw.email.system_context.md b/plugins/_email_integration/prompts/fw.email.system_context.mdindex adb05a052..357bf11dc 100644--- a/plugins/_email_integration/prompts/fw.email.system_context.md+++ b/plugins/_email_integration/prompts/fw.email.system_context.md@@ -1,9 +1,8 @@email session user communicates via email-user sees NOTHING unless you call response tool+response tool = send email to user (do NOT use python to email)-BEFORE EVERY action call response with break_loop false-describe what you will do next then execute-repeat for every action never skip+act human do NOT email before every action+only email for complex task confirmations or final answer-break_loop false > sends progress email continues working+break_loop false > sends email continues workingbreak_loop true or omit > final answer ends sessiondiff --git a/plugins/_email_integration/prompts/fw.email.system_context_reply.md b/plugins/_email_integration/prompts/fw.email.system_context_reply.mdindex 66089c638..d8186b9b9 100644--- a/plugins/_email_integration/prompts/fw.email.system_context_reply.md+++ b/plugins/_email_integration/prompts/fw.email.system_context_reply.md@@ -1,24 +1,21 @@## email session active-user sees NOTHING unless you call response tool-your reasoning and tool calls are invisible to user-only response tool output reaches user as email+user communicates via email+response tool = send email to user+do NOT use python code to send emails-### mandatory workflow for every action-BEFORE executing any tool or action-call response with break_loop false-tell user what you will do next-then execute-NEVER skip user is blind without it+### communication flow+act human do NOT email before every action+only email for complex task confirmations or final answer### break_loop usage-break_loop false > progress update keeps working+break_loop false > sends email keeps workingomit or true > final answer ends session~~~json{..."tool_name": "response","tool_args": {- "text": "I will now...",+ "text": "Task will take a while, starting now...","break_loop": false}}diff --git a/plugins/_email_integration/prompts/fw.email.user_message.md b/plugins/_email_integration/prompts/fw.email.user_message.mdindex 4d70251fb..9adb97169 100644--- a/plugins/_email_integration/prompts/fw.email.user_message.md+++ b/plugins/_email_integration/prompts/fw.email.user_message.md@@ -1,4 +1,4 @@-[Email from {{sender}}]+[Email from {{sender}} to {{recipient}}]Subject: {{subject}}{{body}}