-
Notifications
You must be signed in to change notification settings - Fork 8.7k
better descripiton for extract #3468
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
Agent Task Evaluation Results: 2/2 (100%)View detailed results
Check the evaluate-tasks job for detailed task execution logs. |
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.
1 issue found across 2 files
Prompt for AI agents (all 1 issues)
Understand the root cause of the following 1 issues and fix them.
<file name="browser_use/tools/service.py">
<violation number="1" location="browser_use/tools/service.py:588">
`params` is still a plain dict when this action runs, so accessing `params.query` raises an AttributeError and breaks the extract action.</violation>
</file>
React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.
| ): | ||
| # Constants | ||
| MAX_CHAR_LIMIT = 30000 | ||
| query = params.query |
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.
params is still a plain dict when this action runs, so accessing params.query raises an AttributeError and breaks the extract action.
Prompt for AI agents
Address the following comment on browser_use/tools/service.py at line 588:
<comment>`params` is still a plain dict when this action runs, so accessing `params.query` raises an AttributeError and breaks the extract action.</comment>
<file context>
@@ -577,15 +578,16 @@ async def close(params: CloseTabAction, browser_session: BrowserSession):
):
# Constants
MAX_CHAR_LIMIT = 30000
+ query = params.query
+ extract_links = params.extract_links
+ start_from_char = params.start_from_char
</file context>
Auto-generated PR for: better descripiton for extract
Note
Replace extract’s loose params with a new ExtractAction model and adjust handling/error text accordingly.
browser_use/tools/service.py):params: ExtractAction; readquery,extract_links,start_from_charfromparams.start_from_charbounds.browser_use/tools/views.py):ExtractActionwithquery,extract_links,start_from_char.Written by Cursor Bugbot for commit 1383604. This will update automatically on new commits. Configure here.