migrate_session
Solve context capacity issues by migrating conversation sessions from a source model to a target model. Returns a decision, migrated messages, and token before/after comparison.
Instructions
把一个会话从源模型迁移到目标模型。
messages_json: JSON 数组字符串,形如 [{"role": "user", "content": "..."}, {"role": "assistant", "content": "..."}]
返回:决策(action / reason / 容量对比)+ 迁移后的消息数组 + token 前后对比。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | migrated | |
| source_model | Yes | ||
| target_model | Yes | ||
| messages_json | Yes | ||
| force_compress | No |