Add scoped Agent-mode pipeline as experimental Classic fork.
Wire specialist waves, Brain consolidation, and Classic-compatible reports so Agent mode can run end-to-end via OpenRouter without changing the default Classic path. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+10
-1
@@ -17,6 +17,7 @@ _ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
if _ROOT not in sys.path:
|
||||
sys.path.insert(0, _ROOT)
|
||||
|
||||
from backend.agents.runner import run_agent_pipeline # noqa: E402
|
||||
from backend.pipeline.runner import run_pipeline # noqa: E402
|
||||
|
||||
|
||||
@@ -25,6 +26,8 @@ def main() -> int:
|
||||
parser.add_argument("pdf", help="Path to the PDF drawing set")
|
||||
parser.add_argument("--out", default=None,
|
||||
help="Directory for artifacts (default: out/<pdf-stem>)")
|
||||
parser.add_argument("--mode", choices=("classic", "agent"), default="classic",
|
||||
help="Pipeline implementation to run (default: classic)")
|
||||
parser.add_argument("--project-name", default=None)
|
||||
parser.add_argument("--address", default=None)
|
||||
parser.add_argument("--occupancy", default=None)
|
||||
@@ -43,7 +46,13 @@ def main() -> int:
|
||||
}.items() if v
|
||||
}
|
||||
out_dir = args.out or os.path.join("out", os.path.splitext(os.path.basename(args.pdf))[0])
|
||||
report = run_pipeline(args.pdf, out_dir=out_dir, project_input=project_input or None)
|
||||
runner = run_agent_pipeline if args.mode == "agent" else run_pipeline
|
||||
report = runner(
|
||||
args.pdf,
|
||||
out_dir=out_dir,
|
||||
project_input=project_input or None,
|
||||
source_name=os.path.basename(args.pdf),
|
||||
)
|
||||
|
||||
s = report["summary"]
|
||||
print("\n" + "=" * 60)
|
||||
|
||||
Reference in New Issue
Block a user