Spaces:
Running
Running
File size: 762 Bytes
6918275 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # migration_import.py DOX
## Purpose
Commit a previously reviewed harness export into native Agent Zero storage.
## Contract
- Auth and CSRF use the default `ApiHandler` protections.
- 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 below `usr/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.
|