fastworkflow 2.15.13__tar.gz → 2.16.0__tar.gz

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.

Potentially problematic release.


This version of fastworkflow might be problematic. Click here for more details.

Files changed (177) hide show
  1. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/PKG-INFO +4 -2
  2. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/README.md +2 -0
  3. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/_workflows/command_metadata_extraction/_commands/IntentDetection/what_can_i_do.py +9 -0
  4. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/_workflows/command_metadata_extraction/_commands/wildcard.py +15 -6
  5. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/_workflows/command_metadata_extraction/intent_detection.py +1 -1
  6. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/chat_session.py +116 -54
  7. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/command_executor.py +1 -1
  8. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/fastworkflow.env +1 -0
  9. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/fastworkflow.passwords.env +2 -1
  10. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/mcp_server.py +3 -3
  11. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/workflow_agent.py +3 -2
  12. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/pyproject.toml +7 -3
  13. fastworkflow-2.15.13/fastworkflow/run_agent/__main__.py +0 -294
  14. fastworkflow-2.15.13/fastworkflow/run_agent/agent_module.py +0 -194
  15. fastworkflow-2.15.13/fastworkflow/utils/__init__.py +0 -0
  16. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/LICENSE +0 -0
  17. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/.DS_Store +0 -0
  18. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/__init__.py +0 -0
  19. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/_commands/.gitkeep +0 -0
  20. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/_workflows/__init__.py +0 -0
  21. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/_workflows/command_metadata_extraction/__init__.py +0 -0
  22. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/_workflows/command_metadata_extraction/_commands/ErrorCorrection/abort.py +0 -0
  23. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/_workflows/command_metadata_extraction/_commands/ErrorCorrection/you_misunderstood.py +0 -0
  24. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/_workflows/command_metadata_extraction/_commands/IntentDetection/go_up.py +0 -0
  25. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/_workflows/command_metadata_extraction/_commands/IntentDetection/reset_context.py +0 -0
  26. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/_workflows/command_metadata_extraction/_commands/IntentDetection/what_is_current_context.py +0 -0
  27. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/_workflows/command_metadata_extraction/_commands/__init__.py +0 -0
  28. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/_workflows/command_metadata_extraction/command_context_model.json +0 -0
  29. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/_workflows/command_metadata_extraction/parameter_extraction.py +0 -0
  30. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/__main__.py +0 -0
  31. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/ast_class_extractor.py +0 -0
  32. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/class_analysis_structures.py +0 -0
  33. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/cli_specification.md +0 -0
  34. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/command_dependency_resolver.py +0 -0
  35. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/command_file_generator.py +0 -0
  36. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/command_file_template.py +0 -0
  37. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/command_import_utils.py +0 -0
  38. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/command_stub_generator.py +0 -0
  39. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/context_folder_generator.py +0 -0
  40. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/context_model_generator.py +0 -0
  41. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/dependency_manager.py +0 -0
  42. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/dir_scanner.py +0 -0
  43. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/documentation_generator.py +0 -0
  44. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/genai_postprocessor.py +0 -0
  45. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/inheritance_block_regenerator.py +0 -0
  46. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/libcst_transformers.py +0 -0
  47. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/navigator_stub_generator.py +0 -0
  48. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/pydantic_model_generator.py +0 -0
  49. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/build/utterance_generator.py +0 -0
  50. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/cache_matching.py +0 -0
  51. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/cli.py +0 -0
  52. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/command_context_model.py +0 -0
  53. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/command_directory.py +0 -0
  54. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/command_interfaces.py +0 -0
  55. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/command_metadata_api.py +0 -0
  56. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/command_routing.py +0 -0
  57. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/docs/context_modules_prd.txt +0 -0
  58. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/extended_workflow_example/README.md +0 -0
  59. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/extended_workflow_example/_commands/WorkItem/get_status.py +0 -0
  60. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/extended_workflow_example/_commands/generate_report.py +0 -0
  61. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/extended_workflow_example/_commands/startup.py +0 -0
  62. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/extended_workflow_example/simple_workflow_template.json +0 -0
  63. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/extended_workflow_example/workflow_inheritance_model.json +0 -0
  64. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/hello_world/_commands/README.md +0 -0
  65. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/hello_world/_commands/add_two_numbers.py +0 -0
  66. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/hello_world/_commands/context_inheritance_model.json +0 -0
  67. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/hello_world/application/add_two_numbers.py +0 -0
  68. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_1/_commands/context_inheritance_model.json +0 -0
  69. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_1/_commands/send_message.py +0 -0
  70. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_1/application/send_message.py +0 -0
  71. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_2/_commands/User/send_message.py +0 -0
  72. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_2/_commands/context_inheritance_model.json +0 -0
  73. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_2/_commands/startup.py +0 -0
  74. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_2/application/user.py +0 -0
  75. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_3/_commands/PremiumUser/send_priority_message.py +0 -0
  76. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_3/_commands/User/send_message.py +0 -0
  77. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_3/_commands/context_inheritance_model.json +0 -0
  78. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_3/_commands/initialize_user.py +0 -0
  79. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_3/application/user.py +0 -0
  80. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/_commands/ChatRoom/_ChatRoom.py +0 -0
  81. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/_commands/ChatRoom/add_user.py +0 -0
  82. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/_commands/ChatRoom/broadcast_message.py +0 -0
  83. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/_commands/ChatRoom/get_current_user.py +0 -0
  84. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/_commands/ChatRoom/list_users.py +0 -0
  85. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/_commands/ChatRoom/set_current_user.py +0 -0
  86. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/_commands/PremiumUser/_PremiumUser.py +0 -0
  87. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/_commands/PremiumUser/send_priority_message.py +0 -0
  88. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/_commands/User/_User.py +0 -0
  89. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/_commands/User/send_message.py +0 -0
  90. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/_commands/context_inheritance_model.json +0 -0
  91. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/_commands/set_root_context.py +0 -0
  92. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/application/chatroom.py +0 -0
  93. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/application/user.py +0 -0
  94. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/context_hierarchy_model.json +0 -0
  95. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/messaging_app_4/startup_action.json +0 -0
  96. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/_commands/calculate.py +0 -0
  97. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/_commands/cancel_pending_order.py +0 -0
  98. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/_commands/exchange_delivered_order_items.py +0 -0
  99. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/_commands/find_user_id_by_email.py +0 -0
  100. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/_commands/find_user_id_by_name_zip.py +0 -0
  101. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/_commands/get_order_details.py +0 -0
  102. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/_commands/get_product_details.py +0 -0
  103. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/_commands/get_user_details.py +0 -0
  104. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/_commands/list_all_product_types.py +0 -0
  105. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/_commands/modify_pending_order_address.py +0 -0
  106. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/_commands/modify_pending_order_items.py +0 -0
  107. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/_commands/modify_pending_order_payment.py +0 -0
  108. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/_commands/modify_user_address.py +0 -0
  109. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/_commands/return_delivered_order_items.py +0 -0
  110. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/_commands/transfer_to_human_agents.py +0 -0
  111. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/context_inheritance_model.json +0 -0
  112. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/retail_data/__init__.py +0 -0
  113. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/retail_data/orders.json +0 -0
  114. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/retail_data/products.json +0 -0
  115. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/retail_data/users.json +0 -0
  116. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/calculate.py +0 -0
  117. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/cancel_pending_order.py +0 -0
  118. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/exchange_delivered_order_items.py +0 -0
  119. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/find_user_id_by_email.py +0 -0
  120. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/find_user_id_by_name_zip.py +0 -0
  121. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/get_order_details.py +0 -0
  122. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/get_product_details.py +0 -0
  123. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/get_user_details.py +0 -0
  124. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/list_all_product_types.py +0 -0
  125. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/modify_pending_order_address.py +0 -0
  126. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/modify_pending_order_items.py +0 -0
  127. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/modify_pending_order_payment.py +0 -0
  128. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/modify_user_address.py +0 -0
  129. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/return_delivered_order_items.py +0 -0
  130. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/think.py +0 -0
  131. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/tool.py +0 -0
  132. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/tools/transfer_to_human_agents.py +0 -0
  133. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/retail_workflow/workflow_description.txt +0 -0
  134. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/__init__.py +0 -0
  135. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/_commands/WorkItem/_WorkItem.py +0 -0
  136. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/_commands/WorkItem/add_child_workitem.py +0 -0
  137. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/_commands/WorkItem/get_status.py +0 -0
  138. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/_commands/WorkItem/go_to_workitem.py +0 -0
  139. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/_commands/WorkItem/mark_as_complete.py +0 -0
  140. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/_commands/WorkItem/move_to_first_child_workitem.py +0 -0
  141. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/_commands/WorkItem/move_to_last_child_workitem.py +0 -0
  142. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/_commands/WorkItem/move_to_next_workitem.py +0 -0
  143. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/_commands/WorkItem/move_to_previous_workitem.py +0 -0
  144. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/_commands/WorkItem/remove_all_child_workitems.py +0 -0
  145. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/_commands/WorkItem/remove_child_workitem.py +0 -0
  146. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/_commands/WorkItem/show_schema.py +0 -0
  147. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/_commands/startup.py +0 -0
  148. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/application/__init__.py +0 -0
  149. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/application/workitem.py +0 -0
  150. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/simple_workflow_template.json +0 -0
  151. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/examples/simple_workflow_template/startup_action.json +0 -0
  152. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/model_pipeline_training.py +0 -0
  153. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/refine/__main__.py +0 -0
  154. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/run/__init__.py +0 -0
  155. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/run/__main__.py +0 -0
  156. {fastworkflow-2.15.13/fastworkflow/run_agent → fastworkflow-2.16.0/fastworkflow/train}/__init__.py +0 -0
  157. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/train/__main__.py +0 -0
  158. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/train/generate_synthetic.py +0 -0
  159. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/user_message_queues.py +0 -0
  160. {fastworkflow-2.15.13/fastworkflow/train → fastworkflow-2.16.0/fastworkflow/utils}/__init__.py +0 -0
  161. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/utils/command_dependency_graph.py +0 -0
  162. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/utils/context_utils.py +0 -0
  163. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/utils/dspy_cache_utils.py +0 -0
  164. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/utils/dspy_logger.py +0 -0
  165. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/utils/dspy_utils.py +0 -0
  166. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/utils/env.py +0 -0
  167. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/utils/fuzzy_match.py +0 -0
  168. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/utils/generate_param_examples.py +0 -0
  169. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/utils/logging.py +0 -0
  170. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/utils/parameterize_func_decorator.py +0 -0
  171. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/utils/pydantic_model_2_dspy_signature_class.py +0 -0
  172. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/utils/python_utils.py +0 -0
  173. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/utils/react.py +0 -0
  174. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/utils/signatures.py +0 -0
  175. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/utils/startup_progress.py +0 -0
  176. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/workflow.py +0 -0
  177. {fastworkflow-2.15.13 → fastworkflow-2.16.0}/fastworkflow/workflow_inheritance_model.py +0 -0
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastworkflow
3
- Version: 2.15.13
3
+ Version: 2.16.0
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
7
7
  Author: Dhar Rawal
8
8
  Author-email: drawal@radiantlogic.com
9
- Requires-Python: >=3.11
9
+ Requires-Python: >=3.11,<3.14
10
10
  Classifier: License :: OSI Approved :: Apache Software License
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3.11
@@ -581,6 +581,7 @@ This single command will generate the `greet.py` command, `get_properties` and `
581
581
  | `LLM_RESPONSE_GEN` | LiteLLM model string for response generation | `run` | `mistral/mistral-small-latest` |
582
582
  | `LLM_PLANNER` | LiteLLM model string for the agent's task planner | `run` (agent mode) | `mistral/mistral-small-latest` |
583
583
  | `LLM_AGENT` | LiteLLM model string for the DSPy agent | `run` (agent mode) | `mistral/mistral-small-latest` |
584
+ | `LLM_CONVERSATION_STORE` | LiteLLM model string for conversation topic/summary generation | FastAPI service | `mistral/mistral-small-latest` |
584
585
  | `NOT_FOUND` | Placeholder value for missing parameters during extraction | Always | `"NOT_FOUND"` |
585
586
  | `MISSING_INFORMATION_ERRMSG` | Error message prefix for missing parameters | Always | `"Missing required..."` |
586
587
  | `INVALID_INFORMATION_ERRMSG` | Error message prefix for invalid parameters | Always | `"Invalid information..."` |
@@ -594,6 +595,7 @@ This single command will generate the `greet.py` command, `get_properties` and `
594
595
  | `LITELLM_API_KEY_RESPONSE_GEN`| API key for the `LLM_RESPONSE_GEN` model | `run` | *required* |
595
596
  | `LITELLM_API_KEY_PLANNER`| API key for the `LLM_PLANNER` model | `run` (agent mode) | *required* |
596
597
  | `LITELLM_API_KEY_AGENT`| API key for the `LLM_AGENT` model | `run` (agent mode) | *required* |
598
+ | `LITELLM_API_KEY_CONVERSATION_STORE`| API key for the `LLM_CONVERSATION_STORE` model | FastAPI service | *required* |
597
599
 
598
600
  > [!tip]
599
601
  > The example workflows are configured to use Mistral's models by default. You can get a free API key from [Mistral AI](https://mistral.ai) that works with the `mistral-small-latest` model.
@@ -548,6 +548,7 @@ This single command will generate the `greet.py` command, `get_properties` and `
548
548
  | `LLM_RESPONSE_GEN` | LiteLLM model string for response generation | `run` | `mistral/mistral-small-latest` |
549
549
  | `LLM_PLANNER` | LiteLLM model string for the agent's task planner | `run` (agent mode) | `mistral/mistral-small-latest` |
550
550
  | `LLM_AGENT` | LiteLLM model string for the DSPy agent | `run` (agent mode) | `mistral/mistral-small-latest` |
551
+ | `LLM_CONVERSATION_STORE` | LiteLLM model string for conversation topic/summary generation | FastAPI service | `mistral/mistral-small-latest` |
551
552
  | `NOT_FOUND` | Placeholder value for missing parameters during extraction | Always | `"NOT_FOUND"` |
552
553
  | `MISSING_INFORMATION_ERRMSG` | Error message prefix for missing parameters | Always | `"Missing required..."` |
553
554
  | `INVALID_INFORMATION_ERRMSG` | Error message prefix for invalid parameters | Always | `"Invalid information..."` |
@@ -561,6 +562,7 @@ This single command will generate the `greet.py` command, `get_properties` and `
561
562
  | `LITELLM_API_KEY_RESPONSE_GEN`| API key for the `LLM_RESPONSE_GEN` model | `run` | *required* |
562
563
  | `LITELLM_API_KEY_PLANNER`| API key for the `LLM_PLANNER` model | `run` (agent mode) | *required* |
563
564
  | `LITELLM_API_KEY_AGENT`| API key for the `LLM_AGENT` model | `run` (agent mode) | *required* |
565
+ | `LITELLM_API_KEY_CONVERSATION_STORE`| API key for the `LLM_CONVERSATION_STORE` model | FastAPI service | *required* |
564
566
 
565
567
  > [!tip]
566
568
  > The example workflows are configured to use Mistral's models by default. You can get a free API key from [Mistral AI](https://mistral.ai) that works with the `mistral-small-latest` model.
@@ -148,11 +148,20 @@ class ResponseGenerator:
148
148
  for_agents=is_agent_mode,
149
149
  )
150
150
 
151
+ # Check if the NLU pipeline stage is intent detection
152
+ success = False
153
+ nlu_pipeline_stage = workflow.context.get(
154
+ "NLU_Pipeline_Stage",
155
+ fastworkflow.NLUPipelineStage.INTENT_DETECTION)
156
+ if nlu_pipeline_stage == fastworkflow.NLUPipelineStage.INTENT_DETECTION:
157
+ success = True
158
+
151
159
  return fastworkflow.CommandOutput(
152
160
  workflow_id=workflow.id,
153
161
  command_responses=[
154
162
  fastworkflow.CommandResponse(
155
163
  response=response,
164
+ success=success
156
165
  )
157
166
  ]
158
167
  )
@@ -67,7 +67,10 @@ class ResponseGenerator:
67
67
  if cnp_output.command_name == 'ErrorCorrection/you_misunderstood':
68
68
  workflow_context["NLU_Pipeline_Stage"] = NLUPipelineStage.INTENT_MISUNDERSTANDING_CLARIFICATION
69
69
  workflow_context["command"] = command
70
- else:
70
+ elif (
71
+ nlu_pipeline_stage == fastworkflow.NLUPipelineStage.INTENT_DETECTION or
72
+ cnp_output.command_name == 'ErrorCorrection/abort'
73
+ ):
71
74
  workflow.end_command_processing()
72
75
  workflow.context = workflow_context
73
76
 
@@ -76,9 +79,13 @@ class ResponseGenerator:
76
79
  command=command,
77
80
  )
78
81
  command_output = CommandExecutor.perform_action(workflow, startup_action)
79
- command_output.command_responses[0].artifacts["command_handled"] = True
80
- # Set the additional attributes
81
- command_output.command_name = cnp_output.command_name
82
+ if (
83
+ nlu_pipeline_stage == fastworkflow.NLUPipelineStage.INTENT_DETECTION or
84
+ cnp_output.command_name == 'ErrorCorrection/abort'
85
+ ):
86
+ command_output.command_responses[0].artifacts["command_handled"] = True
87
+ # Set the additional attributes
88
+ command_output.command_name = cnp_output.command_name
82
89
  return command_output
83
90
 
