framework
ما الذي تفعله
هي نظرة عامة على إطار Atomic Agents، مع لبناته الأساسية وملاحظات مرجعية لكل جزء. وهي موجهة لمطوّري بايثون الذين يبنون تطبيقات نماذج لغوية بمدخلات ومخرجات محددة الأنواع.
متى تستخدمها
- ✓عندما يستورد مشروع المطوّر إطار Atomic Agents ويحتاج إلى الأنماط الصحيحة.
- ✓عندما يسأل المطوّر كيف تتناسب الوكلاء والأدوات ومزوّدات السياق مع بعضها.
- ✓عندما يريد المطوّر ربط مزوّد ذكاء اصطناعي بمشروع Atomic Agents.
رابط المهارة
https://github.com/Eigenwise/atomic-agents/blob/main/claude-plugin/atomic-agents/skills/framework/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“كيف تتناسب الوكلاء والأدوات والمخططات في مشروع Atomic Agents الخاص بي؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تسرد المهارة الأصناف الأساسية مثل الوكيل وإعداده والمخططات والأدوات، وتشير إلى ملاحظات مرجعية مركّزة لكل مجال تحتاجه المهمة.
المحتوى التقني (ملف 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؟
هو إطار بايثون خفيف لبناء تطبيقات نماذج لغوية بمدخلات ومخرجات محددة الأنواع ومُتحقَّق منها.
ما الذي يبنى عليه؟
تقول المهارة إنه مبني على Instructor وPydantic.
هل يغطي إعدادات متعددة الوكلاء؟
نعم. تذكر المهارة تنسيق العمل بين الوكلاء ضمن الإطار.
التفاصيل
الوصف الأصلي من المؤلف
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
التعليقات
- …
المزيد من المهارات من هذا المستودع
create-atomic-agent
6.3kيساعد وكيلك على بناء وكيل جديد في Atomic Agents بمدخلات ومخرجات مُحددة الأنواع، وموجّه نظام، ومزوّد ذكاء اصطناعي مختار.
create-atomic-context-provider
6.3kيساعد وكيلك على إضافة مزوّد سياق إلى وكيل Atomic Agents، حتى تظهر تفاصيل حديثة مثل الوقت أو المستندات المسترجعة في موجّهه.
create-atomic-schema
6.3kيساعد وكيلك على تصميم مخططات مدخلات ومخرجات مُحددة الأنواع لوكلاء وأدوات Atomic Agents، مع أوصاف واضحة للحقول.
create-atomic-tool
6.3kيساعد وكيلك على بناء أداة مُحددة الأنواع لتطبيق Atomic Agents، مثل غلاف لواجهة برمجية أو آلة حاسبة يستطيع الوكيل استدعاءها.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.