mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-28 02:23:53 +02:00
feat: enforce single invocation for tool actions across various services
- Added a guideline to ensure that each tool (Gmail, Google Calendar, Google Drive, Linear, Notion) is called only once per user request. - Updated documentation to clarify that the system will automatically select the most relevant match when multiple items share the same title or subject, enhancing user experience and preventing redundant calls.
This commit is contained in:
parent
0d47233580
commit
744ad1fa79
14 changed files with 49 additions and 0 deletions
|
|
@ -47,6 +47,11 @@ def create_trash_gmail_email_tool(
|
|||
to verify the email subject or check if it has been indexed.
|
||||
- If status is "insufficient_permissions", the connector lacks the required OAuth scope.
|
||||
Inform the user they need to re-authenticate and do NOT retry this tool.
|
||||
- ONLY call this tool ONCE per user request. The system automatically picks the
|
||||
most relevant match when multiple emails share the same subject. The user will
|
||||
see the exact email details (sender, date) in the approval card and can reject
|
||||
if it is not the right one. Do NOT call this tool multiple times for the same
|
||||
email subject.
|
||||
|
||||
Examples:
|
||||
- "Delete the email about 'Meeting Cancelled'"
|
||||
|
|
|
|||
|
|
@ -63,6 +63,10 @@ def create_update_gmail_draft_tool(
|
|||
Respond with a brief acknowledgment and do NOT retry or suggest alternatives.
|
||||
- If status is "not_found", relay the exact message to the user and ask them
|
||||
to verify the draft subject or check if it has been indexed.
|
||||
- ONLY call this tool ONCE per user request. The system automatically picks the
|
||||
most relevant match when multiple drafts share the same subject. The user will
|
||||
see the exact draft details in the approval card and can reject if it is not
|
||||
the right one. Do NOT call this tool multiple times for the same draft subject.
|
||||
- If status is "insufficient_permissions", the connector lacks the required OAuth scope.
|
||||
Inform the user they need to re-authenticate and do NOT retry the action.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue