Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,11 +41,11 @@ def setup_gmail_agent():
|
|
41 |
print("Fetching Gmail tools from Composio...")
|
42 |
# Get specific Gmail tools (Actions) you want the agent to use
|
43 |
gmail_tools = composio_toolset.get_tools(actions=[
|
44 |
-
Action.GMAIL_SEND_EMAIL,
|
45 |
-
|
46 |
-
Action.GMAIL_REPLY_TO_THREAD,
|
47 |
-
Action.GMAIL_FETCH_MESSAGE_BY_THREAD_ID,
|
48 |
-
Action.GMAIL_LIST_THREADS, # Good for getting recent conversations
|
49 |
# Action.GMAIL_FETCH_EMAILS, # More generic fetch if needed
|
50 |
])
|
51 |
print(f"Loaded {len(gmail_tools)} Gmail tools.")
|
|
|
41 |
print("Fetching Gmail tools from Composio...")
|
42 |
# Get specific Gmail tools (Actions) you want the agent to use
|
43 |
gmail_tools = composio_toolset.get_tools(actions=[
|
44 |
+
# Action.GMAIL_SEND_EMAIL,
|
45 |
+
Action.GMAIL_CREATE_EMAIL_DRAFT,
|
46 |
+
# Action.GMAIL_REPLY_TO_THREAD,
|
47 |
+
# Action.GMAIL_FETCH_MESSAGE_BY_THREAD_ID,
|
48 |
+
# Action.GMAIL_LIST_THREADS, # Good for getting recent conversations
|
49 |
# Action.GMAIL_FETCH_EMAILS, # More generic fetch if needed
|
50 |
])
|
51 |
print(f"Loaded {len(gmail_tools)} Gmail tools.")
|