mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-04 12:39:32 +00:00
langchain[patch], experimental[patch], docs: update tools imports (#15433)
This commit is contained in:
@@ -88,7 +88,7 @@ runnable = RemoteRunnable("http://localhost:8000/openai-functions-agent-gmail")
|
||||
## Customize Auth
|
||||
|
||||
```
|
||||
from langchain.tools.gmail.utils import build_resource_service, get_gmail_credentials
|
||||
from langchain_community.tools.gmail.utils import build_resource_service, get_gmail_credentials
|
||||
|
||||
# Can review scopes here https://developers.google.com/gmail/api/auth/scopes
|
||||
# For instance, readonly scope is 'https://www.googleapis.com/auth/gmail.readonly'
|
||||
|
@@ -4,8 +4,8 @@ from typing import List, Tuple
|
||||
from langchain.agents import AgentExecutor
|
||||
from langchain.agents.format_scratchpad import format_to_openai_function_messages
|
||||
from langchain.agents.output_parsers import OpenAIFunctionsAgentOutputParser
|
||||
from langchain.tools.render import format_tool_to_openai_function
|
||||
from langchain_community.chat_models import ChatOpenAI
|
||||
from langchain_community.tools.convert_to_openai import format_tool_to_openai_function
|
||||
from langchain_community.tools.gmail import (
|
||||
GmailCreateDraft,
|
||||
GmailGetMessage,
|
||||
|
Reference in New Issue
Block a user