derivation_delete_step
Delete the last step from a mathematical derivation. Use rollback to remove middle steps, then re-derive.
Instructions
刪除單一步驟
═══════════════════════════════════════════════════════════════════════
⚠️ 只能刪除最後一步!
═══════════════════════════════════════════════════════════════════════
如需刪除中間步驟,請使用 derivation_rollback() 回滾到該步驟之前,
然後重新執行推導。
Args:
step_number: 步驟編號(必須是最後一步)
Returns:
刪除結果
Example:
derivation_delete_step(16) # 假設有 16 步,刪除最後一步
→ {"success": True, "deleted_step": {...}, "new_step_count": 15}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | ||
| step_number | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||