AdithyaVardan commited on
Commit
54f37d0
·
1 Parent(s): ed33951

Fix Gemini INVALID_ARGUMENT: remove empty string from notion filter_type enum

Browse files
toolsforgitnotionslack/tools/notion_tools.py CHANGED
@@ -154,11 +154,11 @@ NOTION_TOOLS = [
154
  "description": (
155
  "Search Notion for pages and databases by keyword. "
156
  "Always call this FIRST to get page IDs before calling notion_read_page. "
157
- "filter_type: 'page', 'database', or '' (both)."
158
  ),
159
  "parameters": {"type": "object", "required": ["query"], "properties": {
160
  "query": {"type": "string"},
161
- "filter_type": {"type": "string", "enum": ["page", "database", ""]},
162
  }},
163
  }},
164
  {"type": "function", "function": {
 
154
  "description": (
155
  "Search Notion for pages and databases by keyword. "
156
  "Always call this FIRST to get page IDs before calling notion_read_page. "
157
+ "filter_type: 'page' or 'database'. Omit to search both."
158
  ),
159
  "parameters": {"type": "object", "required": ["query"], "properties": {
160
  "query": {"type": "string"},
161
+ "filter_type": {"type": "string", "enum": ["page", "database"]},
162
  }},
163
  }},
164
  {"type": "function", "function": {