How cjapysql/cad-agentic-workflow-mvp works
This prototype turns structured CAD document data into refined section patches, extracted symbol/device/control-point information, and a per-point analysis table. The user workflow starts at the CLI (or the public run_workflow API), classifies common-information and drawing documents, prepares patches with a self-correction loop, aggregates information, and reasons about connected devices. The implementation uses a deterministic mock reasoner by default; DXF parsing, rendering, and hosted model calls are not present. Relationships below follow the README and shown workflow/agent calls; unsampled implementation details are not inferred.
Main entry points: workflow.py Workflow runner · cli.py CLI input/output · agents.py Self-correction loop · reasoners.py Mock reasoner / interface
Components 18
Entry and orchestration
- CLI input/output
agentic_cad_workflow/cli.py - Workflow runner
agentic_cad_workflow/workflow.py - Document classifier
agentic_cad_workflow/agents.py
Patch refinement
- Patch criteria
agentic_cad_workflow/agents.py - Section splitter
agentic_cad_workflow/agents.py - Self-correction loop
agentic_cad_workflow/agents.py - Patch evaluator
agentic_cad_workflow/agents.py - Strategy planner
agentic_cad_workflow/agents.py - Patch modifier
agentic_cad_workflow/agents.py
Information extraction
- Common-info aggregator
agentic_cad_workflow/agents.py - Drawing-info aggregator
agentic_cad_workflow/agents.py - Extraction merger
agentic_cad_workflow/agents.py - Sample documents and rules
agentic_cad_workflow/sample_data.py
Inference and output
- Detailed inference
agentic_cad_workflow/agents.py - Mock reasoner / interface
agentic_cad_workflow/reasoners.py - Workflow result
agentic_cad_workflow/models.py
Data and model boundary
- Workflow data models
agentic_cad_workflow/models.py
Other components
- CLI user
Connections 23
- CLI user → CLI input/output: runs
README.md - CLI input/output → Sample documents and rules: loads default data
agentic_cad_workflow/cli.py - CLI input/output → Workflow runner: calls
agentic_cad_workflow/cli.py - Workflow runner → Document classifier: classifies documents
agentic_cad_workflow/workflow.py - Workflow runner → Common-info aggregator: aggregates common data
agentic_cad_workflow/workflow.py - Workflow runner → Patch criteria: learns criteria
agentic_cad_workflow/workflow.py - Workflow runner → Section splitter: creates patches
agentic_cad_workflow/workflow.py - Workflow runner → Self-correction loop: refines patches
agentic_cad_workflow/workflow.py - Workflow runner → Drawing-info aggregator: aggregates drawing data
agentic_cad_workflow/workflow.py - Workflow runner → Extraction merger: combines extractions
agentic_cad_workflow/workflow.py - Workflow runner → Detailed inference: analyzes drawings
agentic_cad_workflow/workflow.py - Workflow runner → Mock reasoner / interface: defaults to
agentic_cad_workflow/workflow.py - Workflow runner → Sample documents and rules: uses tacit rules
agentic_cad_workflow/workflow.py - Self-correction loop → Patch evaluator: evaluates
agentic_cad_workflow/agents.py - Self-correction loop → Strategy planner: plans fixes
agentic_cad_workflow/agents.py - Self-correction loop → Patch modifier: applies fixes
agentic_cad_workflow/agents.py - Patch criteria → Mock reasoner / interface: requests criteria
agentic_cad_workflow/agents.py - Detailed inference → Mock reasoner / interface: infers device
agentic_cad_workflow/agents.py - CLI input/output → Workflow data models: builds input
agentic_cad_workflow/cli.py - Workflow runner → Workflow result: returns
agentic_cad_workflow/workflow.py - Workflow runner → Workflow data models: exchanges data
agentic_cad_workflow/workflow.py - Mock reasoner / interface → Workflow data models: uses model types
agentic_cad_workflow/reasoners.py - CLI input/output → CLI user: prints or saves result
agentic_cad_workflow/cli.py