fastworkflow 2.14.1__py3-none-any.whl → 2.14.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
fastworkflow/cli.py CHANGED
@@ -338,6 +338,12 @@ def add_run_parser(subparsers):
338
338
  parser_run.add_argument("--startup_action", help="Optional startup action", default="")
339
339
  parser_run.add_argument("--keep_alive", help="Optional keep_alive", default=True)
340
340
  parser_run.add_argument("--project_folderpath", help="Optional path to project folder containing application code", default=None)
341
+ parser_run.add_argument(
342
+ "--run_as_agent",
343
+ help="Run in agent mode (uses DSPy for tool selection)",
344
+ action="store_true",
345
+ default=False,
346
+ )
341
347
  parser_run.set_defaults(func=lambda args: run_with_defaults(args))
342
348
 
343
349
  def train_with_defaults(args): # sourcery skip: extract-duplicate-method
@@ -485,6 +491,10 @@ def run_example(args):
485
491
  str(passwords_file)
486
492
  ]
487
493
 
494
+ # Forward agent mode flag if requested
495
+ if getattr(args, "run_as_agent", False):
496
+ cmd.append("--run_as_agent")
497
+
488
498
  try:
489
499
  rprint(f"[bold green]Starting interactive session...[/bold green]")
490
500
  # Replace the current process with the run command
@@ -526,6 +536,12 @@ def main():
526
536
  # 'examples run' command
527
537
  parser_run_example = examples_subparsers.add_parser("run", help="Run a specific example")
528
538
  parser_run_example.add_argument("name", help="The name of the example to run")
539
+ parser_run_example.add_argument(
540
+ "--run_as_agent",
541
+ help="Run the example in agent mode (uses DSPy for tool selection)",
542
+ action="store_true",
543
+ default=False,
544
+ )
529
545
  parser_run_example.set_defaults(func=run_example)
530
546
 
531
547
  # Add top-level commands
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastworkflow
3
- Version: 2.14.1
3
+ Version: 2.14.3
4
4
  Summary: A framework for rapidly building large-scale, deterministic, interactive workflows with a fault-tolerant, conversational UX
5
5
  License: Apache-2.0
6
6
  Keywords: fastworkflow,ai,workflow,llm,openai
@@ -1,5 +1,6 @@
1
1
  fastworkflow/.DS_Store,sha256=CTvh7SVnPHlYsgd1jwLq9digT-k8QV6JS7JgXEw0OVo,8196
2
2
  fastworkflow/__init__.py,sha256=FbOtFQsjbYXcMjL800X46LcDayzqmB6RDZL782_hj9w,7102
3
+ fastworkflow/_commands/.gitkeep,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
4
  fastworkflow/_workflows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
5
  fastworkflow/_workflows/command_metadata_extraction/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
6
  fastworkflow/_workflows/command_metadata_extraction/_commands/ErrorCorrection/abort.py,sha256=MccJ6Yf7Yrf-9u4Ntv30b5-_IPv68LD6e6YmiBGlr9g,1382
@@ -33,7 +34,7 @@ fastworkflow/build/pydantic_model_generator.py,sha256=oNyoANyUWBpHG-fE3tGL911RNv
33
34
  fastworkflow/build/utterance_generator.py,sha256=UrtkF0wyAZ1hiFitHX0g8w7Wh-D0leLCrP1aUACSfHo,299
34
35
  fastworkflow/cache_matching.py,sha256=OoB--1tO6-O4BKCuCrUbB0CkUr76J62K4VAf6MShi-w,7984
35
36
  fastworkflow/chat_session.py,sha256=Ixuz_yELuvDHhomfrJwc7rd9AUpvuREzJA-ZHdNZYPQ,23983
36
- fastworkflow/cli.py,sha256=I9oJQWRya2dR-emeNPo6imgyhwY-Wz-g7RZgQPmGaEU,25843
37
+ fastworkflow/cli.py,sha256=RB78V78NAZsZtNqF4_kk-TnEKCOy-cFLF6wSwz8aP14,26345
37
38
  fastworkflow/command_context_model.py,sha256=nWxLP3TR7WJr3yWCedqcdFOxo_kwae_mS3VRN2cOmK8,13437
38
39
  fastworkflow/command_directory.py,sha256=aJ6UQCwevfF11KbcQB2Qz6mQ7Kj91pZtvHmQY6JFnao,29030
39
40
  fastworkflow/command_executor.py,sha256=WWM_Tz9kg9MAk96UXcou3hyp2EGDSFjvsJrZX0MFOuY,8041
@@ -168,8 +169,8 @@ fastworkflow/utils/startup_progress.py,sha256=9icSdnpFAxzIq0sUliGpNaH0Efvrt5lDtG
168
169
  fastworkflow/workflow.py,sha256=Dh6qmJvb8NPNLUyK0ElfoaKV5MWhZkNBG-1NHxxdeqM,18282
169
170
  fastworkflow/workflow_agent.py,sha256=lSK4OTnfDTg7qCKMySQnmjSVF5WD-V9W4ZrsRBq29Dg,9296
170
171
  fastworkflow/workflow_inheritance_model.py,sha256=Pp-qSrQISgPfPjJVUfW84pc7HLmL2evuq0UVIYR51K0,7974
171
- fastworkflow-2.14.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
172
- fastworkflow-2.14.1.dist-info/METADATA,sha256=thQ6A88cQ36LsACqyvsrVMPnv7m_mDiLcOqsa-1oYWw,29867
173
- fastworkflow-2.14.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
174
- fastworkflow-2.14.1.dist-info/entry_points.txt,sha256=m8HqoPzCyaZLAx-V5X8MJgw3Lx3GiPDlxNEZ7K-Gb-U,54
175
- fastworkflow-2.14.1.dist-info/RECORD,,
172
+ fastworkflow-2.14.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
173
+ fastworkflow-2.14.3.dist-info/METADATA,sha256=DJkqThTY9ZfFt2Gkkhd1hm24mkIquDp0Iyd3deX2xCE,29867
174
+ fastworkflow-2.14.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
175
+ fastworkflow-2.14.3.dist-info/entry_points.txt,sha256=m8HqoPzCyaZLAx-V5X8MJgw3Lx3GiPDlxNEZ7K-Gb-U,54
176
+ fastworkflow-2.14.3.dist-info/RECORD,,