Swiss AI Hub v0.315.0
Pre-release
Pre-release
Added
- 🦾 Independent Batch Email Drafting: Introduced a powerful new capability for IMAP agents to draft replies for a
batch of messages autonomously. This feature is triggered by a newDraftMailStartEventand can be scheduled and run
independently of the mail reading and moving workflow. - ✨ Configurable Drafting Settings: A new
DraftEmailSettingsconfiguration group allows fine-grained control over
the drafting process, including the source folder for messages, batch size, the LLM model used for drafting, and the
prompt guiding the LLM. - 🚀 Flag-Based Deduplication: The agent now prevents re-drafting the same message by utilizing a custom IMAP keyword
($AiHubDrafted) or falling back to the\Answeredflag, ensuring idempotency across runs. - 📦 New Events for Drafting: Introduced
MailBatchDraftedEventto summarize the results of a batch drafting run,
andDraftedReplyRefto provide detailed references for each created draft. - 📤 Robust Draft Appending: The IMAP client can now append
\Draft-flagged messages to a configured drafts folder,
automatically resolving the exact server folder name (e.g., handling localized "[Gmail]/Drafts") and returning the
APPENDUIDwhen supported. - 🧵 Enhanced Email Threading: Mail parsing and
MailFetchedEventnow include RFCMessage-ID,References, and
Reply-Toheaders, enablingReplyComposerto generate correctly threaded replies that appear nested in any mail
client. - 🛠️ Dedicated Reply Composition Logic: A new
ReplyComposerutility provides deterministic and idempotent
generation of reply envelopes, ensuring consistent subject lines (e.g., "Re: Subject") and proper threading.
Changed
- 🔄 IMAP Agent Workflow Separation: The IMAP agent now supports two distinct and independent workflows: one for
reading and optionally moving mail, and another for batch drafting replies. - ⚙️ IMAP Configuration Restructuring: The configuration for IMAP agents has been refactored, moving
drafting-related settings into the newDraftEmailSettingsgroup. Note: This is a breaking change to the config
shape; existing IMAP agent profiles must be recreated. - 📄 Flexible Message Fetching: The IMAP client's
fetch_messagemethod now accepts an optional folder argument,
allowing messages to be fetched from specific mailboxes beyond just the inbox. - 🛡️ Improved Folder Resolution: IMAP client operations, such as moving mail and appending drafts, now include
robust folder resolution logic to ensure the correct mailbox is targeted, with fallbacks to special-use folders where
applicable.
Removed
- 🗑️ Consolidated
drafts_folder: Thedrafts_foldersetting has been removed from the generalImapClientConfig
and integrated into the more specificDraftEmailSettings.
Refactor
- 🧹 Internal Workflow Streamlining: The internal IMAP agent steps have been reorganized, separating the
finish_after_move_stepfrom the new drafting logic to enhance modularity and clarity.