sweepai / sweep

Sweep: open-source AI-powered Software Developer for small features and bug fixes.
https://sweep.dev
Other
7.47k stars 432 forks source link

Sweep: create a new agent to be used in ticket_utils.py #2767

Open wwzeng1 opened 11 months ago

wwzeng1 commented 11 months ago

Details

The agent should filter unnecessary terms out of the search query to be sent into lexical search. Use a prompt to do this, using name_agent.py as a reference

sweep-nightly[bot] commented 11 months ago
Sweeping

✨ Track Sweep's progress on our progress dashboard!


50%
πŸ’Ž Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: 7bc8e3e248)

[!TIP] I'll email you at william@sweep.dev when I complete this pull request!


Actions (click)

GitHub Actionsβœ“

Here are the GitHub Actions logs prior to making any changes:

Sandbox logs for 0db6b3e
Checking sweepai/utils/ticket_utils.py for syntax errors... βœ… sweepai/utils/ticket_utils.py has no syntax errors! 1/1 βœ“
Checking sweepai/utils/ticket_utils.py for syntax errors...
βœ… sweepai/utils/ticket_utils.py has no syntax errors!

Sandbox passed on the latest main, so sandbox checks will be enabled for this issue.


Step 1: πŸ”Ž Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/sweepai/sweep/blob/0db6b3ed20bc3c50be0fff20bb33516d7fa8811a/sweepai/core/prompts.py#L853-L861 https://github.com/sweepai/sweep/blob/0db6b3ed20bc3c50be0fff20bb33516d7fa8811a/sweepai/utils/ticket_utils.py#L92-L113 https://github.com/sweepai/sweep/blob/0db6b3ed20bc3c50be0fff20bb33516d7fa8811a/sweepai/agents/name_agent.py#L5-L55

Step 2: ⌨️ Coding

Ran GitHub Actions for 1b24e73308bdcba66960dde23ceff6ae2811eccf:
β€’ Vercel Preview Comments: βœ“


Step 3: πŸ” Code Review

Working on it...


πŸŽ‰ Latest improvements to Sweep:


πŸ’‘ To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord