█

AI/TLDR

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

Embabel

JVM एजेंट फ़्रेमवर्क जो हाथ से लिखे flow को फॉलो करने के बजाय लक्ष्यों की ओर typed actions की योजना बनाता है

Agent Frameworks & Buildersओपन सोर्स
भाषा
Kotlin
लाइसेंस
Apache-2.0
संक्षेप में

Embabel क्या है?

Embabel JVM एजेंट फ़्रेमवर्क जो हाथ से लिखे flow को फॉलो करने के बजाय लक्ष्यों की ओर typed actions की योजना बनाता है. यह Agents & Automation टूल्स की Agent Frameworks & Builders श्रेणी में आता है; ओपन सोर्स है, Kotlin में लिखा गया है और Apache-2.0 लाइसेंस के तहत है।

सारांश

Embabel (उच्चारण: Em-BAY-bel) JVM पर AI एजेंट लिखने के लिए एक ओपन सोर्स फ़्रेमवर्क है, जिसमें LLM कॉल्स को सामान्य कोड और typed domain model के साथ मिलाया जाता है। यह Kotlin में लिखा गया है, लेकिन इसे Java से भी स्वाभाविक रूप से पढ़ने लायक बनाया गया है। यह Spring और Spring AI पर बना है और Spring के निर्माता की ओर से आता है। इसकी अपनी तुलना के अनुसार: Spring AI Servlet API के स्तर पर है, और Embabel को उसके ऊपर Spring MVC जैसा बनाने का इरादा है।

जो इसे अलग बनाता है, वह है planning। आप अपने domain objects पर actions (steps, जो LLM को कॉल कर भी सकते हैं और नहीं भी), goals और conditions बताते हैं, और फ़्रेमवर्क एक non-LLM planner के ज़रिए सीक्वेंस खुद तय करता है। डिफ़ॉल्ट रूप से यह Goal-Oriented Action Planning इस्तेमाल करता है, जो game AI से ली गई तकनीक है, और खुले-अंत वाले कामों के लिए Utility AI भी उपलब्ध है। यह हर action के बाद दोबारा plan करता है, इसलिए नया action या goal जोड़ने से बिना state machine बदले सिस्टम की क्षमता बढ़ती है, और यह उन known steps को ऐसे क्रम में जोड़ सकता है जो developer ने कभी लिखा ही नहीं था।

एजेंट सामान्य Spring beans होते हैं, जिन पर `@Agent`, `@Action` और `@AchievesGoal` annotations लगे होते हैं (या वे Kotlin DSL में लिखे जाते हैं)। उनमें services हमेशा की तरह inject होती हैं और prompts loose maps की जगह typed objects लौटाते हैं, जिससे वे unit-testable रहते हैं। एक platform मांग पर एक एजेंट चला सकता है, user intent को classify करके एजेंट चुन सकता है, या अपने open mode में सभी ज्ञात goals और actions से एक नया एजेंट बना सकता है। Embabel MCP servers को tool groups के रूप में इस्तेमाल करता है, अपने एजेंट्स को MCP server या Google के A2A protocol के ज़रिए expose कर सकता है, और हर action को अपना model चुनने देता है: OpenAI, Anthropic, MiniMax, Z.ai, OCI Generative AI, या Ollama, Docker या LM Studio के ज़रिए local models। यह Apache-2.0 लाइसेंस के तहत है और Maven Central पर प्रकाशित है।

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

  • Strongly typed domain model पर actions, goals और conditions, जो Spring-style annotations या Kotlin DSL से लिखे जाते हैं
  • डिफ़ॉल्ट रूप से GOAP के साथ dynamic planning (Utility AI भी built in है) और हर action के बाद replanning, ताकि नए actions बिना flows दोबारा लिखे व्यवहार बढ़ाएँ
  • Focused, closed और open execution modes: सीधे एक एजेंट चलाने से लेकर, सभी ज्ञात goals से किसी request के लिए platform द्वारा एजेंट बनवाने तक
  • हर action के लिए model चुनने की सुविधा, ताकि सस्ते, शक्तिशाली और local LLMs को मिलाया जा सके: OpenAI, Anthropic, MiniMax, Z.ai, OCI Generative AI, Ollama, Docker models और LM Studio
  • MCP client और server सपोर्ट के साथ A2A integration, Spring Boot starters और observability tracing के साथ
  • Testing के लिए बनाया गया: fake operation contexts से unit tests बिना model कॉल किए prompts और hyperparameters की जाँच कर सकते हैं

