instruct llm not to retry on insufficient_permissions

This commit is contained in:
CREDO23 2026-02-24 12:45:25 +02:00
parent 24aa7c51a4
commit 465233d4c6
2 changed files with 7 additions and 2 deletions

View file

@ -48,8 +48,11 @@ def create_create_google_drive_file_tool(
- web_view_link: URL to open the file (if success)
- message: Result message
IMPORTANT: If status is "rejected", the user explicitly declined the action.
Respond with a brief acknowledgment and do NOT retry or suggest alternatives.
IMPORTANT:
- If status is "rejected", the user explicitly declined the action.
Respond with a brief acknowledgment and do NOT retry or suggest alternatives.
- 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.
Examples:
- "Create a Google Doc called 'Meeting Notes'"

View file

@ -40,6 +40,8 @@ def create_trash_google_drive_file_tool(
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 file name 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 the action.
Examples:
- "Delete the 'Meeting Notes' file from Google Drive"