Spaces:
Running
Running
|
Download plugins/_migrate_agents/api/migration_import.py.dox.md from Leon4gr45/openoperator: direct link, hf CLI and curl.
- Browser
- Download file 762 Bytes
-
https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/plugins/_migrate_agents/api/migration_import.py.dox.md
- Command line
-
hf download hf://spaces/Leon4gr45/openoperator/plugins/_migrate_agents/api/migration_import.py.dox.md
-
curl -L -o migration_import.py.dox.md https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/plugins/_migrate_agents/api/migration_import.py.dox.md
762 Bytes
migration_import.py DOX
Purpose
Commit a previously reviewed harness export into native Agent Zero storage.
Contract
- Auth and CSRF use the default
ApiHandlerprotections. - Accepts the same multipart export as the preview endpoint plus category toggles.
- Creates new chat IDs; it never overwrites an existing chat.
- Writes imported knowledge below
usr/knowledge/_migrate_agents/and skills belowusr/skills/_migrate_agents/using unique directories and atomic files. - Does not import credentials, provider keys, authentication state, schedules, channel bindings, or executable runtime services.
Verification
Run python -m pytest plugins/_migrate_agents/tests -q, then exercise preview and import against the live framework runtime.