-
Notifications
You must be signed in to change notification settings - Fork 17
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
Conversation
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]>
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)) | ||
} |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
No description provided.