-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
20 changed files
with
589 additions
and
765 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""Please install dependencies using: | ||
pip install openai duckduckgo-search newspaper4k lxml_html_clean agno | ||
""" | ||
import asyncio | ||
|
||
from agno.agent import Agent | ||
from agno.models.groq import Groq | ||
from agno.tools.duckduckgo import DuckDuckGoTools | ||
from agno.tools.newspaper4k import Newspaper4kTools | ||
|
||
agent = Agent( | ||
model=Groq(id="llama-3.3-70b-versatile"), | ||
tools=[DuckDuckGoTools(), Newspaper4kTools()], | ||
description="You are a senior NYT researcher writing an article on a topic.", | ||
instructions=[ | ||
"For a given topic, search for the top 5 links.", | ||
"Then read each URL and extract the article text, if a URL isn't available, ignore it.", | ||
"Analyse and prepare an NYT worthy article based on the information.", | ||
], | ||
markdown=True, | ||
show_tool_calls=True, | ||
add_datetime_to_instructions=True, | ||
) | ||
|
||
# -*- Print a response to the cli | ||
asyncio.run( | ||
agent.aprint_response("Simulation theory", stream=True) | ||
) |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.