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

chore: switch Outlook Mail tools to be code-based #36

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

g-linville
Copy link
Collaborator

No description provided.

Signed-off-by: Grant Linville <[email protected]>
Signed-off-by: Grant Linville <[email protected]>
Signed-off-by: Grant Linville <[email protected]>
Signed-off-by: Grant Linville <[email protected]>
Comment on lines +48 to +53
if !util.Deref(msg.GetIsDraft()) {
fmt.Printf("Sender: %s (email address: %s)\n", util.Deref(msg.GetSender().GetEmailAddress().GetName()), util.Deref(msg.GetSender().GetEmailAddress().GetAddress()))
fmt.Printf("Received: %s\n", msg.GetReceivedDateTime().Format(time.RFC3339))
} else {
fmt.Printf("Created: %s\n", msg.GetReceivedDateTime().Format(time.RFC3339))
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just a little improvement to message printing that I decided to make.

Share Credential: github.com/gptscript-ai/gateway-oauth2 as outlook.mail.manage with GPTSCRIPT_GRAPH_MICROSOFT_COM_BEARER_TOKEN as env and microsoft365 as integration and "Mail.Read Mail.ReadWrite Mail.Send User.Read offline_access" as scope
Type: context

#!sys.echo

You have access to a collection of operations in the Microsoft Outlook Mail API.
When you provide the contents of an email, never print it in HTML. Convert to Markdown instead.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This part of the prompt is not needed anymore because we handle the conversion to plaintext programmatically. The LLM won't see the HTML.

@g-linville g-linville merged commit bbc20fc into obot-platform:main Aug 29, 2024
@g-linville g-linville deleted the update-mail-tools branch August 29, 2024 17:30
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