AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

feat(backend): Agent Presets backend improvements

Open Pwuts opened this issue 7 months ago β€’ 9 comments

  • Part of #9307

  • ❗ Blocks #9541

Changes πŸ—οΈ

Backend:

  • Fix+improve GET /library/presets (list_presets) endpoint

    • Fix pagination
    • Add graph_id filter parameter
  • Allow partial preset updates: PUT /presets/{preset_id} -> PATCH /presets/{preset_id}

  • Allow creating preset from graph execution through POST /presets

  • Clean up models & DB functions

    • Split upsert_preset into create_preset + update_preset
    • Add LibraryAgentPresetUpdatable
    • Replace CreateLibraryAgentPresetRequest with LibraryAgentPresetCreatable
      • Use LibraryAgentPresetCreatable as base class for LibraryAgentPreset
    • Remove redundant set_is_deleted_for_library_agent(..)
    • Improve log statements
    • Improve DB statements (e.g. by using unique keys where possible)

Frontend:

  • Add timestamp parsing logic to library agent preset endpoints
  • Brand LibraryAgentPreset.id + references

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] CI green
    • Since these changes don't affect existing front-end functionality, no additional testing is needed.

Pwuts avatar Apr 08 '25 09:04 Pwuts

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

Name Link
Latest commit bd9dd8462a35a115815ff8b4fc63dba51bb53c1b
Latest deploy log https://app.netlify.com/projects/auto-gpt-docs-dev/deploys/6841bbba4d3de400081e4b8e

netlify[bot] avatar Apr 08 '25 09:04 netlify[bot]

Here's the code health analysis summary for commits 7d10dc4..bd9dd84. View details on DeepSourceΒ β†—.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScriptβœ…Β Success
❗ 2 occurences introduced
🎯 17 occurences resolved
View CheckΒ β†—
DeepSource Python LogoPythonβœ…Β Success
❗ 3 occurences introduced
🎯 4 occurences resolved
View CheckΒ β†—

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

deepsource-io[bot] avatar Apr 08 '25 09:04 deepsource-io[bot]

Deploy Preview for auto-gpt-docs canceled.

Name Link
Latest commit bd9dd8462a35a115815ff8b4fc63dba51bb53c1b
Latest deploy log https://app.netlify.com/projects/auto-gpt-docs/deploys/6841bbbab20bce00082d37d3

netlify[bot] avatar Apr 08 '25 09:04 netlify[bot]

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

github-actions[bot] avatar Apr 10 '25 11:04 github-actions[bot]

Conflicts have been resolved! πŸŽ‰ A maintainer will review the pull request shortly.

github-actions[bot] avatar Apr 10 '25 11:04 github-actions[bot]

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

github-actions[bot] avatar Apr 10 '25 21:04 github-actions[bot]

Conflicts have been resolved! πŸŽ‰ A maintainer will review the pull request shortly.

github-actions[bot] avatar Apr 10 '25 21:04 github-actions[bot]

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

github-actions[bot] avatar Apr 11 '25 19:04 github-actions[bot]

Let me know when you have resolved the conflicts so I can reapprove

majdyz avatar Apr 21 '25 05:04 majdyz

Conflicts have been resolved! πŸŽ‰ A maintainer will review the pull request shortly.

github-actions[bot] avatar May 19 '25 22:05 github-actions[bot]

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

github-actions[bot] avatar May 24 '25 15:05 github-actions[bot]

Conflicts have been resolved! πŸŽ‰ A maintainer will review the pull request shortly.

github-actions[bot] avatar Jun 05 '25 15:06 github-actions[bot]