Architecture Migration Guide
Most users don’t need to migrate. New agents automatically use the current architecture. This guide is for existing agents with explicit agent_type parameters.
Should You Migrate?
Migrate if:
- You want better performance on GPT-5, Claude Sonnet 4.5, or other frontier models
- You want to use models that support native reasoning
- You’re experiencing issues with legacy architectures
Don’t migrate if:
- Your agents are working well and you’re not using new models
- You have critical integrations depending on heartbeats or send_message
- You need time to test the new architecture first
What Changes
Breaking Changes
What Stays the Same
- Memory blocks work identically
- Archival memory & recall tools unchanged
- Custom tools work the same way
- API authentication & endpoints
Migration Steps
Step 1: Export Your Agent
Download your agent configuration as an agent file:
Step 2: Update Agent Type
Open the agent file and change the agent_type:
Change to:
Step 3: Clear Message Context (If Needed)
If your agent has send_message tool calls in its context, you’ll need to clear the message history:
Change to:
Note: Clearing message context will make your agent forget its immediate conversation history. You may need to provide a brief reminder about recent interactions after migration.
Step 4: Update System Prompt (Optional)
The default system prompt for letta_v1_agent is different. You may want to update it for optimal performance:
Step 5: Import Updated Agent
Upload the modified agent file:
Step 6: Test Your Agent
Send a test message to verify the migration worked:
Automated Migration Script
Here’s a helper script to automate the migration process:
Migration by Architecture Type
From memgpt_agent
- Export agent file
- Change
agent_typetoletta_v1_agent - Clear
in_context_message_idsarray - Update system prompt
- Import agent
Key differences:
- No more
send_messagetool - No more
request_heartbeatparameter - Memory tools:
core_memory_*→memory_*
From memgpt_v2_agent
- Export agent file
- Change
agent_typetoletta_v1_agent - Clear
in_context_message_idsarray (if needed) - Import agent
Key differences:
- No more
send_messagetool - File tools still work (
open_file,grep_file, etc.) - Sleep-time agents still supported
Creating New Agents
For new agents, simply omit the agent_type parameter:
Troubleshooting
”Agent import failed”
Possible cause: send_message tool calls still in context
Fix: Clear the in_context_message_ids array in your agent file
”Agent behavior changed after migration”
Possible cause: Different system prompt or cleared message history
Fix:
- Update to the new system prompt format (see Step 4)
- Provide a brief reminder about recent context in your first message
”Too many tool calls / infinite loops”
Possible cause: Agent trying to replicate heartbeat behavior
Fix: Update system instructions to clarify when to stop executing
Sleep-Time Agents
Sleep-time functionality works with letta_v1_agent:
Learn more about sleep-time agents →
Getting Help
- Migration issues: Ask in Discord #dev-help
- Bug reports: GitHub Issues
- Enterprise support: Contact support@letta.com