Skip to content

feat: add WorkflowContext.reset()#5

Merged
practicalmind-dev merged 1 commit intoPracticalMind:mainfrom
sablecode:feat/workflow-context-reset
Apr 2, 2026
Merged

feat: add WorkflowContext.reset()#5
practicalmind-dev merged 1 commit intoPracticalMind:mainfrom
sablecode:feat/workflow-context-reset

Conversation

@sablecode
Copy link
Copy Markdown
Contributor

Summary

Adds a WorkflowContext.reset() method so workflows can be reused from a clean state without constructing a new context object.

Changes

  • restore confidence to the configured initial confidence
  • clear accumulated step history
  • emit a workflow_reset log entry
  • add a regression test covering reset behavior

Testing

  • pytest tests/core/test_context.py -q

Closes #3

@practicalmind-dev practicalmind-dev merged commit db598af into PracticalMind:main Apr 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WorkflowContext: add reset() method

2 participants