suna/backend/agent
marko-kraemer adf9326f61 feat: implement JSON agent export/import with improved UX
- Add backend API endpoints for agent export/import
  - GET /agents/{agent_id}/export - exports agent configuration as JSON
  - POST /agents/import - imports agent from JSON (new agents only)
  - Add AgentExportData and AgentImportRequest Pydantic models

- Integrate export functionality in agent config header
  - Add always-visible 3-dots menu left of "Prompt to Build" tab
  - Include export option in dropdown menu for all agent types
  - Handle loading states during export process

- Add subtle import functionality to new agent dialog
  - Replace mode selection with "or import from JSON" link
  - Support file upload and validation for agent JSON
  - Streamline UX for creating agents from templates

- Create React Query hooks for export/import operations
  - useExportAgent: handles JSON download with proper error handling
  - useImportAgent: creates new agent and invalidates cache

- Remove update existing agent option (import creates new agents only)
- Fix API integration to use direct fetch calls with backend URL
- Clean up unused components and improve code organization

This enables users to share agent configurations across instances
and create agents from templates with an intuitive interface.
2025-08-03 02:01:31 +02:00
..
sample_responses update description and prompt 2025-08-02 18:56:24 +05:30
suna fix potential 2025-08-02 20:57:29 +02:00
tools update description and prompt 2025-08-02 18:56:24 +05:30
versioning refactor versioning 2025-07-29 23:41:22 +05:30
__init__.py agent wip 2025-04-11 00:53:01 +01:00
agent_builder_prompt.py feat: add dynamic datetime variables to agent prompts 2025-08-01 16:11:35 +08:00
api.py feat: implement JSON agent export/import with improved UX 2025-08-03 02:01:31 +02:00
config_helper.py refactor versioning 2025-07-29 23:41:22 +05:30
custom_prompt.py feat: add dynamic datetime variables to agent prompts 2025-08-01 16:11:35 +08:00
gemini_prompt.py feat: add dynamic datetime variables to agent prompts 2025-08-01 16:11:35 +08:00
prompt.py Merge branch 'main' into feat/task_list_tool 2025-08-02 20:46:23 +02:00
run.py Merge branch 'main' into feat/task_list_tool 2025-08-02 20:46:23 +02:00
utils.py feat: app profile integrations UI 2025-07-11 10:14:59 +05:30