█

AI/TLDR

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

Upsonic

Python में ऑटोनॉमस और पारंपरिक AI एजेंट्स बनाएं

Agent Frameworks & Buildersओपन सोर्स
भाषा
Python
लाइसेंस
MIT
$uv pip install upsonic
संक्षेप में

Upsonic क्या है?

Upsonic Python में ऑटोनॉमस और पारंपरिक AI एजेंट्स बनाएं. यह Agents & Automation टूल्स की Agent Frameworks & Builders श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और MIT लाइसेंस के तहत है। शुरू करने के लिए: upsonic इंस्टॉल करें.

सारांश

Upsonic एक ओपन सोर्स Python फ्रेमवर्क है जिससे AI एजेंट्स बनाए जा सकते हैं। इसमें दो तरह के एजेंट्स शामिल हैं: ऑटोनॉमस एजेंट्स, जो कई चरणों वाले टास्क अपने आप चलाते हैं, और ज़्यादा पारंपरिक एजेंट्स, जिन्हें आप एक-एक टास्क करके चलाते हैं। आप जो चाहते हैं उसे एक Task के रूप में लिखते हैं और उसे एक Agent को सौंप देते हैं, जो language model और आपके दिए गए किसी भी tool को कॉल करता है।

यह उन Python डेवलपर्स के लिए है जो orchestration का बुनियादी ढांचा खुद बनाए बिना एजेंट्स को असली workflows में जोड़ना चाहते हैं। ऑटोनॉमस एजेंट्स फ़ाइल और shell operations को एक तय workspace तक सीमित रखते हैं, path traversal और खतरनाक commands को ब्लॉक करते हैं, इसलिए लॉग एनालिसिस या दूसरे system tasks के लिए इन्हें लगाना ज़्यादा सुरक्षित होता है।

एक सामान्य agent framework के रूप में, Upsonic में ज़रूरी बिल्डिंग ब्लॉक्स मौजूद हैं: model चुनना, कस्टम tools, MCP इंटीग्रेशन, पहले से बने community agents, और PDF और images से text निकालने के लिए एक वैकल्पिक OCR pipeline।

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

  • दो तरह के एजेंट्स: खुद से चलने वाले कई-चरणीय टास्क के लिए AutonomousAgent और चरण-दर-चरण पारंपरिक workflows के लिए Agent
  • टाइप किए गए Python functions पर सरल @tool डेकोरेटर से परिभाषित कस्टम tools
  • ऑटोनॉमस एजेंट्स के लिए सैंडबॉक्स्ड workspace, जो path traversal और खतरनाक shell commands को ब्लॉक करते हैं
  • पहले से बने, community द्वारा योगदान किए गए ऑटोनॉमस एजेंट्स, जो इंस्टॉल करते ही कुछ सेकंड में चल जाते हैं
  • बाहरी डेटा स्रोतों और सेवाओं से एजेंट्स को जोड़ने के लिए MCP tools इंटीग्रेशन
  • कई engines (EasyOCR, RapidOCR, Tesseract, PaddleOCR, DeepSeek OCR) वाला वैकल्पिक OCR pipeline

शुरू करें

Upsonic इंस्टॉल करें, फिर किसी टास्क पर ऑटोनॉमस या पारंपरिक एजेंट में से कोई एक चलाएं।

Upsonic इंस्टॉल करें

uv (या pip) से पैकेज इंस्टॉल करें।

bashbash
uv pip install upsonic
# pip install upsonic

पारंपरिक एजेंट चलाएं

एक model के साथ Agent बनाएं, अपना निर्देश Task में लपेटें, और print_do को कॉल करें।

pythonpython
from upsonic import Agent, Task

agent = Agent(model="anthropic/claude-sonnet-4-5", name="Stock Analyst Agent")

task = Task(description="Analyze the current market trends")

agent.print_do(task)

कस्टम tool जोड़ें

टाइप किए गए function पर @tool डेकोरेटर लगाएं और उसे tools argument के ज़रिए Task को पास करें।

pythonpython
from upsonic import Agent, Task
from upsonic.tools import tool

@tool
def sum_tool(a: float, b: float) -> float:
    """
    Add two numbers together.

    Args:
        a: First number
        b: Second number

    Returns:
        The sum of a and b
    """
    return a + b

task = Task(
    description="Calculate 15 + 27",
    tools=[sum_tool]
)

agent = Agent(model="anthropic/claude-sonnet-4-5", name="Calculator Agent")

result = agent.print_do(task)

ऑटोनॉमस एजेंट चलाएं

AutonomousAgent को एक model और एक workspace दें; फ़ाइल और shell operations उसी workspace तक सीमित रहेंगे।

pythonpython
from upsonic import AutonomousAgent, Task

agent = AutonomousAgent(
    model="anthropic/claude-sonnet-4-5",
    workspace="/path/to/logs"
)

task = Task("Analyze server logs and detect anomaly patterns")

agent.print_do(task)

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

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

  • सर्वर logs का विश्लेषण करने और anomaly patterns खोजने के लिए एक workspace पर ऑटोनॉमस एजेंट चलाएं
  • एक task-driven एजेंट बनाएं जो आपके अपने Python functions को tools के रूप में कॉल करे
  • वैकल्पिक OCR pipeline की मदद से scanned PDFs और images से text निकालें
  • MCP tools के ज़रिए एजेंट्स को बाहरी सेवाओं और डेटा स्रोतों से जोड़ें

How Upsonic compares

Upsonic alongside other open-source agent frameworks & builders tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
DeepSeek Harness★ 290kDeepSeek का ओपन एजेंट हार्नेस, जहाँ हर क्षमता एक प्लगइन है
AutoGPT★ 188kदोबारा इस्तेमाल होने वाले ब्लॉक्स से निरंतर AI एजेंट बनाएं, डिप्लॉय करें और चलाएं
DeerFlow★ 86.1kसब कुछ पहले से शामिल सुपर एजेंट हार्नेस, जिसमें स्किल्स, सब-एजेंट्स, सैंडबॉक्स और मेमोरी हैं
nanobot★ 50.5kWebUI, मेमोरी, MCP और चैट ऐप्स वाला सेल्फ-होस्टेड पर्सनल एजेंट रनटाइम
LangGraph★ 45.7kलंबे समय तक चलने वाले, stateful AI agents बनाने के लिए low-level orchestration framework
Agno★ 43.4kAI agent प्लेटफ़ॉर्म बनाने, चलाने और मैनेज करने के लिए Python SDK
AgentGPT★ 36.3kब्राउज़र में ही ऑटोनॉमस AI एजेंट बनाएं, कॉन्फ़िगर करें और डिप्लॉय करें
Upsonic★ 8kPython में ऑटोनॉमस और पारंपरिक AI एजेंट्स बनाएं