-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from phidatahq/add-tool-cookbooks-phi-732
add-tool-cookbooks-phi-732
- Loading branch information
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |