Pular para o conteúdo
Skillpedia
Código em geral6,3 mil · #14241

framework

O que ela faz

É uma visão geral do framework Atomic Agents, com seus principais blocos de construção e as notas de referência de cada parte. É para desenvolvedores Python que criam apps de LLM com entradas e saídas tipadas.

Quando usar

  • ✓Quando o projeto de um desenvolvedor importa o framework Atomic Agents e ele precisa dos padrões corretos.
  • ✓Quando um desenvolvedor pergunta como agentes, ferramentas e provedores de contexto se encaixam.
  • ✓Quando um desenvolvedor quer conectar um provedor de IA a um projeto Atomic Agents.

Link da skill

https://github.com/Eigenwise/atomic-agents/blob/main/claude-plugin/atomic-agents/skills/framework/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/Eigenwise/atomic-agents/blob/main/claude-plugin/atomic-agents/skills/framework/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Como agentes, ferramentas e schemas se encaixam no meu projeto Atomic Agents?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill lista as classes centrais, como o agente, sua configuração, os schemas e as ferramentas, e aponta para notas de referência específicas de cada área que a tarefa exige.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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
Perguntas frequentes

O que é o Atomic Agents?

É um framework Python leve para criar apps de LLM com entradas e saídas tipadas e validadas.

Em que ele se apoia?

A skill diz que ele se apoia em Instructor e Pydantic.

Cobre configurações com vários agentes?

Sim. A skill menciona a orquestração entre agentes como parte do framework.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
6,3 mil
Posição no ranking
#14241
Licença
MIT
Atualizada em
29/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas