( planMode database.NullChatPlanMode, parentChatID uuid.NullUUID, )
| 6661 | } |
| 6662 | |
| 6663 | func stopAfterPlanTools( |
| 6664 | planMode database.NullChatPlanMode, |
| 6665 | parentChatID uuid.NullUUID, |
| 6666 | ) map[string]struct{} { |
| 6667 | if !planMode.Valid || planMode.ChatPlanMode != database.ChatPlanModePlan { |
| 6668 | return nil |
| 6669 | } |
| 6670 | stopTools := map[string]struct{}{ |
| 6671 | "propose_plan": {}, |
| 6672 | } |
| 6673 | if !parentChatID.Valid { |
| 6674 | stopTools["ask_user_question"] = struct{}{} |
| 6675 | } |
| 6676 | return stopTools |
| 6677 | } |
| 6678 | |
| 6679 | func stopAfterBehaviorTools( |
| 6680 | planMode database.NullChatPlanMode, |
no outgoing calls