drive
autogen.tools.experimental.google.drive.GoogleDriveToolkit
GoogleDriveToolkit
A tool map for Google Drive.
Initialize the Google Drive tool map.
Name | Description |
---|---|
credentials | Type: Credentials |
download_folder | Type: pathlib.Path | str |
exclude | Type: list[typing.Literal[‘list_drive_files_and_folders’, ‘download_file_from_drive’]] | None Default: None |
api_version | Type: str Default: ‘v3’ |
Static Methods
recommended_scopes
Return the recommended scopes manatory for using tools from this tool map.
Instance Attributes
tools
Get the list of tools in the set.
Instance Methods
get_tool
Get a tool from the set by name.
Name | Description |
---|---|
tool_name | The name of the tool to get. Type: str |
Type | Description |
---|---|
Tool | Tool: The tool with the given name. |
register_for_execution
Register the tools in the set with an agent for
Parameters:Name | Description |
---|---|
agent | The agent to register the tools with. Type: ConversableAgent |
register_for_llm
Register the tools in the set with an LLM agent.
Name | Description |
---|---|
agent | The LLM agent to register the tools with. Type: ConversableAgent |
remove_tool
Remove a tool from the set by name.
Name | Description |
---|---|
tool_name | The name of the tool to remove. Type: str |
set_tool
Set a tool in the set.
Name | Description |
---|---|
tool | The tool to set. Type: Tool |