mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
Enhance dead-loop recovery by pausing agent and reprompting (#11439)
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com> Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -10,6 +10,7 @@ from openhands.events.action.agent import (
|
||||
ChangeAgentStateAction,
|
||||
CondensationAction,
|
||||
CondensationRequestAction,
|
||||
LoopRecoveryAction,
|
||||
RecallAction,
|
||||
TaskTrackingAction,
|
||||
)
|
||||
@@ -48,6 +49,7 @@ actions = (
|
||||
CondensationRequestAction,
|
||||
MCPAction,
|
||||
TaskTrackingAction,
|
||||
LoopRecoveryAction,
|
||||
)
|
||||
|
||||
ACTION_TYPE_TO_CLASS = {action_class.action: action_class for action_class in actions} # type: ignore[attr-defined]
|
||||
|
||||
Reference in New Issue
Block a user