framework
यह क्या करती है
यह Atomic Agents फ़्रेमवर्क का सार है, उसके मुख्य बिल्डिंग ब्लॉक और हर हिस्से के संदर्भ नोट्स के साथ। यह टाइप्ड इनपुट और आउटपुट वाले LLM ऐप बनाने वाले Python डेवलपर्स के लिए है।
कब इस्तेमाल करें
- ✓जब डेवलपर के प्रोजेक्ट में Atomic Agents फ़्रेमवर्क इंपोर्ट हो और सही पैटर्न चाहिए।
- ✓जब डेवलपर पूछे कि एजेंट, टूल और context providers आपस में कैसे जुड़ते हैं।
- ✓जब डेवलपर Atomic Agents प्रोजेक्ट में AI प्रदाता जोड़ना चाहे।
Skill का लिंक
https://github.com/Eigenwise/atomic-agents/blob/main/claude-plugin/atomic-agents/skills/framework/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे Atomic Agents प्रोजेक्ट में एजेंट, टूल और schemas आपस में कैसे जुड़ते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह स्किल मुख्य classes जैसे एजेंट, उसकी config, schemas और टूल सूचीबद्ध करती है, और काम के हर क्षेत्र के लिए केंद्रित संदर्भ नोट्स की ओर इशारा करती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Atomic Agents Framework
Atomic Agents is a lightweight Python framework for building LLM applications with typed, structured input and output. It layers on top of Instructor and Pydantic so every interaction between user, agent, tool, and context is a validated schema.
This skill orients Claude on the framework and routes to focused reference files as the task requires.
Core abstractions
| Concept | Class | Role |
|---|---|---|
| Schema | BaseIOSchema |
Typed input/output contract — every agent/tool I/O is one |
| Agent | AtomicAgent[In, Out] |
LLM-backed transformer from input schema to output schema |
| Config | AgentConfig |
Wires client, model, history, prompt, roles, API params |
| Prompt | SystemPromptGenerator |
Three-section prompt: background, steps, output_instructions |
| History | ChatHistory |
Conversation state, serializable, token-counted |
| Tool | BaseTool[In, Out] |
Deterministic capability the agent can invoke |
| Context | BaseDynamicContextProvider |
Dynamic section injected into the system prompt at runtime |
All communication between these uses BaseIOSchema subclasses with docstring-required descriptions.
Canonical imports
from atomic_agents import (
AtomicAgent, AgentConfig,
BasicChatInputSchema, BasicChatOutputSchema,
BaseIOSchema, BaseTool, BaseToolConfig,
)
from atomic_agents.context import (
ChatHistory, Message,
SystemPromptGenerator, BaseDynamicContextProvider,
)
# Optional: MCP interop
from atomic_agents.connectors.mcp import fetch_mcp_tools, MCPTransportType
Do not use legacy paths like atomic_agents.lib.base.* or atomic_agents.agents.base_agent — those were retired. Import from the top-level package where possible.
Minimum viable agent
import os, instructor, openai
from atomic_agents import AtomicAgent, AgentConfig, BasicChatInputSchema, BasicChatOutputSchema
from atomic_agents.context import ChatHistory
client = instructor.from_openai(openai.OpenAI(api_key=os.environ["OPENAI_API_KEY"]))
agent = AtomicAgent[BasicChatInputSchema, BasicChatOutputSchema](
config=AgentConfig(
client=client,
model="gpt-5-mini",
history=ChatHistory(),
)
)
reply = agent.run(BasicChatInputSchema(chat_message="Hello"))
print(reply.chat_message)
AtomicAgent and BaseTool use PEP 695 generics — the type parameters carry runtime information, so write them explicitly and keep them accurate. Full runnable version: atomic-examples/quickstart/quickstart/1_0_basic_chatbot.py.
Targeted creation skills
For the four most common authoring tasks, dedicated atomic skills give a step-by-step workflow (clarify → write → verify → hand off) instead of just reference material. Prefer them when the user is actively building something specific.
| User intent | Atomic skill |
|---|---|
| "create a schema" / "design the input/output schema" | atomic-agents:create-atomic-schema |
"create an agent" / "add another agent" / "wire up an AtomicAgent" |
atomic-agents:create-atomic-agent |
"add a tool" / "wrap an API as a tool" / "build a BaseTool" |
atomic-agents:create-atomic-tool |
| "add a context provider" / "inject X into the prompt" / "wire up RAG" | atomic-agents:create-atomic-context-provider |
| "my agent is broken / crashing / returning garbage" + a traceback or error | atomic-agents:troubleshoot |
These skills auto-trigger on the matching phrasing. The reference files below are what they (and you) load for deeper material.
Decision routing
Pick the reference file that matches the task. Each is loaded only when read.
| Task | Reference |
|---|---|
| Design or validate an input/output schema | references/schemas.md |
| Build, configure, or run an agent | references/agents.md |
| Write a tool the agent will invoke | references/tools.md |
| Inject dynamic data into the system prompt | references/context-providers.md |
| Structure the system prompt | references/prompts.md |
| Coordinate multiple agents | references/orchestration.md |
| Manage conversation state and multi-agent memory | references/memory.md |
| Register telemetry, retries, or logging | references/hooks.md |
| Swap LLM provider or configure roles | [references/provi |
अक्सर पूछे जाने वाले सवाल
Atomic Agents क्या है?
यह LLM ऐप बनाने के लिए एक हल्का Python फ़्रेमवर्क है, जिसमें टाइप्ड और जाँचे गए इनपुट व आउटपुट होते हैं।
यह किस पर आधारित है?
स्किल कहती है कि यह Instructor और Pydantic पर आधारित है।
क्या इसमें मल्टी-एजेंट सेटअप शामिल हैं?
हाँ। स्किल फ़्रेमवर्क के हिस्से के रूप में एजेंटों के बीच orchestration का ज़िक्र करती है।
जानकारी
लेखक का मूल विवरण
Guide for the Atomic Agents Python framework — schemas, agents, tools, context providers, prompts, orchestration, and provider configuration. Use when code imports from `atomic_agents`, defines an `AtomicAgent`, `BaseTool`, or `BaseIOSchema`, or the user asks about multi-agent orchestration or LLM-provider wiring in an atomic-agents project.
repo: Eigenwise/atomic-agents
लोकप्रियता
- GitHub स्टार
- 6.3k
- रैंकिंग में स्थान
- #14241
- लाइसेंस
- MIT
- अपडेट की गई
- 29/10/2026
कमेंट
- …
इस repository की और skills
create-atomic-agent
6.3kआपके एजेंट को टाइप्ड इनपुट और आउटपुट, सिस्टम प्रॉम्प्ट और चुने गए AI प्रदाता के साथ नया Atomic Agents एजेंट बनाने में मदद करती है।
create-atomic-context-provider
6.3kआपके एजेंट को Atomic Agents एजेंट में context provider जोड़ने में मदद करती है, ताकि समय या मिली हुई दस्तावेज़ों जैसी ताज़ा जानकारी उसके प्रॉम्प्ट में दिखे।
create-atomic-schema
6.3kआपके एजेंट को Atomic Agents एजेंट और टूल के लिए साफ़ फ़ील्ड विवरण वाले टाइप्ड इनपुट और आउटपुट schemas डिज़ाइन करने में मदद करती है।
create-atomic-tool
6.3kआपके एजेंट को Atomic Agents ऐप के लिए टाइप्ड टूल बनाने में मदद करती है, जैसे API रैपर या कैलकुलेटर जिसे एजेंट बुला सके।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।