Skip to content

Commit

Permalink
Merge pull request #205 from phidatahq/add-tool-cookbooks-phi-732
Browse files Browse the repository at this point in the history
add-tool-cookbooks-phi-732
  • Loading branch information
ashpreetbedi authored May 1, 2024
2 parents 543f25a + 289fca5 commit 129da26
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cookbook/tools/email_tools.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from phi.assistant import Assistant
from phi.tools.email import EmailTools

receiver_email = "<receiver_email>"
sender_email = "<sender_email>"
sender_name = "<sender_name>"
sender_passkey = "<sender_passkey>"

assistant = Assistant(tools=[EmailTools(receiver_email=receiver_email, sender_email=sender_email, sender_name=sender_name, sender_passkey=sender_passkey)])

assistant.print_response("send an email to <receiver_email>")
5 changes: 5 additions & 0 deletions cookbook/tools/tavily_tools.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from phi.assistant import Assistant
from phi.tools.tavily import TavilyTools

assistant = Assistant(tools=[TavilyTools()], show_tool_calls=True)
assistant.print_response("Search tavily for 'language models'", markdown=True)
5 changes: 5 additions & 0 deletions cookbook/tools/website_tools.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from phi.assistant import Assistant
from phi.tools.website import WebsiteTools

assistant = Assistant(tools=[WebsiteTools()], show_tool_calls=True)
assistant.print_response("Search web page: 'https://docs.phidata.com/introduction'", markdown=True)

0 comments on commit 129da26

Please sign in to comment.