Skip to content
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

Add warning_budget_increment parameter to trigger warnings at cost thresholds #7639

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

xingyaoww
Copy link
Collaborator

@xingyaoww xingyaoww commented Apr 1, 2025

This PR implements a mechanism that pauses the agent when the accumulated cost reaches certain thresholds and shows a toast notification in the frontend asking for user approval to continue.


To run this PR locally, use the following command:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:32169bc-nikolaik   --name openhands-app-32169bc   docker.all-hands.dev/all-hands-ai/openhands:32169bc

@xingyaoww xingyaoww changed the title Add cost threshold mechanism to pause agent at 5 USD Add cost threshold mechanism to pause agent at 50% of max budget Apr 1, 2025
@xingyaoww xingyaoww changed the title Add cost threshold mechanism to pause agent at 50% of max budget Add warning_budget_increment parameter to trigger warnings at cost thresholds Apr 1, 2025
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.

3 participants