Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions cookbook/91_tools/googleslides_tools.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"""Google Slides Tools

Requirements:
1. `pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib`
2. Set environment variables:
export GOOGLE_CLIENT_ID=your_client_id
export GOOGLE_CLIENT_SECRET=your_client_secret
export GOOGLE_PROJECT_ID=your_project_id
"""

from agno.agent import Agent
from agno.tools.google.slides import GoogleSlidesTools

agent = Agent(
tools=[GoogleSlidesTools()],
markdown=True,
)

agent.print_response(
"Create a presentation titled 'Team Update' and add a slide with title 'Agenda' and body 'Project status, timelines, next steps'",
stream=True,
)
5 changes: 5 additions & 0 deletions libs/agno/agno/tools/google/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__all__ = [
"GoogleSlidesTools",
"GoogleBigQueryTools",
"GoogleCalendarTools",
"GoogleDriveTools",
Expand All @@ -9,6 +10,10 @@


def __getattr__(name: str):
if name == "GoogleSlidesTools":
from agno.tools.google.slides import GoogleSlidesTools

return GoogleSlidesTools
if name == "GoogleBigQueryTools":
from agno.tools.google.bigquery import GoogleBigQueryTools

Expand Down
Loading