fastworkflow 2.17.13__py3-none-any.whl → 2.17.15__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.
@@ -473,6 +473,10 @@ class ChatSession:
473
473
  if os.path.exists("action.jsonl"):
474
474
  os.remove("action.jsonl")
475
475
 
476
+ # store the message as 'raw_user_input' in workflow_context. This is useful in agentic mode
477
+ # when command implementations want to get the exact message that user entered (no refinement)
478
+ self._current_workflow.context['raw_user_message'] = message
479
+
476
480
  refined_user_query = self._refine_user_query(message, self.conversation_history)
477
481
 
478
482
  from fastworkflow.workflow_agent import build_query_with_next_steps
@@ -186,7 +186,7 @@ def _execute_workflow_query(command: str, chat_session_obj: fastworkflow.ChatSes
186
186
 
187
187
  # Clean up the context flag after command execution
188
188
  workflow = chat_session_obj.get_active_workflow()
189
- if workflow and "is_user_command" in workflow.context:
189
+ if "is_user_command" in workflow.context:
190
190
  del workflow.context["is_user_command"]
191
191
 
192
192
  return response_text
@@ -213,6 +213,11 @@ def _ask_user_tool(clarification_request: str, chat_session_obj: fastworkflow.Ch
213
213
  }
214
214
  f.write(json.dumps(agent_user_dialog, ensure_ascii=False) + "\n")
215
215
 
216
+ # store the message as 'raw_user_input' in workflow_context. This is useful in agentic mode
217
+ # when command implementations want to get the exact message that user entered (no refinement)
218
+ workflow = chat_session_obj.get_active_workflow()
219
+ workflow.context['raw_user_message'] = user_query
220
+
216
221
  return build_query_with_next_steps(user_query, chat_session_obj, with_agent_inputs_and_trajectory = True)
217
222
 
218
223
  def initialize_workflow_tool_agent(chat_session: fastworkflow.ChatSession, max_iters: int = 25):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastworkflow
3
- Version: 2.17.13
3
+ Version: 2.17.15
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
@@ -35,7 +35,7 @@ fastworkflow/build/navigator_stub_generator.py,sha256=_DSvHC6r1xWQiFHtUgPhI51nQf
35
35
  fastworkflow/build/pydantic_model_generator.py,sha256=oNyoANyUWBpHG-fE3tGL911RNvDzQXjxAm0ssvuXUH4,1854
36
36
  fastworkflow/build/utterance_generator.py,sha256=UrtkF0wyAZ1hiFitHX0g8w7Wh-D0leLCrP1aUACSfHo,299
37
37
  fastworkflow/cache_matching.py,sha256=OoB--1tO6-O4BKCuCrUbB0CkUr76J62K4VAf6MShi-w,7984
38
- fastworkflow/chat_session.py,sha256=O1HFst4GcglS0xR8lu2iaHiXzmNv0QVhdQ-8Nn2BFRw,35175
38
+ fastworkflow/chat_session.py,sha256=dvRH81Wmj0YCleZaCeWfx9zyqucYCOMJcldhvSLbFeY,35448
39
39
  fastworkflow/cli.py,sha256=n-PFDC0EOkq1zIK1Ip44at-VcaP9cW9aSxZ2IVj3VoE,23796
40
40
  fastworkflow/command_context_model.py,sha256=bQadDB_IH2lc0br46IT07Iej_j2KrAMderiVKqU7gno,15914
41
41
  fastworkflow/command_directory.py,sha256=aJ6UQCwevfF11KbcQB2Qz6mQ7Kj91pZtvHmQY6JFnao,29030
@@ -176,10 +176,10 @@ fastworkflow/utils/react.py,sha256=eROhiG0TQACLqa-4aVQB36kr4KsnqqQTQjqQdMpImCs,1
176
176
  fastworkflow/utils/signatures.py,sha256=uv1HxkVK8yzu6xt0ci8RUSgQW0Njaz22YuJVO_aNUEM,33393
177
177
  fastworkflow/utils/startup_progress.py,sha256=9icSdnpFAxzIq0sUliGpNaH0Efvrt5lDtGfURV5BD98,3539
178
178
  fastworkflow/workflow.py,sha256=37gn7e3ct-gdGw43zS6Ab_ADoJJBO4eJW2PywfUpjEg,18825
179
- fastworkflow/workflow_agent.py,sha256=UKjRTgnO9j7UNZVLPM8_N_g5anrPuJ6sJU8bWO_Z4EE,18434
179
+ fastworkflow/workflow_agent.py,sha256=LRPdl-3lDRPx8pQtK202JWGYMYBNz5Mruy630fCBCk0,18725
180
180
  fastworkflow/workflow_inheritance_model.py,sha256=Pp-qSrQISgPfPjJVUfW84pc7HLmL2evuq0UVIYR51K0,7974
181
- fastworkflow-2.17.13.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
182
- fastworkflow-2.17.13.dist-info/METADATA,sha256=f2_sS01eLGGCtXtYI39KI6Q4E2pfzAaWPOOYZqc0sAQ,30635
183
- fastworkflow-2.17.13.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
184
- fastworkflow-2.17.13.dist-info/entry_points.txt,sha256=m8HqoPzCyaZLAx-V5X8MJgw3Lx3GiPDlxNEZ7K-Gb-U,54
185
- fastworkflow-2.17.13.dist-info/RECORD,,
181
+ fastworkflow-2.17.15.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
182
+ fastworkflow-2.17.15.dist-info/METADATA,sha256=eSes8rfVIc07_sUE8CPJuhCDyHtpcT2ze_4dGmVmkeE,30635
183
+ fastworkflow-2.17.15.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
184
+ fastworkflow-2.17.15.dist-info/entry_points.txt,sha256=m8HqoPzCyaZLAx-V5X8MJgw3Lx3GiPDlxNEZ7K-Gb-U,54
185
+ fastworkflow-2.17.15.dist-info/RECORD,,