-
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
fix(store) : Download agent from store if user is not logged in #9121
base: dev
Are you sure you want to change the base?
Conversation
- Added a new endpoint to download agent files as JSON, allowing users to retrieve agent data by store listing version ID and version number. - Introduced a new `get_agent` function in the database module to fetch agent details and prepare the graph data for download. - Enhanced the frontend `AgentInfo` component to include a download button, which triggers the download of the agent file. - Integrated loading state and user feedback via toast notifications during the download process. - Updated the API client to support the new download functionality.
This pull request has been ignored for the connected project Preview Branches by Supabase. |
This PR targets the Automatically setting the base branch to |
✅ Deploy Preview for auto-gpt-docs canceled.
|
✅ Deploy Preview for auto-gpt-docs-dev canceled.
|
graph_data = await backend.server.v2.store.db.get_agent( | ||
store_listing_version_id=store_listing_version_id, version_id=version | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are missing adding any form of sanitization before returning the json.
Specifically there are no checks to ensure credentials are removed or agent input node values.
Changes
get_agent
function in the database module to fetch agent details and prepare the graph data for download.AgentInfo
component to include a download button, which triggers the download of the agent file.Demo video
Untitled.video.-.Made.with.Clipchamp.3.mp4
Example Json