-
-
Notifications
You must be signed in to change notification settings - Fork 505
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align .py files with existing .mdx files
- Loading branch information
1 parent
b9c5211
commit 0a8fbc8
Showing
6 changed files
with
12 additions
and
16 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
docs/tools/external/duckduckgo-search.py → docs/tools/external/duckduckgo-search.mdx
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,7 +1,9 @@ | ||
```python | ||
from praisonaiagents import Agent, PraisonAIAgents | ||
from praisonaiagents.tools import duckduckgo | ||
|
||
data_agent = Agent(instructions="Search and Read Research Papers on DNA Mutation", tools=[duckduckgo]) | ||
editor_agent = Agent(instructions="Write a scientifically researched outcome and findings about DNA Mutation") | ||
agents = PraisonAIAgents(agents=[data_agent, editor_agent]) | ||
agents.start() | ||
``` |
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
4 changes: 3 additions & 1 deletion
4
docs/tools/external/serp-search.py → docs/tools/external/serp-search.mdx
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,7 +1,9 @@ | ||
```python | ||
from praisonaiagents import Agent, PraisonAIAgents | ||
from langchain_community.utilities import SerpAPIWrapper | ||
|
||
data_agent = Agent(instructions="Search about decline of recruitment across various industries with the rise of AI", tools=[SerpAPIWrapper]) | ||
editor_agent = Agent(instructions="Write a blog article pointing out the jobs most at rish due to the rise of AI") | ||
agents = PraisonAIAgents(agents=[data_agent, editor_agent]) | ||
agents.start() | ||
agents.start() | ||
``` |
2 changes: 2 additions & 0 deletions
2
docs/tools/external/wikipedia-search.py → docs/tools/external/wikipedia-search.mdx
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,7 +1,9 @@ | ||
```python | ||
from praisonaiagents import Agent, PraisonAIAgents | ||
from langchain_community.utilities import WikipediaAPIWrapper | ||
|
||
data_agent = Agent(instructions="Gather all of Messi's record in LaLiga", tools=[WikipediaAPIWrapper]) | ||
summarise_agent = Agent(instructions="Summarize the data into a well structured format") | ||
agents = PraisonAIAgents(agents=[data_agent, summarise_agent]) | ||
agents.start() | ||
``` |