Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new email reader utility to read emails using IMAP. #568

Merged
merged 3 commits into from
Aug 1, 2024

Conversation

visagang
Copy link
Contributor

  • Add default reader for IMAP implementation
  • Future task includes adding enhanced mail access methods. For example, using Microsoft Graph API to interact with outlook emails by adding a separate implementation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to place EmailReader in the EmailHandler plugin?

var emailMessage = await _emailProvider.GetEmailById(messageId);
if (isSummarize)
{
var prompt = $"{PROMPT_SUMMARY} The content was sent by {emailMessage.From.ToString()}. Details: {emailMessage.TextBody}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prompt should be placed under Utility Agent templates folder. This will allow user to updated the prompt without updating code.

@Oceania2018 Oceania2018 merged commit af5dd8c into SciSharp:master Aug 1, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants