| 1 | package builtin |
| 2 | |
| 3 | import ( |
| 4 | "context" |
| 5 | "encoding/json" |
| 6 | "fmt" |
| 7 | |
| 8 | "reasonix/internal/tool" |
| 9 | ) |
| 10 | |
| 11 | // Keep a hidden tombstone so stale model requests receive an actionable error |
| 12 | // without restoring the retired completion state machine. |
| 13 | func init() { tool.RegisterBuiltin(completeStep{}) } |
| 14 | |
| 15 | type completeStep struct{} |
| 16 | |
| 17 | func (completeStep) Name() string { return "complete_step" } |
| 18 | func (completeStep) Description() string { |
| 19 | return "Retired. Replace the complete flat task list with todo_write." |
| 20 | } |
| 21 | func (completeStep) Schema() json.RawMessage { |
| 22 | return json.RawMessage(`{"type":"object","additionalProperties":true}`) |
| 23 | } |
| 24 | func (completeStep) ReadOnly() bool { return true } |
| 25 | func (completeStep) ProviderVisible(context.Context) bool { return false } |
| 26 | func (completeStep) PlanModeSafe() bool { return true } |
| 27 | func (completeStep) Execute(context.Context, json.RawMessage) (string, error) { |
| 28 | return "", fmt.Errorf("complete_step is retired; replace the complete flat list with todo_write") |
| 29 | } |
| 30 |