blob: 4556a73f3d9306c408e37fb42c9961e4af17b4db [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]
28}
29
30const _State_name = "UnknownReadyWaitingForUserInputSendingToLLMProcessingLLMResponseEndOfTurnToolUseRequestedCheckingForCancellationRunningToolCheckingGitCommitsRunningAutoformattersCheckingBudgetGatheringAdditionalMessagesSendingToolResultsCancelledBudgetExceededError"
31
32var _State_index = [...]uint8{0, 7, 12, 31, 43, 64, 73, 89, 112, 123, 141, 162, 176, 203, 221, 230, 244, 249}
33
34func (i State) String() string {
35 if i < 0 || i >= State(len(_State_index)-1) {
36 return "State(" + strconv.FormatInt(int64(i), 10) + ")"
37 }
38 return _State_name[_State_index[i]:_State_index[i+1]]
39}