mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-04 06:30:35 +00:00
feat(email): add email_update tool for sending progress emails without ending agent loop
This commit is contained in:
parent
3868c85aee
commit
4ebb5f472c
6 changed files with 79 additions and 7 deletions
|
|
@ -17,5 +17,9 @@ class EmailContextPrompt(Extension):
|
|||
return
|
||||
|
||||
if self.agent.context.data.get(CTX_EMAIL_HANDLER):
|
||||
prompt = self.agent.read_prompt("fw.email.system_context_reply.md")
|
||||
system_prompt.append(prompt)
|
||||
system_prompt.append(
|
||||
self.agent.read_prompt("fw.email.system_context_reply.md")
|
||||
)
|
||||
system_prompt.append(
|
||||
self.agent.read_prompt("fw.email.tool_email_update.md")
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue