-
Notifications
You must be signed in to change notification settings - Fork 44.7k
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
feat(rnd) Agent Marketplace MVP #7657
feat(rnd) Agent Marketplace MVP #7657
Conversation
✅ Deploy Preview for auto-gpt-docs canceled.
|
✅ Deploy Preview for auto-gpt-docs canceled.
|
CI Failure Feedback 🧐(Checks updated until commit 25376f7)
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7657 +/- ##
==========================================
+ Coverage 49.63% 53.82% +4.19%
==========================================
Files 146 124 -22
Lines 8926 7032 -1894
Branches 1242 912 -330
==========================================
- Hits 4430 3785 -645
+ Misses 4348 3113 -1235
+ Partials 148 134 -14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
User description
Background
We want to have a marketplace for users to upload and download various agents. This is the backbone.
Changes 🏗️
Adds the marketplace backend and frontend with significant changes
PR Quality Scorecard ✨
+2 pts
+5 pts
+5 pts
+5 pts
-4 pts
+4 pts
+5 pts
-5 pts
agbenchmark
to verify that these changes do not regress performance?+10 pts
PR Type
Enhancement, Tests, Documentation
Description
Agents
,AnalyticsTracker
, andFeaturedAgent
tables.Changes walkthrough 📝
23 files
server.py
Add UUID `id` field to `graph` in `create_graph` function.
rnd/autogpt_server/autogpt_server/server/server.py
id
field tograph
with a UUID.app.py
Refactor app setup and add health check endpoint.
rnd/market/market/app.py
db.py
Implement database interaction functions for agents.
rnd/market/market/db.py
model.py
Add Pydantic models for agent-related data.
rnd/market/market/model.py
admin.py
Add admin routes for agent management.
rnd/market/market/routes/admin.py
agents.py
Add routes for listing, retrieving, and downloading agents.
rnd/market/market/routes/agents.py
search.py
Add search endpoint for agents.
rnd/market/market/routes/search.py
analytics.py
Add analytics tracking for agent views and downloads.
rnd/market/market/utils/analytics.py
extension_types.py
Add custom Prisma model for agents with rank.
rnd/market/market/utils/extension_types.py
partial_types.py
Add partial types for Prisma models.
rnd/market/market/utils/partial_types.py
scripts.py
Add utility scripts for project management.
rnd/market/scripts.py
running the app.
page.tsx
Add agent detail page.
rnd/autogpt_builder/src/app/marketplace/[id]/page.tsx
page.tsx
Add marketplace page with search and pagination.
rnd/autogpt_builder/src/app/marketplace/page.tsx
AgentDetailContent.tsx
Add component for displaying agent details.
rnd/autogpt_builder/src/components/AgentDetailContent.tsx
NavBar.tsx
Add marketplace link to navigation bar.
rnd/autogpt_builder/src/components/NavBar.tsx
client.ts
Add marketplace API client.
rnd/autogpt_builder/src/lib/marketplace-api/client.ts
index.ts
Export marketplace API client and types.
rnd/autogpt_builder/src/lib/marketplace-api/index.ts
types.ts
Add types for marketplace API.
rnd/autogpt_builder/src/lib/marketplace-api/types.ts
migration.sql
Add base migration for `Agents` and `AnalyticsTracker` tables.
rnd/market/migrations/20240731181721_base_migration/migration.sql
Agents
andAnalyticsTracker
tables.migration.sql
Add unique constraint on `agentId` in `AnalyticsTracker`.
rnd/market/migrations/20240731213728_unique_agent_id/migration.sql
agentId
inAnalyticsTracker
.migration.sql
Add `FeaturedAgent` table.
rnd/market/migrations/20240802100955_add_featured_agents/migration.sql
FeaturedAgent
table.migration.sql
Set default value of `is_featured` to false in `FeaturedAgent`.
rnd/market/migrations/20240802174953_default_is_featured_to_false/migration.sql
is_featured
to false inFeaturedAgent
.schema.prisma
Update Prisma schema for
Agents
,AnalyticsTracker
, andFeaturedAgent
.rnd/market/schema.prisma
Agents
,AnalyticsTracker
, andFeaturedAgent
.1 files
linter.py
Remove linter script.
rnd/market/linter.py
1 files
test_agents.py
Add tests for agent listing and retrieval.
rnd/market/tests/test_agents.py
5 files
all-projects.code-workspace
Add `market` project to workspace.
.vscode/all-projects.code-workspace
market
project to workspace..env.example
Add environment variables for marketplace API.
rnd/autogpt_builder/.env.example
launch.json
Add launch configuration for FastAPI.
rnd/market/.vscode/launch.json
migration_lock.toml
Add migration lock file.
rnd/market/migrations/migration_lock.toml
pyproject.toml
Update dependencies and scripts.
rnd/market/pyproject.toml
1 files
README.md
Update README with getting started instructions and commands.
rnd/market/README.md