84
91
  if nlu_pipeline_stage in {
@@ -138,7 +145,9 @@ class ResponseGenerator:
138
145
  workflow.context = workflow_context
139
146
 
140
147
  command_name = cnp_output.command_name
141
- extractor = ParameterExtraction(workflow, app_workflow, command_name, command)
148
+ # Use the preserved original command (with parameters) if available
149
+ preserved_command = f'{command_name}: {workflow.context.get("command", command)}'
150
+ extractor = ParameterExtraction(workflow, app_workflow, command_name, preserved_command)
142
151
  pe_output = extractor.extract()
143
152
  if not pe_output.parameters_are_valid:
144
153
  return CommandOutput(
@@ -161,7 +170,7 @@ class ResponseGenerator:
161
170
  CommandResponse(
162
171
  response="",
163
172
  artifacts={
164
- "command": command,
173
+ "command": preserved_command,
165
174
  "command_name": command_name,
166
175
  "cmd_parameters": pe_output.cmd_parameters,
167
176
  },
@@ -136,7 +136,7 @@ class CommandNamePrediction:
136
136
  NLUPipelineStage.INTENT_AMBIGUITY_CLARIFICATION,
137
137
  NLUPipelineStage.INTENT_MISUNDERSTANDING_CLARIFICATION
138
138
  ) and not command_name:
139
- command_name = "what_can_i_do"
139
+ command_name = "what can i do?"
140
140
 
141
141
  if not command_name or command_name == "wildcard":
142
142
  fully_qualified_command_name=None
@@ -35,7 +35,7 @@ class ChatWorker(Thread):
35
35
  """Process messages for the root workflow"""
36
36
  try:
37
37
  self.chat_session._status = SessionStatus.RUNNING
38
- workflow = ChatSession.get_active_workflow()
38
+ workflow = self.chat_session.get_active_workflow()
39
39
  logger.debug(f"Started root workflow {workflow.id}")
40
40
 
41
41
  # Run the workflow loop
@@ -44,39 +44,34 @@ class ChatWorker(Thread):
44
44
  finally:
45
45
  self.chat_session._status = SessionStatus.STOPPED
46
46
  # Ensure workflow is popped if thread terminates unexpectedly
47
- if ChatSession.get_active_workflow() is not None:
48
- ChatSession.pop_active_workflow()
47
+ if self.chat_session.get_active_workflow() is not None:
48
+ self.chat_session.pop_active_workflow()
49
49
 
50
50
  class ChatSession:
51
- _workflow_stack_lock = Lock()
52
- _workflow_stack: ClassVar[deque[fastworkflow.Workflow]] = deque() # Stack of workflow objects
53
-
54
- @classmethod
55
- def get_active_workflow(cls) -> Optional[fastworkflow.Workflow]:
51
+ def get_active_workflow(self) -> Optional[fastworkflow.Workflow]:
56
52
  """Get the currently active workflow (top of stack)"""
57
- with cls._workflow_stack_lock:
58
- return cls._workflow_stack[-1] if cls._workflow_stack else None
53
+ with self._workflow_stack_lock:
54
+ return self._workflow_stack[-1] if self._workflow_stack else None
59
55
 
60
- @classmethod
61
- def push_active_workflow(cls, workflow: fastworkflow.Workflow) -> None:
62
- with cls._workflow_stack_lock:
63
- cls._workflow_stack.append(workflow)
64
- logger.debug(f"Workflow stack: {[w.id for w in cls._workflow_stack]}")
56
+ def push_active_workflow(self, workflow: fastworkflow.Workflow) -> None:
57
+ """Push a workflow onto this session's stack"""
58
+ with self._workflow_stack_lock:
59
+ self._workflow_stack.append(workflow)
60
+ logger.debug(f"Workflow stack: {[w.id for w in self._workflow_stack]}")
65
61
 
66
- @classmethod
67
- def pop_active_workflow(cls) -> Optional[fastworkflow.Workflow]:
68
- with cls._workflow_stack_lock:
69
- if not cls._workflow_stack:
62
+ def pop_active_workflow(self) -> Optional[fastworkflow.Workflow]:
63
+ """Pop a workflow from this session's stack"""
64
+ with self._workflow_stack_lock:
65
+ if not self._workflow_stack:
70
66
  return None
71
- workflow = cls._workflow_stack.pop()
72
- logger.debug(f"Workflow stack after pop: {[w.id for w in cls._workflow_stack]}")
67
+ workflow = self._workflow_stack.pop()
68
+ logger.debug(f"Workflow stack after pop: {[w.id for w in self._workflow_stack]}")
73
69
  return workflow
74
70
 
75
- @classmethod
76
- def clear_workflow_stack(cls) -> None:
77
- """Clear the entire workflow stack"""
78
- with cls._workflow_stack_lock:
79
- cls._workflow_stack.clear()
71
+ def clear_workflow_stack(self) -> None:
72
+ """Clear the entire workflow stack for this session"""
73
+ with self._workflow_stack_lock:
74
+ self._workflow_stack.clear()
80
75
  logger.debug("Workflow stack cleared")
81
76
 
82
77
  def stop_workflow(self) -> None:
@@ -95,7 +90,7 @@ class ChatSession:
95
90
  logger.warning("Chat worker thread did not terminate within timeout")
96
91
 
97
92
  # Clear the workflow stack
98
- ChatSession.clear_workflow_stack()
93
+ self.clear_workflow_stack()
99
94
 
100
95
  # Reset status to stopped
101
96
  self._status = SessionStatus.STOPPED
@@ -116,6 +111,10 @@ class ChatSession:
116
111
  A chat session can run multiple workflows that share the same message queues.
117
112
  Use start_workflow() to start a specific workflow within this session.
118
113
  """
114
+ # Create instance-level workflow stack (supports nested workflows within this session)
115
+ self._workflow_stack: deque[fastworkflow.Workflow] = deque()
116
+ self._workflow_stack_lock = Lock()
117
+
119
118
  # Create queues for user messages and command outputs
120
119
  self._user_message_queue = Queue()
121
120
  self._command_output_queue = Queue()
@@ -197,7 +196,7 @@ class ChatSession:
197
196
 
198
197
  # Check if we need to stop the current workflow
199
198
  # Stop if this is a new root workflow (no parent, keep_alive=True)
200
- current_workflow = ChatSession.get_active_workflow()
199
+ current_workflow = self.get_active_workflow()
201
200
  if (current_workflow and
202
201
  parent_workflow_id is None and
203
202
  self._keep_alive):
@@ -244,7 +243,7 @@ class ChatSession:
244
243
  self._status = SessionStatus.STARTING
245
244
 
246
245
  # Push this workflow as active
247
- ChatSession.push_active_workflow(workflow)
246
+ self.push_active_workflow(workflow)
248
247
 
249
248
  # Initialize workflow tool agent if in agent mode
250
249
  # This must happen after pushing the workflow to the stack
@@ -304,12 +303,12 @@ class ChatSession:
304
303
 
305
304
  @property
306
305
  def workflow_is_complete(self) -> bool:
307
- workflow = ChatSession.get_active_workflow()
306
+ workflow = self.get_active_workflow()
308
307
  return workflow.is_complete if workflow else True
309
308
 
310
309
  @workflow_is_complete.setter
311
310
  def workflow_is_complete(self, value: bool) -> None:
312
- if workflow := ChatSession.get_active_workflow():
311
+ if workflow := self.get_active_workflow():
313
312
  workflow.is_complete = value
314
313
 
315
314
  @property
@@ -317,21 +316,22 @@ class ChatSession:
317
316
  """Return the conversation history."""
318
317
  return self._conversation_history
319
318
 
320
- def clear_conversation_history(self, trace_filename_suffix: Optional[str] = None) -> None:
319
+ # def clear_conversation_history(self, trace_filename_suffix: Optional[str] = None) -> None:
320
+ def clear_conversation_history(self) -> None:
321
321
  """
322
322
  Clear the conversation history.
323
323
  This resets the conversation history to an empty state.
324
324
  """
325
325
  self._conversation_history = dspy.History(messages=[])
326
326
  # Filename for conversation traces
327
- if trace_filename_suffix:
328
- self._conversation_traces_file_name: str = (
329
- f"conversation_traces_{trace_filename_suffix}"
330
- )
331
- else:
332
- self._conversation_traces_file_name: str = (
333
- f"conversation_traces_{datetime.now().strftime('%m_%d_%Y:%H_%M_%S')}.jsonl"
334
- )
327
+ # if trace_filename_suffix:
328
+ # self._conversation_traces_file_name: str = (
329
+ # f"conversation_traces_{trace_filename_suffix}"
330
+ # )
331
+ # else:
332
+ # self._conversation_traces_file_name: str = (
333
+ # f"conversation_traces_{datetime.now().strftime('%m_%d_%Y:%H_%M_%S')}.jsonl"
334
+ # )
335
335
 
336
336
  def _run_workflow_loop(self) -> Optional[fastworkflow.CommandOutput]:
337
337
  """
@@ -341,7 +341,7 @@ class ChatSession:
341
341
  - All outputs (success or failure) are sent to queue during processing
342
342
  """
343
343
  last_output = None
344
- workflow = ChatSession.get_active_workflow()
344
+ workflow = self.get_active_workflow()
345
345
 
346
346
  try:
347
347
  # Handle startup command/action
@@ -385,7 +385,7 @@ class ChatSession:
385
385
 
386
386
  finally:
387
387
  self._status = SessionStatus.STOPPED
388
- ChatSession.pop_active_workflow()
388
+ self.pop_active_workflow()
389
389
  logger.debug(f"Workflow {workflow.id if workflow else 'unknown'} completed")
390
390
 
391
391
  return None
@@ -401,7 +401,7 @@ class ChatSession:
401
401
  # def _process_mcp_tool_call(self, message: str) -> fastworkflow.CommandOutput:
402
402
  # # sourcery skip: class-extract-method, extract-method
403
403
  # """Process an MCP tool call message"""
404
- # workflow = ChatSession.get_active_workflow()
404
+ # workflow = self.get_active_workflow()
405
405
 
406
406
  # try:
407
407
  # # Parse JSON message
@@ -429,7 +429,7 @@ class ChatSession:
429
429
  # self.command_output_queue.put(command_output)
430
430
 
431
431
  # # Flush on successful or failed tool call – state may have changed.
432
- # if workflow := ChatSession.get_active_workflow():
432
+ # if workflow := self.get_active_workflow():
433
433
  # workflow.flush()
434
434
 
435
435
  # return command_output
@@ -500,11 +500,15 @@ class ChatSession:
500
500
  if os.path.exists("action.jsonl"):
501
501
  with open("action.jsonl", "r", encoding="utf-8") as f:
502
502
  actions = [json.loads(line) for line in f if line.strip()]
503
- conversation_summary = self._extract_conversation_summary(message, actions, result_text)
503
+ conversation_summary, conversation_traces = self._extract_conversation_summary(message, actions, result_text)
504
504
  command_response.artifacts["conversation_summary"] = conversation_summary
505
505
 
506
506
  self.conversation_history.messages.append(
507
- {f"conversation {len(self.conversation_history.messages) + 1}": conversation_summary}
507
+ {
508
+ "conversation summary": conversation_summary,
509
+ "conversation_traces": conversation_traces,
510
+ "feedback": None # Initialize feedback slot for this turn
511
+ }
508
512
  )
509
513
 
510
514
  command_output = fastworkflow.CommandOutput(
@@ -514,11 +518,11 @@ class ChatSession:
514
518
 
515
519
  # Put output in queue (following same pattern as _process_message)
516
520
  if (not command_output.success or self._keep_alive) and \
517
- self.command_output_queue:
521
+ self.command_output_queue:
518
522
  self.command_output_queue.put(command_output)
519
523
 
520
524
  # Persist workflow state changes
521
- if workflow := ChatSession.get_active_workflow():
525
+ if workflow := self.get_active_workflow():
522
526
  workflow.flush()
523
527
 
524
528
  return command_output
@@ -529,20 +533,77 @@ class ChatSession:
529
533
  # command_output = self.profile_invoke_command(message)
530
534
 
531
535
  command_output = self._CommandExecutor.invoke_command(self, message)
536
+
537
+ # Record assistant mode trace to action.jsonl (similar to agent mode in workflow_agent.py)
538
+ # This ensures assistant commands are captured even when interspersed with agent commands
539
+ response_text = ""
540
+ if command_output.command_responses:
541
+ response_text = command_output.command_responses[0].response or ""
542
+
543
+ # Convert parameters to dict if it's a Pydantic model or other complex object
544
+ params = command_output.command_parameters or {}
545
+ if hasattr(params, 'model_dump'):
546
+ params = params.model_dump()
547
+ elif hasattr(params, 'dict'):
548
+ params = params.dict()
549
+
550
+ record = {
551
+ "command": message,
552
+ "command_name": command_output.command_name or "",
553
+ "parameters": params,
554
+ "response": response_text
555
+ }
556
+
557
+ self.conversation_history.messages.append(
558
+ {
559
+ "conversation summary": "assistant_mode_command",
560
+ "conversation_traces": json.dumps(record),
561
+ "feedback": None # Initialize feedback slot for this turn
562
+ }
563
+ )
564
+
532
565
  if (not command_output.success or self._keep_alive) and \
533
566
  self.command_output_queue:
534
567
  self.command_output_queue.put(command_output)
535
568
 
536
569
  # Persist workflow state changes lazily accumulated during message processing.
537
- if workflow := ChatSession.get_active_workflow():
570
+ if workflow := self.get_active_workflow():
538
571
  workflow.flush()
539
572
 
540
573
  return command_output
541
574
 
542
575
  def _process_action(self, action: fastworkflow.Action) -> fastworkflow.CommandOutput:
543
576
  """Process a startup action"""
544
- workflow = ChatSession.get_active_workflow()
577
+ workflow = self.get_active_workflow()
545
578
  command_output = self._CommandExecutor.perform_action(workflow, action)
579
+
580
+ # Record action trace to action.jsonl
581
+ response_text = ""
582
+ if command_output.command_responses:
583
+ response_text = command_output.command_responses[0].response or ""
584
+
585
+ # Convert parameters to dict if it's a Pydantic model or other complex object
586
+ params = action.parameters or {}
587
+ if hasattr(params, 'model_dump'):
588
+ params = params.model_dump()
589
+ elif hasattr(params, 'dict'):
590
+ params = params.dict()
591
+
592
+ record = {
593
+ "command": "process_action",
594
+ "command_name": action.command_name,
595
+ "parameters": params,
596
+ "response": response_text
597
+ }
598
+
599
+ self.conversation_history.messages.append(
600
+ {
601
+ "conversation summary": "process_action command",
602
+ "conversation_traces": json.dumps(record),
603
+ "feedback": None # Initialize feedback slot for this turn
604
+ }
605
+ )
606
+
546
607
  if (not command_output.success or self._keep_alive) and \
547
608
  self.command_output_queue:
548
609
  self.command_output_queue.put(command_output)
@@ -573,15 +634,16 @@ class ChatSession:
573
634
  user_query: str, workflow_actions: list[dict[str, str]], final_agent_response: str) -> str:
574
635
  """
575
636
  Summarizes conversation based on original user query, workflow actions and agentt response.
637
+ Returns the conversation summary and the log entry
576
638
  """
577
639
  # Lets log everything to a file called action_log.jsonl, if it exists
578
- log_entry = {
640
+ conversation_traces = {
579
641
  "user_query": user_query,
580
642
  "agent_workflow_interactions": workflow_actions,
581
643
  "final_agent_response": final_agent_response
582
644
  }
583
- with open(self._conversation_traces_file_name, "a", encoding="utf-8") as f:
584
- f.write(json.dumps(log_entry) + "\n")
645
+ # with open(self._conversation_traces_file_name, "a", encoding="utf-8") as f:
646
+ # f.write(json.dumps(log_entry) + "\n")
585
647
 
586
648
  class ConversationSummarySignature(dspy.Signature):
587
649
  """
@@ -601,7 +663,7 @@ class ChatSession:
601
663
  user_query=user_query,
602
664
  workflow_actions=workflow_actions,
603
665
  final_agent_response=final_agent_response)
604
- return prediction.conversation_summary
666
+ return prediction.conversation_summary, json.dumps(conversation_traces)
605
667
 
606
668
 
607
669
  def profile_invoke_command(self, message: str):
@@ -56,7 +56,7 @@ class CommandExecutor(CommandExecutorInterface):
56
56
  command_name = command_output.command_responses[0].artifacts["command_name"]
57
57
  input_obj = command_output.command_responses[0].artifacts["cmd_parameters"]
58
58
 
59
- workflow = ChatSession.get_active_workflow()
59
+ workflow = chat_session.get_active_workflow()
60
60
  workflow_name = workflow.folderpath.split('/')[-1]
61
61
  context = workflow.current_command_context_displayname
62
62
 
@@ -3,6 +3,7 @@ LLM_PARAM_EXTRACTION=mistral/mistral-small-latest
3
3
  LLM_RESPONSE_GEN=mistral/mistral-small-latest
4
4
  LLM_PLANNER=mistral/mistral-small-latest
5
5
  LLM_AGENT=mistral/mistral-small-latest
6
+ LLM_CONVERSATION_STORE=mistral/mistral-small-latest
6
7
 
7
8
  SPEEDDICT_FOLDERNAME=___workflow_contexts
8
9
  SYNTHETIC_UTTERANCE_GEN_NUMOF_PERSONAS=4
@@ -3,4 +3,5 @@ LITELLM_API_KEY_SYNDATA_GEN=<API KEY for synthetic data generation model>
3
3
  LITELLM_API_KEY_PARAM_EXTRACTION=<API KEY for parameter extraction model>
4
4
  LITELLM_API_KEY_RESPONSE_GEN=<API KEY for response generation model>
5
5
  LITELLM_API_KEY_PLANNER=<API KEY for the agent's task planner model>
6
- LITELLM_API_KEY_AGENT=<API KEY for the agent model>
6
+ LITELLM_API_KEY_AGENT=<API KEY for the agent model>
7
+ LITELLM_API_KEY_CONVERSATION_STORE=<API KEY for conversation topic/summary generation model>
@@ -41,7 +41,7 @@ class FastWorkflowMCPServer:
41
41
  NOT_FOUND = fastworkflow.get_env_var('NOT_FOUND')
42
42
 
43
43
  # Get available commands from workflow
44
- workflow = fastworkflow.ChatSession.get_active_workflow()
44
+ workflow = fastworkflow.chat_session.get_active_workflow()
45
45
  workflow_folderpath = workflow.folderpath
46
46
  # Use cached routing definition instead of rebuilding every time
47
47
  routing = RoutingRegistry.get_definition(workflow_folderpath)
@@ -147,7 +147,7 @@ class FastWorkflowMCPServer:
147
147
  arguments=arguments
148
148
  )
149
149
 
150
- workflow = fastworkflow.ChatSession.get_active_workflow()
150
+ workflow = fastworkflow.chat_session.get_active_workflow()
151
151
  # Execute using MCP-compliant method
152
152
  return CommandExecutor.perform_mcp_tool_call(
153
153
  workflow,
@@ -203,7 +203,7 @@ class FastWorkflowMCPServer:
203
203
 
204
204
  Falls back to the first available path if the active context is none.
205
205
  """
206
- workflow = fastworkflow.ChatSession.get_active_workflow()
206
+ workflow = fastworkflow.chat_session.get_active_workflow()
207
207
  return workflow.current_command_context_name
208
208
 
209
209
 
@@ -174,8 +174,9 @@ def _ask_user_tool(clarification_request: str, chat_session_obj: fastworkflow.Ch
174
174
  Note that using the wrong command name can produce missing information errors. Double-check with the missing_information_guidance_tool to verify that the correct command name is being used
175
175
  """
176
176
  command_output = fastworkflow.CommandOutput(
177
- command_responses=[fastworkflow.CommandResponse(response=clarification_request)]
178
- )
177
+ command_responses=[fastworkflow.CommandResponse(response=clarification_request)],
178
+ workflow_name = chat_session_obj.get_active_workflow().folderpath.split('/')[-1]
179
+ )
179
180
  chat_session_obj.command_output_queue.put(command_output)
