Skip to content
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(platform): Agent Presets #9541

Draft
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

Pwuts
Copy link
Member

@Pwuts Pwuts commented Feb 28, 2025

Note

This work is on ice for the moment, pending amendment of the LibraryAgent object and all related views and logic to be version-agnostic w.r.t. the connected AgentGraph.

Changes 🏗️

  • feat(frontend): Add logic to fetch, select/view, and create presets to /library/agents/[id]

  • feat(backend): Add graph_id filter parameter to GET /library/presets (list_presets) endpoint

  • fix(backend): Update DB schema

    • Fix relationships between LibraryAgent, AgentGraph, and AgentPreset
    • Impose uniqueness constraint on LibraryAgent
    • Update relationship names for DX (clarity and correct plurality)
  • refactor(frontend): Brand LibraryAgentPreset.id + references

  • refactor(frontend): Brand GraphExecution.execution_id and Schedule.id

TODO

  • feat(frontend): Add UI elements to show presets in the list of agent runs in AgentRunsSelectorList
  • feat(frontend): Add dialog to specify name+description when creating a preset

Checklist 📋

For code changes:

  • I have clearly listed my changes in the PR description
  • I have made a test plan
  • I have tested my changes according to the test plan:
    • ...
Example test plan
  • Create from scratch and execute an agent with at least 3 blocks
  • Import an agent from file upload, and confirm it executes correctly
  • Upload agent to marketplace
  • Import an agent from marketplace and confirm it executes correctly
  • Edit an agent from monitor, and confirm it executes correctly

@github-actions github-actions bot added platform/frontend AutoGPT Platform - Front end platform/backend AutoGPT Platform - Back end size/xl labels Feb 28, 2025
Copy link

netlify bot commented Feb 28, 2025

Deploy Preview for auto-gpt-docs-dev canceled.

Name Link
🔨 Latest commit e908213
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs-dev/deploys/67c1a9f623ad700008e6bdb9

Copy link

deepsource-io bot commented Feb 28, 2025

Here's the code health analysis summary for commits 52ee7d1..e908213. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ Success
❗ 186 occurences introduced
🎯 172 occurences resolved
View Check ↗
DeepSource Python LogoPython✅ Success
❗ 69 occurences introduced
🎯 55 occurences resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link

netlify bot commented Feb 28, 2025

Deploy Preview for auto-gpt-docs canceled.

Name Link
🔨 Latest commit e908213
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/67c1a9f657bb930008d9d8e2

…dpoints)

Frontend:
- Add logic to fetch, select/view, and create presets to `/library/agents/[id]`
- refactor: Brand `LibraryAgentPreset.id` + references

Backend:
- Add `graph_id` filter parameter to `GET /library/presets` (`list_presets`) endpoint
@Pwuts
Copy link
Member Author

Pwuts commented Feb 28, 2025

This work is on ice for the moment, pending amendment of the LibraryAgent object and all related views and logic to be version-agnostic w.r.t. the connected AgentGraph.

@github-actions github-actions bot added the conflicts Automatically applied to PRs with merge conflicts label Mar 3, 2025
Copy link
Contributor

github-actions bot commented Mar 3, 2025

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflicts Automatically applied to PRs with merge conflicts platform/backend AutoGPT Platform - Back end platform/frontend AutoGPT Platform - Front end size/xl
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant