Google Drive API
.
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
GoogleDriveTools
and GoogleDriveWrapper
expects the credentials.json
file to be ~/.credentials/credentials.json
, but this is configurable by setting the GOOGLE_ACCOUNT_FILE
environment variable to your custom/path/to/credentials.json
.
The location of token.json
use the same directory (or use the parameter token_path
). Note that token.json
will be created automatically the first time you use the tool.
GoogleDriveSearchTool
can retrieve a selection of files with some requests.
By default, If you use a folder_id
, all the files inside this folder can be retrieved to Document
, if the name match the query.
"1yucgL9WGgWZdM1TOuKkeghlPizuzMYb5"
"1bfaMQ18_i56204VaQDVeAFpqEijJTgvurupdEDiaUQw"
root
is for your personal home.
Document
.
GoogleDriveAPIWrapper
.
But, the corresponding packages must installed.
create_react_agent
functionality to initialize a ReAct agent. You will also need to set up your OPEN_API_KEY (visit https://platform.openai.com) in order to access OpenAI’s chat models.