100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
NEW PROJ: autogen agent with magneticOne
Madhu431bb6fc487d
diff --git a/ai_agent_tutorials/ai_magenticag2_agent/main.py b/ai_agent_tutorials/ai_magenticag2_agent/main.pynew file mode 100644index 00000000..e477d4b2--- /dev/null+++ b/ai_agent_tutorials/ai_magenticag2_agent/main.py@@ -0,0 +1,16 @@+import asyncio+from autogen_ext.models.openai import OpenAIChatCompletionClient+from autogen_ext.teams.magentic_one import MagenticOne+from autogen_agentchat.ui import Console+++async def example_usage():+ client = OpenAIChatCompletionClient(model="gpt-4o", api_key="")+ m1 = MagenticOne(client=client)+ task = "Write a Python script to fetch data from an API."+ result = await Console(m1.run_stream(task=task))+ print(result)+++if __name__ == "__main__":+ asyncio.run(example_usage())\ No newline at end of filediff --git a/ai_agent_tutorials/ai_magenticag2_agent/requirements.txt b/ai_agent_tutorials/ai_magenticag2_agent/requirements.txtnew file mode 100644index 00000000..1d07d36c--- /dev/null+++ b/ai_agent_tutorials/ai_magenticag2_agent/requirements.txt@@ -0,0 +1,3 @@+autogen-agentchat+autogen-ext+playwright install --with-deps chromium\ No newline at end of filediff --git a/ai_agent_tutorials/ai_magenticag2_agent/test.py b/ai_agent_tutorials/ai_magenticag2_agent/test.pynew file mode 100644index 00000000..e69de29b