-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
47 additions
and
76 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
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
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
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 |
---|---|---|
@@ -1,17 +1,8 @@ | ||
from phi.agent import Agent | ||
from phi.model.anthropic import Claude | ||
|
||
# agent = Agent( | ||
# llm=Claude(model="claude-3-haiku-20240307"), | ||
# description="You help people with their health and fitness goals.", | ||
# debug_mode=True, | ||
# ) | ||
# agent.print_response("Share a quick healthy breakfast recipe.", markdown=True) | ||
|
||
|
||
agent = Agent( | ||
model=Claude(model="claude-3-5-sonnet-20240620"), | ||
description="You help people with their health and fitness goals.", | ||
debug_mode=True, | ||
) | ||
agent.print_response("Share a quick healthy breakfast recipe.", 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 |
---|---|---|
@@ -1,15 +1,8 @@ | ||
from rich.pretty import pprint | ||
from phi.agent import Agent | ||
from phi.model.anthropic import Claude | ||
|
||
agent = Agent( | ||
model=Claude(model="claude-3-5-sonnet-20240620"), | ||
description="You help people with their health and fitness goals.", | ||
debug_mode=True, | ||
) | ||
# agent.print_response("Share a quick healthy breakfast recipe.", markdown=True, stream=False) | ||
|
||
|
||
response = agent.run("Share a quick healthy breakfast recipe.", markdown=True, stream=False) | ||
|
||
pprint(response) | ||
agent.print_response("Share a quick healthy breakfast recipe.", markdown=True, stream=False) |
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
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
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
from phi.assistant import Assistant | ||
from phi.agent import Agent | ||
from phi.tools.yfinance import YFinanceTools | ||
from phi.llm.anthropic import Claude | ||
from phi.model.anthropic import Claude | ||
|
||
assistant = Assistant( | ||
llm=Claude(model="claude-3-5-sonnet-20240620"), | ||
agent = Agent( | ||
model=Claude(model="claude-3-5-sonnet-20240620"), | ||
tools=[YFinanceTools(stock_price=True, analyst_recommendations=True, stock_fundamentals=True)], | ||
show_tool_calls=True, | ||
description="You are an investment analyst that researches stock prices, analyst recommendations, and stock fundamentals.", | ||
instructions=["Use tables to display data where possible."], | ||
markdown=True, | ||
# debug_mode=True, | ||
) | ||
# assistant.print_response("Share the NVDA stock price and analyst recommendations") | ||
assistant.print_response("Summarize fundamentals for TSLA") | ||
agent.print_response("Summarize fundamentals for TSLA") | ||
# agent.print_response("Share the NVDA stock price and analyst recommendations") |
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
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
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