█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

MetaGPT

एक multi-agent framework जो एक ही prompt से पूरी LLM-आधारित software company का काम करता है

Multi-Agent Systemsओपन सोर्स
भाषा
Python
लाइसेंस
MIT
$pip install --upgrade metagpt
संक्षेप में

MetaGPT क्या है?

MetaGPT एक multi-agent framework जो एक ही prompt से पूरी LLM-आधारित software company का काम करता है. यह Agents & Automation टूल्स की Multi-Agent Systems श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और MIT लाइसेंस के तहत है। शुरू करने के लिए: metaGPT install करें.

सारांश

MetaGPT एक ओपन सोर्स framework है जो software company को LLM-आधारित agents की टीम के रूप में मॉडल करता है। आप इसे एक लाइन की requirement देते हैं, और यह उस request को product manager, architect, project manager और engineer जैसी roles से गुज़ारकर user stories, requirements, data structures, APIs, design docs और code तैयार करता है।

यह उन developers और researchers के लिए है जो एक ही LLM call को हाथ से चलाने के बजाय multi-agent collaboration के साथ प्रयोग करना चाहते हैं। इसका मूल विचार है `Code = SOP(Team)`: standard operating procedures को इस तरह encode किया जाता है कि हर agent जानता है कि काम अगले को क्या सौंपना है, जिससे workflow संरचित रहता है।

Agent frameworks की दुनिया में MetaGPT multi-agent श्रेणी में आता है। यह prompt से पूरा project generate कर सकता है, लेकिन इसमें Data Interpreter और अलग-अलग roles जैसे building blocks भी मिलते हैं, ताकि आप अपने agents और workflows खुद बना सकें।

यह क्या करता है

  • एक लाइन की requirement को ./workspace के अंदर बने generated repo में बदलता है
  • Software company के आधार पर बने built-in roles: product manager, architect, project manager और engineer
  • User stories, competitive analysis, requirements, data structures और APIs जैसे बीच के artifacts बनाता है
  • CLI से या Python library के रूप में generate_repo और ProjectRepo के जरिए काम करता है
  • Data-analysis tasks चलाने और plots बनाने के लिए Data Interpreter role
  • एक ही config2.yaml file के जरिए configurable LLM backend (OpenAI, Azure, Ollama, Groq और अन्य)

शुरू करें

MetaGPT को pip से install करें, फिर अपनी LLM config set करें, और फिर इसे CLI से या library के रूप में चलाएं। इसके लिए Python 3.9 या उससे नया, लेकिन 3.12 से पहले का version चाहिए।

MetaGPT install करें

PyPI से package install या upgrade करें। ध्यान दें: असली उपयोग से पहले Node और pnpm install कर लें, क्योंकि README इन्हें ज़रूरी बताता है।

bashbash
pip install --upgrade metagpt

Config initialize करें

~/.metagpt/config2.yaml पर config file generate करें, फिर उसे edit करके अपना LLM provider, model और API key set करें।

bashbash
metagpt --init-config

CLI से project generate करें

एक लाइन की requirement दें; MetaGPT ./workspace के अंदर resulting repo बना देता है।

bashbash
metagpt "Create a 2048 game"  # this will create a repo in ./workspace

इसे Python library की तरह इस्तेमाल करें

Project को programmatically बनाने के लिए generate_repo call करें और लौटाए गए ProjectRepo की जांच करें।

pythonpython
from metagpt.software_company import generate_repo
from metagpt.utils.project_repo import ProjectRepo

repo: ProjectRepo = generate_repo("Create a 2048 game")
print(repo)  # it will print the repo structure with files

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • एक वाक्य से छोटा app या game prototype करें और generated repo को शुरुआती बिंदु मानकर देखें
  • Research या पढ़ाने के लिए देखें कि multi-agent SOPs build को PM, architect और engineer roles में कैसे बांटते हैं
  • Data Interpreter role से data-analysis tasks चलाएं, जिसमें plots बनाना भी शामिल है
  • MetaGPT की roles के ऊपर अपने custom agents और multi-agent workflows बनाएं

How MetaGPT compares

MetaGPT alongside other open-source multi-agent systems tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Paperclip★ 119kएक सेल्फ-होस्टेड कंट्रोल प्लेन, जो AI एजेंट्स की टीम को कंपनी की तरह चलाता है, जिसमें ऑर्गनाइज़ेशन चार्ट, टास्क, बजट और अप्रूवल शामिल हैं
Ruflo★ 82.8kClaude Code और Codex के लिए एक एजेंट मेटा-हार्नेस
MetaGPT★ 71.6kएक multi-agent framework जो एक ही prompt से पूरी LLM-आधारित software company का काम करता है
AutoGen★ 62kऐसे multi-agent AI apps बनाएं जिनमें agents एक-दूसरे, tools और इंसानों के साथ बातचीत करें
CrewAI★ 61.4kRole-playing AI agents की टीमें बनाएं जो काम बांटें और एक लक्ष्य के लिए मिलकर काम करें
AgentScope★ 37.1kप्रोडक्शन में चलने वाले मल्टी-एजेंट ऐप्स बनाने के लिए एक Python फ़्रेमवर्क
OpenAI Agents SDK★ 31kMulti-agent workflows बनाने के लिए tools, handoffs और guardrails वाला हल्का Python SDK
A2A★ 26.8kअलग-अलग frameworks के बीच agent discovery और collaboration के लिए खुला Agent2Agent protocol