How shahzaibkaramat67-coder/langchain_pipliner_agent works
This is a command-line web-research assistant. A user submits a request; the pipeline repeatedly plans a search, URL research, or stop action, executes it, and evaluates whether the accumulated information is sufficient. Approved results are passed to a final-answer agent. The graph also shows the shared state, LLM client, and JSON response parsing. Source excerpts support the main orchestration and tool calls; the README is empty, so broader product capabilities are not documented.
Main entry points: pipliner.py Research loop · planner.py Action planner · agent.py LLM client · main.py CLI entry
Components 16
User interface
- CLI entry
main.py
Research workflow
- Research loop
pipliner.py - Pipeline state
state.py - Action planner
planner.py - Tool executor
executer.py - Sufficiency evaluator
evaluate.py - Final answer
final_answer.py
Research tools
- Web search
tools.py - Page research
tools.py - Tavily search
Agent support
- LLM client
agent.py - JSON parser
structrure_output.py - In-memory buffer
memory.py
Other components
- User
- Web pages
- Chat model API
Connections 19
- User → CLI entry: submits request
main.py - CLI entry → Research loop: starts workflow
main.py - CLI entry → Pipeline state: creates state
main.py - Research loop → Action planner: requests plan
pipliner.py - Research loop → Pipeline state: updates state
pipliner.py - Action planner → Pipeline state: reads state
planner.py - Action planner → LLM client: requests plan
planner.py - Action planner → JSON parser: parses response
planner.py - Research loop → Tool executor: executes plan
pipliner.py - Tool executor → Web search: dispatches search
executer.py - Tool executor → Page research: dispatches research
executer.py - Web search → Tavily search: queries
tools.py - Page research → Web pages: fetches pages
tools.py - Research loop → Sufficiency evaluator: evaluates result
pipliner.py - Sufficiency evaluator → LLM client: requests evaluation
evaluate.py - Sufficiency evaluator → JSON parser: parses response
evaluate.py - Research loop → Final answer: formats approved result
pipliner.py - Final answer → LLM client: requests answer
final_answer.py - LLM client → Chat model API: sends chat request
agent.py