import asyncio
from dedalus_labs import AsyncDedalus, DedalusRunner
from dotenv import load_dotenv
load_dotenv()
async def main():
client = AsyncDedalus()
runner = DedalusRunner(client)
result = await runner.run(
input="""Research the latest developments in AI agents for 2024:
1. Find recent news articles about AI agent breakthroughs
2. Search for academic papers on multi-agent systems
3. Look up companies working on AI agents
4. Summarize the key trends with relevant links""",
model="openai/gpt-4o-mini",
mcp_servers=[
"joerup/exa-mcp", # Semantic search
"tsion/brave-search-mcp" # Web search
]
)
print(result.final_output)
if __name__ == "__main__":
asyncio.run(main())