शुरू करें

Embabel Spring Boot पर चलता है और Maven Central पर उपलब्ध है। डिफ़ॉल्ट सेटिंग्स `OPENAI_API_KEY` की अपेक्षा करती हैं; README सुझाता है कि `ANTHROPIC_API_KEY` भी सेट करें, क्योंकि कुछ उदाहरण दोनों का इस्तेमाल करते हैं।

टेम्पलेट से शुरू करें

GitHub पर Java या Kotlin agent template से repository बनाएँ ("Use this template"), या Embabel के project creator से project जनरेट करें। OpenAI key और Maven इंस्टॉल होने पर, README के अनुसार template एजेंट एक मिनट से कम में चल जाता है।

bashbash
uvx --from git+https://github.com/embabel/project-creator.git project-creator

या मौजूदा Spring Boot ऐप में starter जोड़ें

संस्करण 0.2.0 से starter बिना किसी अतिरिक्त repository के Maven Central से resolve होता है। स्थानीय Ollama endpoint पर हर model उपलब्ध कराने के लिए `embabel-agent-starter-ollama` भी जोड़ें।

xmlxml
<dependency>
    <groupId>com.embabel.agent</groupId>
    <artifactId>embabel-agent-starter</artifactId>
    <version>${embabel-agent.version}</version>
</dependency>

एक एजेंट लिखें

एजेंट एक Spring bean होता है। हर `@Action` method typed inputs लेता है और typed output लौटाता है। यहाँ एक LLM free text को domain object में बदलता है, और planner तब तक actions को जोड़ता है जब तक `@AchievesGoal` से चिह्नित action चलाने योग्य न हो जाए।

javajava
@Agent(description = "Find news based on a person's star sign")
public class StarNewsFinder {

    @Action
    public StarPerson extractStarPerson(UserInput userInput, Ai ai) {
        return ai
                .withLlm(OpenAiModels.GPT_41)
                .createObjectIfPossible(
                        "Create a person from this user input, extracting their name and star sign: "
                                + userInput.getContent(),
                        StarPerson.class);
    }

    // more @Action methods, then one annotated @AchievesGoal
}

Spring Shell में उदाहरण चलाएँ

Examples repository एक interactive shell शुरू करती है। `execute` (या `x`) मेल खाने वाला एजेंट चुनकर उसे चलाता है; `-p` prompts लॉग करता है और `-r` LLM responses लॉग करता है, और `chat` एक interactive session शुरू करता है।

bashbash
git clone https://github.com/embabel/embabel-agent-examples
cd embabel-agent-examples/scripts/kotlin
./shell.sh

# inside the shell
execute "Lynda is a Scorpio, find news for her" -p -r

अपने एजेंट्स को MCP पर expose करें

चल रहा Embabel platform अपने एजेंट्स को SSE पर MCP server के रूप में serve करता है, ताकि Claude Desktop जैसा client उन्हें call कर सके।

jsonjson
{
  "mcpServers": {
    "embabel": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "http://localhost:8080/sse"]
    }
  }
}

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

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

  • मौजूदा Spring application में agentic features जोड़ना, जो उसकी services, persistence और transactions को सीधे दोबारा इस्तेमाल कर सकें
A web page produced by the Tripper example agent: a road-trip plan from Antwerp to Bordeaux with a brief of the travellers' interests, an overview and a day-by-day itinerary with links and a photo.
Output of Tripper, Embabel's example travel-planner agent: a day-by-day itinerary built from the travellers' interests.Embabel README ↗
  • Multi-step flows, जैसे research, fact-checking या trip planning, जहाँ हर step जो पाता है उसके अनुसार steps का क्रम बदल सके
  • Planning-heavy actions के लिए एक शक्तिशाली hosted model और सरल extraction के लिए सस्ते या local models को मिलाना, जो हर action के लिए अलग-अलग चुने जाएँ
  • ऐसी टीमें जो चाहती हैं कि एजेंट्स को सामान्य JUnit tests से जाँचा जाए, जो prompts और outputs की पुष्टि करें

How Embabel compares

Embabel 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 एजेंट बनाएं, कॉन्फ़िगर करें और डिप्लॉय करें
Embabel★ 4.6kJVM एजेंट फ़्रेमवर्क जो हाथ से लिखे flow को फॉलो करने के बजाय लक्ष्यों की ओर typed actions की योजना बनाता है