feat: route assistant email reading to native Gmail instead of Composio#628
Open
hrsvrn wants to merge 1 commit into
Open
feat: route assistant email reading to native Gmail instead of Composio#628hrsvrn wants to merge 1 commit into
hrsvrn wants to merge 1 commit into
Conversation
Expose the native Gmail stack (sync engine + cached per-thread LLM summaries) to the Copilot as builtin tools, and reroute prompts/skills so email reading, checking, searching, and summarizing no longer go through Composio: - New gmail-* builtin tools (gmail-checkConnection, gmail-listThreads, gmail-readThread, gmail-searchEmails) backed by sync_gmail snapshots, with LLM-friendly trimmed payloads and a connect-in-Settings payload (+ composioFallback flag) when native Google isn't connected. - sync_gmail: export getThreadSnapshot, searchThreadsLive, and fetchThreadLive for uncached threads surfaced by live search. - New read-emails skill: compose inbox overviews from cached summary/importance instead of re-reading bodies; Gmail q-operator search guidance; sync:true for freshness. - Instructions: nativeGmailConnected flag splits Gmail out of the Composio routing blocks; gmail tools line added; read-emails skill excluded from the catalog when not connected. - Invalidate the copilot instructions cache on Google connect, disconnect, and stale-scope invalidation so routing updates mid-session (Composio handler already did this). - composio-integration skill demoted for Gmail: fallback-only, GMAIL_FETCH_EMAILS example replaced with a Notion one. The gmail toolkit stays in CURATED_TOOLKITS for un-migrated users. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Expose the native Gmail stack (sync engine + cached per-thread LLM summaries) to the Copilot as builtin tools, and reroute prompts/skills so email reading, checking, searching, and summarizing no longer go through Composio: