mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -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
36 lines
780 B
Plaintext
36 lines
780 B
Plaintext
{
|
|
"store_listing_version_id": "test-version-id",
|
|
"slug": "test-agent",
|
|
"agent_name": "Test Agent",
|
|
"agent_video": "video.mp4",
|
|
"agent_output_demo": "demo.mp4",
|
|
"agent_image": [
|
|
"image1.jpg",
|
|
"image2.jpg"
|
|
],
|
|
"creator": "creator1",
|
|
"creator_avatar": "avatar1.jpg",
|
|
"sub_heading": "Test agent subheading",
|
|
"description": "Test agent description",
|
|
"instructions": null,
|
|
"categories": [
|
|
"category1",
|
|
"category2"
|
|
],
|
|
"runs": 100,
|
|
"rating": 4.5,
|
|
"versions": [
|
|
"1.0.0",
|
|
"1.1.0"
|
|
],
|
|
"graph_id": "test-graph-id",
|
|
"graph_versions": [
|
|
"1",
|
|
"2"
|
|
],
|
|
"last_updated": "2023-01-01T00:00:00",
|
|
"recommended_schedule_cron": null,
|
|
"active_version_id": "test-version-id",
|
|
"has_approved_version": true,
|
|
"changelog": null
|
|
} |