mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-02 21:50:34 +00:00
feat(email): add file attachment support for email replies via RFC
This commit is contained in:
parent
a3821fbec0
commit
6ab8680bf8
9 changed files with 175 additions and 19 deletions
|
|
@ -1,3 +1,5 @@
|
|||
"""Inject email conversation context into system prompt for email sessions."""
|
||||
|
||||
from helpers.extension import Extension
|
||||
from agent import LoopData
|
||||
from plugins._email_integration.helpers.dispatcher import CTX_EMAIL_HANDLER
|
||||
|
|
@ -14,7 +16,6 @@ class EmailContextPrompt(Extension):
|
|||
if not self.agent:
|
||||
return
|
||||
|
||||
# Only inject email conversation context if this chat was started by email
|
||||
if self.agent.context.data.get(CTX_EMAIL_HANDLER):
|
||||
prompt = self.agent.read_prompt("fw.email.system_context_reply.md")
|
||||
system_prompt.append(prompt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue