mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-11 11:41:38 -10:00
13 lines
489 B
Python
13 lines
489 B
Python
# praisonai: skip=true
|
|
# pip install langchain-community google-search-results
|
|
# export SERPAPI_API_KEY=your_api_key_here
|
|
# export OPENAI_API_KEY=your_api_key_here
|
|
|
|
from praisonaiagents import Agent, AgentTeam
|
|
from langchain_community.utilities import SerpAPIWrapper
|
|
|
|
data_agent = Agent(instructions="Search about AI job trends in 2025", tools=[SerpAPIWrapper])
|
|
editor_agent = Agent(instructions="Write a blog article")
|
|
|
|
agents = AgentTeam(agents=[data_agent, editor_agent])
|
|
agents.start() |