Documentation
¶
Overview ¶
Command migration-agent demonstrates snapshots, context compaction, and convergence guard in a database migration workflow.
Overview ¶
A migration agent that:
- Migrates a set of "tables" by calling migrate_table tool iteratively
- Takes automatic snapshots every 2 events (demonstrating fast resume)
- Uses the convergence guard to detect if the same table keeps being retried
- Shows context compaction: after 4 events the context manager summarises
Usage ¶
go run ./examples/migration-agent/ go run ./examples/migration-agent/ -tables 5
Expected output (abridged) ¶
Starting migration: 5 tables Tool: migrate_table(orders) → ok Tool: migrate_table(users) → ok ... Migration complete! Migrated: 5 tables, Skipped: 0, Errors: 0
Click to show internal directories.
Click to hide internal directories.