| Josh Bleecher Snyder | 4d4e807 | 2025-05-05 15:00:59 -0700 | [diff] [blame] | 1 | // Code generated by "stringer -type=State -trimprefix=State"; DO NOT EDIT. |
| 2 | |
| 3 | package loop |
| 4 | |
| 5 | import "strconv" |
| 6 | |
| 7 | func _() { |
| 8 | // An "invalid array index" compiler error signifies that the constant values have changed. |
| 9 | // Re-run the stringer command to generate them again. |
| 10 | var x [1]struct{} |
| 11 | _ = x[StateUnknown-0] |
| 12 | _ = x[StateReady-1] |
| 13 | _ = x[StateWaitingForUserInput-2] |
| 14 | _ = x[StateSendingToLLM-3] |
| 15 | _ = x[StateProcessingLLMResponse-4] |
| 16 | _ = x[StateEndOfTurn-5] |
| 17 | _ = x[StateToolUseRequested-6] |
| 18 | _ = x[StateCheckingForCancellation-7] |
| 19 | _ = x[StateRunningTool-8] |
| 20 | _ = x[StateCheckingGitCommits-9] |
| 21 | _ = x[StateRunningAutoformatters-10] |
| 22 | _ = x[StateCheckingBudget-11] |
| 23 | _ = x[StateGatheringAdditionalMessages-12] |
| 24 | _ = x[StateSendingToolResults-13] |
| 25 | _ = x[StateCancelled-14] |
| 26 | _ = x[StateBudgetExceeded-15] |
| 27 | _ = x[StateError-16] |
| Philip Zeyliger | b8a8f35 | 2025-06-02 07:39:37 -0700 | [diff] [blame^] | 28 | _ = x[StateCompacting-17] |
| Josh Bleecher Snyder | 4d4e807 | 2025-05-05 15:00:59 -0700 | [diff] [blame] | 29 | } |
| 30 | |
| Philip Zeyliger | b8a8f35 | 2025-06-02 07:39:37 -0700 | [diff] [blame^] | 31 | const _State_name = "UnknownReadyWaitingForUserInputSendingToLLMProcessingLLMResponseEndOfTurnToolUseRequestedCheckingForCancellationRunningToolCheckingGitCommitsRunningAutoformattersCheckingBudgetGatheringAdditionalMessagesSendingToolResultsCancelledBudgetExceededErrorCompacting" |
| Josh Bleecher Snyder | 4d4e807 | 2025-05-05 15:00:59 -0700 | [diff] [blame] | 32 | |
| Philip Zeyliger | b8a8f35 | 2025-06-02 07:39:37 -0700 | [diff] [blame^] | 33 | var _State_index = [...]uint16{0, 7, 12, 31, 43, 64, 73, 89, 112, 123, 141, 162, 176, 203, 221, 230, 244, 249, 259} |
| Josh Bleecher Snyder | 4d4e807 | 2025-05-05 15:00:59 -0700 | [diff] [blame] | 34 | |
| 35 | func (i State) String() string { |
| 36 | if i < 0 || i >= State(len(_State_index)-1) { |
| 37 | return "State(" + strconv.FormatInt(int64(i), 10) + ")" |
| 38 | } |
| 39 | return _State_name[_State_index[i]:_State_index[i+1]] |
| 40 | } |