troubleshoot
यह क्या करती है
यह Atomic Agents कोड की त्रुटियों की चरण-दर-चरण जाँच का मार्गदर्शन करती है, आम त्रुटि संदेशों को ज्ञात समाधानों से मिलाते हुए। यह उन डेवलपर्स के लिए है जिनका एजेंट क्रैश होता है या गलत नतीजे देता है।
कब इस्तेमाल करें
- ✓जब डेवलपर को एजेंट के आउटपुट schema से validation त्रुटि मिले।
- ✓जब डेवलपर के एजेंट का आउटपुट खाली या गलत रूप का हो।
- ✓जब फ़्रेमवर्क अपग्रेड करने के बाद डेवलपर को import त्रुटि मिले।
Skill का लिंक
https://github.com/Eigenwise/atomic-agents/blob/main/claude-plugin/atomic-agents/skills/troubleshoot/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे Atomic Agents ऐप में आउटपुट पर ValidationError आ रही है। यह traceback है। गड़बड़ी क्या है?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह स्किल पूरी त्रुटि और उसे पैदा करने वाला कोड माँगती है, संदेश को ज्ञात कारण से मिलाती है, सुधार लागू करती है और पुष्टि के लिए विफल उदाहरण दोबारा चलाती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Troubleshoot an Atomic Agents App
Diagnostic workflow for the "it's broken" moment. Most atomic-agents failures are one of a dozen known causes with mechanical fixes. Match the symptom, apply the fix, verify by re-running.
Workflow
- Capture the failure. Get the exact traceback or wrong-output sample plus the code that produces it (agent construction, schemas, client wiring). If the user pasted only a fragment of the error, ask for the full traceback before guessing.
- Match against the symptom table below. The quoted strings are the framework's real messages — match on them.
- Apply the fix and re-run the failing snippet. Do not declare the problem solved without a passing re-run.
- No match? Load the reference for the failing area (table at the bottom) and reason from there. For a whole-codebase audit rather than one failure, delegate to the
atomic-reviewersubagent instead.
Symptom table
Import and definition errors
| Symptom | Cause | Fix |
|---|---|---|
ImportError/ModuleNotFoundError on atomic_agents.lib.*, atomic_agents.agents.base_agent, or BaseAgent |
v1 import paths, removed in v2 | Import from the top level: from atomic_agents import AtomicAgent, AgentConfig, BaseIOSchema, BaseTool; context pieces from atomic_agents.context |
ValueError: <Name> must have a non-empty docstring to serve as its description at import time |
BaseIOSchema subclass without a docstring |
Add a docstring describing the schema — it flows into the LLM prompt, so write it for the model |
ValidationError when constructing AgentConfig, complaining about client |
Raw provider SDK client passed; AgentConfig.client requires an Instructor-wrapped client |
Wrap it: instructor.from_openai(...), instructor.from_anthropic(...), instructor.from_genai(...) |
TypeError about missing type parameters, or output typed as BasicChatOutputSchema when a custom schema was expected |
AtomicAgent instantiated without generics |
Write AtomicAgent[InputSchema, OutputSchema](config=...) — the type parameters carry runtime information (they drive Instructor's response_model) |
Provider errors at run time
| Symptom | Cause | Fix |
|---|---|---|
Anthropic error mentioning max_tokens is required |
Anthropic requires it per request | model_api_parameters={"max_tokens": 4096} on AgentConfig |
| Gemini error about invalid role / role ordering | Gemini names the assistant role model |
assistant_role="model" on AgentConfig; use instructor.from_genai(...) with mode=Mode.GENAI_TOOLS and match AgentConfig.mode |
Empty output, None fields, or JSON-parse noise on Groq / Ollama / MiniMax |
Provider needs JSON mode; factory and config modes disagree | Create the client with Mode.JSON and set mode=Mode.JSON on AgentConfig — the two must always match |
| Works on OpenAI, breaks on another provider with no code change | Provider quirks live in AgentConfig, not the agent |
Check the per-provider matrix in framework/references/providers.md |
Wrong or degraded behavior (no exception)
| Symptom | Cause | Fix |
|---|---|---|
Pydantic ValidationError from inside run() after retries |
Model can't satisfy the output schema | Improve field description=s and the schema docstring first; loosen over-tight constraints; only then consider a stronger model. Inspect attempts via the parse:error hook |
| Agent "forgets" earlier turns | Fresh ChatHistory created per call, or none passed |
Create one ChatHistory and reuse it across run() calls |
| Context/cost grows without bound in long sessions | Unbounded history | Set max_context_tokens on AgentConfig — oldest turns are trimmed automatically |
Every run() is slow before the LLM call even starts |
Blocking I/O in a context provider's get_info() |
get_info() runs on every run(); move fetching out, cache, or make the provider hold precomputed state |
history.load(...) "doesn't work" |
Called as a classmethod | load is an instance method that mutates in place: history = ChatHistory(); history.load(saved). dump() returns a JSON string |
MCP interop
| Symptom | Cause | Fix |
|---|---|---|
AttributeError: STREAMABLE_HTTP |
No such member | MCPTransportType.HTTP_STREAM (others: SSE, STDIO) |
| MCP tools fetch but calls fail | Transport/endpoint mismatch | See MCP section of [framework/references/tools.md](../framework/referen |
अक्सर पूछे जाने वाले सवाल
क्या पूरा त्रुटि संदेश चाहिए?
हाँ। स्किल कारण का अनुमान लगाने से पहले पूरा traceback माँगती है।
क्या यह पुष्टि करेगी कि सुधार काम करता है?
हाँ। स्किल समस्या हल मानने से पहले विफल स्निपेट दोबारा चलाने को कहती है।
अगर त्रुटि उसकी सूची में न हो तो?
स्किल विफल क्षेत्र का संदर्भ देखकर वहीं से तर्क करने को कहती है।
जानकारी
लेखक का मूल विवरण
Diagnose and fix a failing or misbehaving Atomic Agents app — import errors, schema validation failures, empty or malformed LLM output, provider role/mode errors, history and context problems, MCP transport errors. Use when the user reports an error, traceback, or wrong behavior in atomic-agents code, asks "why is my agent not working / crashing / returning garbage", or pastes a `ValidationError`, `ImportError`, or provider API error from an atomic-agents project.
repo: Eigenwise/atomic-agents
लोकप्रियता
- GitHub स्टार
- 6.3k
- रैंकिंग में स्थान
- #14243
- लाइसेंस
- 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 खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।