causal_agent.create_workflow_state_update
- causal_agent.create_workflow_state_update(current_step, step_completed_flag, next_tool, next_step_reason, error=None)[source]
Create a standardized workflow state update dictionary.
- Parameters:
current_step (str) – Current step in the workflow (e.g., “input_processing”)
step_completed_flag (bool) – Flag indicating which step was completed (e.g., “query_parsed”)
next_tool (str) – Name of the next tool to call
next_step_reason (str) – Reason message for the next step
error (str | None) – Optional error message if the step failed
- Returns:
Dictionary containing the workflow_state sub-dictionary
- Return type: