How shahzaibkaramat67-coder/sdk_correction_agent works
This is a command-line research assistant: a user submits questions, the agent asks a language model whether to answer directly or invoke search/research, and the final response is printed and retained in conversation memory. Search gathers web-result metadata; research fetches and extracts page text from those sources. The map includes the documented tool-schema branch and the separate search and research capabilities. Source excerpts show the main calls; external service relationships are limited to integrations visible in code.
Main entry points: run_Agent.py Agent loop · model.py Model client · enterpoint.py Conversation loop · memory.py Conversation memory
Components 14
Interaction
- CLI launcher
main.py - Conversation loop
enterpoint.py
Agent and memory
- Agent loop
run_Agent.py - Conversation memory
memory.py - Model client
model.py
Model and research tools
- Tool schema access
too_schema.py - Tool definitions
TOOL_REGISTRY.py - Web search
Tools.py - Source research
Tools.py - Page extraction
Tools.py
Other components
- User
- OpenAI-compatible API
- DuckDuckGo search
- Web pages
Connections 16
- User → Conversation loop: submits question
enterpoint.py - CLI launcher → Conversation loop: starts
main.py - Conversation loop → Conversation memory: records messages
enterpoint.py - Conversation loop → Agent loop: calls
enterpoint.py - Agent loop → Model client: requests completion
run_Agent.py - Agent loop → Conversation memory: reads and updates
run_Agent.py - Model client → Conversation memory: reads history
model.py - Model client → Tool schema access: gets tool definitions
model.py - Tool schema access → Tool definitions: imports definitions
too_schema.py - Model client → OpenAI-compatible API: sends completion request
model.py - Agent loop → Web search: dispatches search
run_Agent.py - Agent loop → Source research: dispatches research
run_Agent.py - Web search → DuckDuckGo search: queries
Tools.py - Source research → Conversation memory: reads source results
run_Agent.py - Source research → Page extraction: fetches source pages
Tools.py - Page extraction → Web pages: requests page content
Tools.py