framework
하는 일
Atomic Agents 프레임워크의 주요 구성 요소와 각 부분의 참고 메모를 정리한 개요입니다. 타입이 있는 입력과 출력으로 LLM 앱을 만드는 Python 개발자를 위한 스킬입니다.
사용하는 경우
- ✓개발자의 프로젝트가 Atomic Agents 프레임워크를 가져와서 올바른 패턴이 필요할 때.
- ✓개발자가 에이전트, 도구, 컨텍스트 제공자가 어떻게 맞물리는지 묻고 싶을 때.
- ✓개발자가 AI 제공자를 Atomic Agents 프로젝트에 연결하려 할 때.
스킬 링크
https://github.com/Eigenwise/atomic-agents/blob/main/claude-plugin/atomic-agents/skills/framework/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 Atomic Agents 프로젝트에서 에이전트, 도구, 스키마는 어떻게 맞물리나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 에이전트, 에이전트 설정, 스키마, 도구 같은 핵심 클래스를 나열하고, 작업에 필요한 각 영역의 집중된 참고 메모를 가리킵니다.
기술 내용 (원본 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을 기반으로 한다고 말합니다.
여러 에이전트 구성도 다루나요?
네. 스킬은 여러 에이전트 간의 오케스트레이션을 프레임워크의 일부로 언급합니다.
상세 정보
작성자의 원본 설명
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
- 업데이트
- 2026. 10. 29.
댓글
- …
이 저장소의 다른 스킬
create-atomic-agent
6.3k에이전트가 타입이 지정된 입력과 출력, 시스템 프롬프트, 선택한 AI 제공자로 새 Atomic Agents 에이전트를 만드는 데 도움을 줍니다.
create-atomic-context-provider
6.3k에이전트에 컨텍스트 제공자를 추가해, 현재 시간이나 검색된 문서 같은 최신 정보가 프롬프트에 나타나도록 돕습니다.
create-atomic-schema
6.3k에이전트와 도구를 위한 타입이 있는 입력 및 출력 스키마를 명확한 필드 설명과 함께 설계하도록 돕습니다.
create-atomic-tool
6.3k에이전트가 호출할 수 있는 API 래퍼나 계산기 같은, 타입이 있는 Atomic Agents 도구를 만들도록 돕습니다.