mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
These changes were part of #12206, but here they are separately for easier review. This is all primarily to make the v2 API (#11678) work possible/easier. ### Changes 🏗️ - Fix relations between `Profile`, `StoreListing`, and `AgentGraph` - Redefine `StoreSubmission` view with more efficient joins (100x speed-up on dev DB) and more consistent field names - Clean up query functions in `store/db.py` - Clean up models in `store/model.py` - Add missing fields to `StoreAgent` and `StoreSubmission` views - Rename ambiguous `agent_id` -> `graph_id` - Clean up API route definitions & docs in `store/routes.py` - Make routes more consistent - Avoid collision edge-case between `/agents/{username}/{agent_name}` and `/agents/{store_listing_version_id}/*` - Replace all usages of legacy `BackendAPI` for store endpoints with generated client - Remove scope requirements on public store endpoints in v1 external API ### Checklist 📋 #### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: - [x] Test all Marketplace views (including admin views) - [x] Download an agent from the marketplace - [x] Submit an agent to the Marketplace - [x] Approve/reject Marketplace submission
100 lines
2.0 KiB
Plaintext
100 lines
2.0 KiB
Plaintext
{
|
|
"creators": [
|
|
{
|
|
"username": "creator0",
|
|
"name": "Creator 0",
|
|
"description": "Creator 0 description",
|
|
"avatar_url": "avatar0.jpg",
|
|
"links": [
|
|
"user0.link.com"
|
|
],
|
|
"is_featured": false,
|
|
"num_agents": 1,
|
|
"agent_runs": 100,
|
|
"agent_rating": 4.5,
|
|
"top_categories": [
|
|
"cat1",
|
|
"cat2",
|
|
"cat3"
|
|
]
|
|
},
|
|
{
|
|
"username": "creator1",
|
|
"name": "Creator 1",
|
|
"description": "Creator 1 description",
|
|
"avatar_url": "avatar1.jpg",
|
|
"links": [
|
|
"user1.link.com"
|
|
],
|
|
"is_featured": false,
|
|
"num_agents": 1,
|
|
"agent_runs": 100,
|
|
"agent_rating": 4.5,
|
|
"top_categories": [
|
|
"cat1",
|
|
"cat2",
|
|
"cat3"
|
|
]
|
|
},
|
|
{
|
|
"username": "creator2",
|
|
"name": "Creator 2",
|
|
"description": "Creator 2 description",
|
|
"avatar_url": "avatar2.jpg",
|
|
"links": [
|
|
"user2.link.com"
|
|
],
|
|
"is_featured": false,
|
|
"num_agents": 1,
|
|
"agent_runs": 100,
|
|
"agent_rating": 4.5,
|
|
"top_categories": [
|
|
"cat1",
|
|
"cat2",
|
|
"cat3"
|
|
]
|
|
},
|
|
{
|
|
"username": "creator3",
|
|
"name": "Creator 3",
|
|
"description": "Creator 3 description",
|
|
"avatar_url": "avatar3.jpg",
|
|
"links": [
|
|
"user3.link.com"
|
|
],
|
|
"is_featured": false,
|
|
"num_agents": 1,
|
|
"agent_runs": 100,
|
|
"agent_rating": 4.5,
|
|
"top_categories": [
|
|
"cat1",
|
|
"cat2",
|
|
"cat3"
|
|
]
|
|
},
|
|
{
|
|
"username": "creator4",
|
|
"name": "Creator 4",
|
|
"description": "Creator 4 description",
|
|
"avatar_url": "avatar4.jpg",
|
|
"links": [
|
|
"user4.link.com"
|
|
],
|
|
"is_featured": false,
|
|
"num_agents": 1,
|
|
"agent_runs": 100,
|
|
"agent_rating": 4.5,
|
|
"top_categories": [
|
|
"cat1",
|
|
"cat2",
|
|
"cat3"
|
|
]
|
|
}
|
|
],
|
|
"pagination": {
|
|
"total_items": 15,
|
|
"total_pages": 3,
|
|
"current_page": 2,
|
|
"page_size": 5
|
|
}
|
|
} |