-
Notifications
You must be signed in to change notification settings - Fork 59
Port over stuck detector #335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
xingyaoww
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM - a few things we need to address
| if is_stuck: | ||
| logger.warning("Stuck pattern detected.") | ||
| # FIXME: raise error or handle differently? | ||
| break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should add a new AgentStatus to Agent stuck in loop maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, I added a new status in the latest commit.
BTW, WDYT about the idea that, instead of raising an error and stop, we can (1) send a MessageAction to prompt the agent to do differently? Or even better but more complex, we can try to switch to a different model to handle this current turn (given that strong LLMs rarely get stuck I believe) -- If that makes sense I can create an issue for it.
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
|
Looks like there are a few issues preventing this PR from being merged!
If you'd like me to help, just leave a comment, like Feel free to include any additional details that might help me get this PR into a better state. You can manage your notification settings |
xingyaoww
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Agent Server image for this PR Pull (multi-arch manifest): docker pull ghcr.io/all-hands-ai/agent-server:83a04d5Run: docker run -it --rm \
-p 8000:8000 \
--name agent-server-83a04d5 \
ghcr.io/all-hands-ai/agent-server:83a04d5This tag is a multi-arch manifest (amd64/arm64). Your client pulls the right arch automatically. |
Fix #281