mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-09 23:12:38 +00:00
Add image (#14611)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import os
|
||||
from typing import List, Tuple
|
||||
|
||||
from langchain.agents import AgentExecutor
|
||||
@@ -37,9 +38,10 @@ tools = [
|
||||
GmailGetMessage(),
|
||||
GmailGetThread(),
|
||||
GmailSearch(),
|
||||
GmailSendMessage(),
|
||||
search_engine,
|
||||
]
|
||||
if os.environ.get("GMAIL_AGENT_ENABLE_SEND") == "true":
|
||||
tools.append(GmailSendMessage())
|
||||
current_user = (
|
||||
build_resource_service().users().getProfile(userId="me").execute()["emailAddress"]
|
||||
)
|
||||
|
Reference in New Issue
Block a user