From 804106af115dde0e40fe4c5dee317c931db52d97 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Wed, 18 Mar 2026 03:36:02 +0530 Subject: [PATCH] refactor: clarify usage instructions for Google Drive file HITL creation tool --- .../app/agents/new_chat/tools/google_drive/create_file.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/surfsense_backend/app/agents/new_chat/tools/google_drive/create_file.py b/surfsense_backend/app/agents/new_chat/tools/google_drive/create_file.py index 6e0bfd28a..9371b1827 100644 --- a/surfsense_backend/app/agents/new_chat/tools/google_drive/create_file.py +++ b/surfsense_backend/app/agents/new_chat/tools/google_drive/create_file.py @@ -33,11 +33,12 @@ def create_create_google_drive_file_tool( Use this tool when the user explicitly asks to create a new document or spreadsheet in Google Drive. The user MUST specify a topic before - you call this tool. If the request is vague, ask what the file should - contain. Never call this tool without a clear topic from the user. + you call this tool. If the request does not contain a topic (e.g. + "create a drive doc" or "make a Google Sheet"), ask what the file + should be about. Never call this tool without a clear topic from the user. Args: - name: The file name (without extension). Infer from the user's request. + name: The file name (without extension). file_type: Either "google_doc" or "google_sheet". content: Optional initial content. Generate from the user's topic. For google_doc, provide markdown text. For google_sheet, provide CSV-formatted text.