blob: ae0987f6760cc065520d770e3c351c5a761cadde [file] [log] [blame]
Josh Bleecher Snyder4d4e8072025-05-05 15:00:59 -07001// Code generated by "stringer -type=State -trimprefix=State"; DO NOT EDIT.
2
3package loop
4
5import "strconv"
6
7func _() {
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 Zeyligerb8a8f352025-06-02 07:39:37 -070028 _ = x[StateCompacting-17]
Josh Bleecher Snyder4d4e8072025-05-05 15:00:59 -070029}
30
Philip Zeyligerb8a8f352025-06-02 07:39:37 -070031const _State_name = "UnknownReadyWaitingForUserInputSendingToLLMProcessingLLMResponseEndOfTurnToolUseRequestedCheckingForCancellationRunningToolCheckingGitCommitsRunningAutoformattersCheckingBudgetGatheringAdditionalMessagesSendingToolResultsCancelledBudgetExceededErrorCompacting"
Josh Bleecher Snyder4d4e8072025-05-05 15:00:59 -070032
Philip Zeyligerb8a8f352025-06-02 07:39:37 -070033var _State_index = [...]uint16{0, 7, 12, 31, 43, 64, 73, 89, 112, 123, 141, 162, 176, 203, 221, 230, 244, 249, 259}
Josh Bleecher Snyder4d4e8072025-05-05 15:00:59 -070034
35func (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}