Skip to content

Add get_prior_action to Application - #943

Open
CanReader wants to merge 1 commit into
apache:mainfrom
CanReader:feat/get-prior-action
Open

CanReader wants to merge 1 commit into
apache:mainfrom
CanReader:feat/get-prior-action

Conversation

@CanReader

Copy link
Copy Markdown

Summary

  • Add Application.get_prior_action(), the counterpart of get_next_action()
  • Returns the action that ran in the last step, or None if nothing has run yet
  • Uses the __PRIOR_STEP value that is already kept in state

Closes #502

Testing

  • Added test_app_get_prior_action, it checks before any step, after each step and after reset_to_entrypoint()
  • tests/core/test_application.py passes locally, pre-commit hooks pass

@github-actions github-actions Bot added the area/core Application, State, Graph, Actions label Oct 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core Application, State, Graph, Actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get last run action from application object

1 participant