mikepsinn / positron

AI Agents for Semi-Autonomous Public Goods Production
GNU General Public License v3.0
6 stars 1 forks source link

Sweep: Create GitHub API agent API and chat UI #6

Open mikepsinn opened 9 months ago

mikepsinn commented 9 months ago

Details

We want a comprehensive AI agent that utilizes the GitHub API to fulfill a wide range of GitHub-related requests expressed in natural language by users.

Example Request from User: "Please create a feature comparison spreadsheet of all collective intelligence platforms"

Example Output: a CSV file containing rows of GitHub projects with columns for all factors relevant to the selection of an optimal platform.

Objectives

  1. Natural Language Processing: The agent should understand and process requests stated in natural language, converting them into actionable GitHub API queries.

  2. Versatile Functionality: Ability to handle diverse tasks such as data retrieval, repository analysis, issue and pull request management, and more, based on user queries.

  3. Integration with GitHub Webhooks: The agent should respond to GitHub events like issue creation, modification, and comments.

  4. API with OpenAPI Documentatation: ttyr65y

Use Cases

Technical Requirements

Checklist - [X] Create `src/agent_core.py` ✓ https://github.com/wishocracy/positron/commit/43f2b361dc255f598255173ffdd7001efde9c30e [Edit](https://github.com/wishocracy/positron/edit/sweep/create_github_api_agent_api_and_chat_ui/src/agent_core.py) - [X] Running GitHub Actions for `src/agent_core.py` ✓ [Edit](https://github.com/wishocracy/positron/edit/sweep/create_github_api_agent_api_and_chat_ui/src/agent_core.py) - [X] Create `src/nlp.py` ✓ https://github.com/wishocracy/positron/commit/d535c5c2e979dfa74e74ad29b7c57e1372e6e408 [Edit](https://github.com/wishocracy/positron/edit/sweep/create_github_api_agent_api_and_chat_ui/src/nlp.py) - [X] Running GitHub Actions for `src/nlp.py` ✓ [Edit](https://github.com/wishocracy/positron/edit/sweep/create_github_api_agent_api_and_chat_ui/src/nlp.py) - [X] Create `src/github_api.py` ✓ https://github.com/wishocracy/positron/commit/85a341ce15b4ca362010c55fe354419a5c82a2ed [Edit](https://github.com/wishocracy/positron/edit/sweep/create_github_api_agent_api_and_chat_ui/src/github_api.py) - [X] Running GitHub Actions for `src/github_api.py` ✓ [Edit](https://github.com/wishocracy/positron/edit/sweep/create_github_api_agent_api_and_chat_ui/src/github_api.py) - [X] Create `src/chat_ui.py` ✓ https://github.com/wishocracy/positron/commit/22bf1bbd9ccaa9481f97f88cb9b291bc4d219251 [Edit](https://github.com/wishocracy/positron/edit/sweep/create_github_api_agent_api_and_chat_ui/src/chat_ui.py) - [X] Running GitHub Actions for `src/chat_ui.py` ✓ [Edit](https://github.com/wishocracy/positron/edit/sweep/create_github_api_agent_api_and_chat_ui/src/chat_ui.py) - [X] Create `src/main.py` ✓ https://github.com/wishocracy/positron/commit/f9fb95fa2263f75b29e290aac7a9065aef1394dd [Edit](https://github.com/wishocracy/positron/edit/sweep/create_github_api_agent_api_and_chat_ui/src/main.py#L1-L100) - [X] Running GitHub Actions for `src/main.py` ✓ [Edit](https://github.com/wishocracy/positron/edit/sweep/create_github_api_agent_api_and_chat_ui/src/main.py#L1-L100) - [X] Modify `requirements.txt` ✓ https://github.com/wishocracy/positron/commit/90158b6668928e54d6a53b6288d933bd6d8a3188 [Edit](https://github.com/wishocracy/positron/edit/sweep/create_github_api_agent_api_and_chat_ui/requirements.txt#L1-L10) - [X] Running GitHub Actions for `requirements.txt` ✓ [Edit](https://github.com/wishocracy/positron/edit/sweep/create_github_api_agent_api_and_chat_ui/requirements.txt#L1-L10)
sweep-ai[bot] commented 9 months ago

🚀 Here's the PR! #7

See Sweep's progress at the progress dashboard!
Sweep Basic Tier: I'm using GPT-4. You have 5 GPT-4 tickets left for the month and 3 for the day. (tracking ID: acae60849f)

For more GPT-4 tickets, visit our payment portal. For a one week free trial, try Sweep Pro (unlimited GPT-4 tickets).

[!TIP] I can email you next time I complete a pull request if you set up your email here!


Actions (click)

Sandbox Execution ✓

Here are the sandbox execution logs prior to making any changes:

Sandbox logs for ba59392
Checking requirements.txt for syntax errors... ✅ requirements.txt has no syntax errors! 1/1 ✓
Checking requirements.txt for syntax errors...
✅ requirements.txt 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/wishocracy/positron/blob/ba59392ad12afcff12d42a009713ef562b5d7741/docs/positron-network-architect-agent/github-integration/api-interaction.md#L1-L22 https://github.com/wishocracy/positron/blob/ba59392ad12afcff12d42a009713ef562b5d7741/docs/agent-ideas/coordinator-agents.md#L1-L26 https://github.com/wishocracy/positron/blob/ba59392ad12afcff12d42a009713ef562b5d7741/docs/positron-network-architect-agent/github-integration/pull-requests.md#L1-L21 https://github.com/wishocracy/positron/blob/ba59392ad12afcff12d42a009713ef562b5d7741/docs/positron-network-architect-agent/positron-network-architect-agent.md#L1-L42 https://github.com/wishocracy/positron/blob/ba59392ad12afcff12d42a009713ef562b5d7741/docs/collabathons/collabathons.md#L14-L82 https://github.com/wishocracy/positron/blob/ba59392ad12afcff12d42a009713ef562b5d7741/docs/human-ai-cooperation.md#L1-L56

Step 2: ⌨️ Coding

Ran GitHub Actions for 43f2b361dc255f598255173ffdd7001efde9c30e:

Ran GitHub Actions for d535c5c2e979dfa74e74ad29b7c57e1372e6e408:

Ran GitHub Actions for 85a341ce15b4ca362010c55fe354419a5c82a2ed:

Ran GitHub Actions for 22bf1bbd9ccaa9481f97f88cb9b291bc4d219251:

Ran GitHub Actions for f9fb95fa2263f75b29e290aac7a9065aef1394dd:

--- 
+++ 
@@ -5,3 +5,6 @@
 python-dotenv
 openai
 autogen
+NLTK
+spaCy
+Django

Ran GitHub Actions for 90158b6668928e54d6a53b6288d933bd6d8a3188:


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/create_github_api_agent_api_and_chat_ui.


🎉 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