How shahzaibkaramat67-coder/topic_pipeline_agent works
This is an interactive article-generation application: a user enters a topic, and the program returns an approved, edited article. The pipeline creates and reviews an outline, writes and reviews an article, then edits and reviews the final version, retrying each stage with feedback when rejected. Each content stage builds a prompt and calls a shared language-model client. The README is empty; the graph follows the sampled code. json_hendler.py is imported but unused in the shown pipeline, so no runtime connection is asserted.
Main entry points: pipeline.py Article pipeline · model.py LLM client · main.py Interactive CLI · Filnal_prompt.py Prompt templater
Components 11
Workflow
- Interactive CLI
main.py - Article pipeline
pipeline.py - JSON helper
json_hendler.py
Content stages
- Outline creator
outliner.py - Content analyzer
analyzer.py - Article writer
writter.py - Article editor
editer.py
Prompt and AI
- Prompt templater
Filnal_prompt.py - LLM client
model.py
Other components
- User
- Configured LLM API
Connections 17
- User → Interactive CLI: enters topic
main.py - Interactive CLI → Article pipeline: runs
main.py - Article pipeline → Outline creator: creates outline
pipeline.py - Article pipeline → Content analyzer: checks drafts
pipeline.py - Article pipeline → Article writer: writes article
pipeline.py - Article pipeline → Article editor: edits article
pipeline.py - Outline creator → Prompt templater: builds prompt
outliner.py - Outline creator → LLM client: requests completion
outliner.py - Content analyzer → Prompt templater: builds prompt
analyzer.py - Content analyzer → LLM client: requests completion
analyzer.py - Article writer → Prompt templater: builds prompt
writter.py - Article writer → LLM client: requests completion
writter.py - Article editor → Prompt templater: builds prompt
editer.py - Article editor → LLM client: requests completion
editer.py - LLM client → Configured LLM API: sends completion request
model.py - Article pipeline → Interactive CLI: returns final article
main.py - Interactive CLI → User: prints result
main.py