180
181
 
181
182
  user_query = chat_session_obj.user_message_queue.get()
@@ -9,7 +9,7 @@ repository = "https://github.com/radiantlogicinc/fastworkflow"
9
9
 
10
10
  [tool.poetry]
11
11
  name = "fastworkflow"
12
- version = "2.15.13"
12
+ version = "2.16.0"
13
13
  description = "A framework for rapidly building large-scale, deterministic, interactive workflows with a fault-tolerant, conversational UX"
14
14
  authors = ["Dhar Rawal <drawal@radiantlogic.com>"]
15
15
  license = "Apache-2.0"
@@ -31,7 +31,7 @@ exclude = [
31
31
  fastworkflow = "fastworkflow.cli:main"
32
32
 
33
33
  [tool.poetry.dependencies]
34
- python = ">=3.11"
34
+ python = ">=3.11,<3.14"
35
35
  pydantic = "^2.9.2"
36
36
  speedict = "^0.3.12"
37
37
  python-dotenv = "^1.0.1"
@@ -60,9 +60,13 @@ bandit = "^1.7.10"
60
60
  [tool.poetry.group.test.dependencies]
61
61
  pytest = "^8.3.3"
62
62
  requests-mock = "^1.12.1"
63
+ pytest-cov = "^6.2.1"
63
64
 
64
65
  # poetry install --with aws if you are using AWS Bedrock for LLM or LLM_AGENT
65
- pytest-cov = "^6.2.1"
66
66
  [tool.poetry.group.aws.dependencies]
67
67
  boto3 = {version = "1.36.0", optional = true}
68
68
 
69
+
70
+ [tool.poetry.group.fastapi.dependencies]
71
+ fastapi = ">=0.115.5,<0.116.0"
72
+