pip install praisonaiagents langchain-community wikipedia youtube-search
2
Set API Key
Set your OpenAI API key as an environment variable in your terminal:
Copy
export OPENAI_API_KEY=your_api_key_here
3
Create a file
Create a new file app.py with the basic setup:
Copy
from praisonaiagents import Agentfrom langchain_community.utilities import WikipediaAPIWrapperwiki_agent = Agent( instructions="You are a wikipedia research Agent", tools=[WikipediaAPIWrapper])wiki_agent.start("Research 'Artificial Intelligence' on Wikipedia")
4
Start Agents
Type this in your terminal to run your agents:
Copy
python app.py
1
Install Package
(Upcoming Feature)
Install the PraisonAI package:
Copy
pip install "praisonai"
2
Set API Key
Set your OpenAI API key as an environment variable in your terminal:
Copy
export OPENAI_API_KEY=your_api_key_here
3
Create a file
Create a new file agents.yaml with the basic setup:
Copy
framework: praisonaiprocess: sequentialagents: # Canonical: use 'agents' instead of 'roles' researcher: name: SearchAgent role: Research Assistant goal: Search for information from multiple sources instructions: # Canonical: use 'instructions' instead of 'backstory' I am an AI assistant that can search YouTube and Wikipedia. tools: - youtube_search - wikipedia tasks: search_task: name: search_task description: Search for information about 'AI advancements' on both YouTube and Wikipedia expected_output: Combined information from YouTube videos and Wikipedia articles
from praisonaiagents import Agent, Agentsfrom langchain_community.utilities import SerpAPIWrapperdata_agent = Agent(instructions="Search about AI job trends in 2025", tools=[SerpAPIWrapper])editor_agent = Agent(instructions="Write a blog article")agents = Agents(agents=[data_agent, editor_agent])agents.start()
pip install praisonaiagents langchain-community wikipedia
2
Set API Key
Set your OpenAI API key as an environment variable in your terminal:
Copy
export OPENAI_API_KEY=your_api_key_here
3
Create a file
Create a new file app.py with the basic setup:
Copy
from praisonaiagents import Agent, Task, Agentsfrom langchain_community.utilities import WikipediaAPIWrapper# Create an agent with Wikipedia toolagent = Agent( name="WikiAgent", role="Research Assistant", goal="Search Wikipedia for accurate information", backstory="I am an AI assistant specialized in Wikipedia research", tools=[WikipediaAPIWrapper], reflection=False)# Create a research tasktask = Task( name="wiki_search", description="Research 'Artificial Intelligence' on Wikipedia", expected_output="Comprehensive information from Wikipedia articles", agent=agent)# Create and start the workflowagents = Agents( agents=[agent], tasks=[task])agents.start()
4
Start Agents
Type this in your terminal to run your agents:
Copy
python app.py
1
Install Package
(Upcoming Feature)
Install the PraisonAI package:
Copy
pip install "praisonai"
2
Set API Key
Set your OpenAI API key as an environment variable in your terminal:
Copy
export OPENAI_API_KEY=your_api_key_here
3
Create a file
Create a new file agents.yaml with the basic setup:
Copy
framework: praisonaiprocess: sequentialagents: # Canonical: use 'agents' instead of 'roles' researcher: name: SearchAgent role: Research Assistant goal: Search for information from multiple sources instructions: # Canonical: use 'instructions' instead of 'backstory' I am an AI assistant that can search YouTube and Wikipedia. tools: - youtube_search - wikipedia tasks: search_task: name: search_task description: Search for information about 'AI advancements' on both YouTube and Wikipedia expected_output: Combined information from YouTube videos and Wikipedia articles