@@ -405,8 +405,8 @@ export const installPythonTemplate = async ({
405
405
> ) => {
406
406
console . log ( "\nInitializing Python project with template:" , template , "\n" ) ;
407
407
let templatePath ;
408
- if ( template === "extractor " ) {
409
- templatePath = path . join ( templatesDir , "types" , "extractor" , framework ) ;
408
+ if ( template === "reflex " ) {
409
+ templatePath = path . join ( templatesDir , "types" , "reflex" ) ;
410
410
} else {
411
411
templatePath = path . join ( templatesDir , "types" , "streaming" , framework ) ;
412
412
}
@@ -472,24 +472,6 @@ export const installPythonTemplate = async ({
472
472
cwd : path . join ( compPath , "engines" , "python" , engine ) ,
473
473
} ) ;
474
474
475
- // Copy agent code
476
- if ( template === "multiagent" ) {
477
- if ( agents ) {
478
- await copy ( "**" , path . join ( root ) , {
479
- parents : true ,
480
- cwd : path . join ( compPath , "agents" , "python" , agents ) ,
481
- rename : assetRelocator ,
482
- } ) ;
483
- } else {
484
- console . log (
485
- red (
486
- "There is no agent selected for multi-agent template. Please pick an agent to use via --agents flag." ,
487
- ) ,
488
- ) ;
489
- process . exit ( 1 ) ;
490
- }
491
- }
492
-
493
475
// Copy router code
494
476
await copyRouterCode ( root , tools ?? [ ] ) ;
495
477
}
@@ -503,6 +485,28 @@ export const installPythonTemplate = async ({
503
485
} ) ;
504
486
}
505
487
488
+ if ( template === "multiagent" || template === "reflex" ) {
489
+ if ( agents ) {
490
+ const sourcePath =
491
+ template === "multiagent"
492
+ ? path . join ( compPath , "agents" , "python" , agents )
493
+ : path . join ( compPath , "reflex" , agents ) ;
494
+
495
+ await copy ( "**" , path . join ( root ) , {
496
+ parents : true ,
497
+ cwd : sourcePath ,
498
+ rename : assetRelocator ,
499
+ } ) ;
500
+ } else {
501
+ console . log (
502
+ red (
503
+ `There is no agent selected for ${ template } template. Please pick an agent to use via --agents flag.` ,
504
+ ) ,
505
+ ) ;
506
+ process . exit ( 1 ) ;
507
+ }
508
+ }
509
+
506
510
console . log ( "Adding additional dependencies" ) ;
507
511
508
512
const addOnDependencies = getAdditionalDependencies (
0 commit comments