blob: 44f9ac8cf086defef3656f4914d1174fe790f1e7 [file] [log] [blame]
Josh Bleecher Snyder4f84ab72025-04-22 16:40:54 -07001// Code generated by "stringer -type=MessageRole,ContentType,ToolChoiceType,StopReason -output=llm_string.go"; DO NOT EDIT.
2
3package llm
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[MessageRoleUser-0]
12 _ = x[MessageRoleAssistant-1]
13}
14
15const _MessageRole_name = "MessageRoleUserMessageRoleAssistant"
16
17var _MessageRole_index = [...]uint8{0, 15, 35}
18
19func (i MessageRole) String() string {
20 if i < 0 || i >= MessageRole(len(_MessageRole_index)-1) {
21 return "MessageRole(" + strconv.FormatInt(int64(i), 10) + ")"
22 }
23 return _MessageRole_name[_MessageRole_index[i]:_MessageRole_index[i+1]]
24}
25func _() {
26 // An "invalid array index" compiler error signifies that the constant values have changed.
27 // Re-run the stringer command to generate them again.
28 var x [1]struct{}
29 _ = x[ContentTypeText-2]
30 _ = x[ContentTypeThinking-3]
31 _ = x[ContentTypeRedactedThinking-4]
32 _ = x[ContentTypeToolUse-5]
33 _ = x[ContentTypeToolResult-6]
34}
35
36const _ContentType_name = "ContentTypeTextContentTypeThinkingContentTypeRedactedThinkingContentTypeToolUseContentTypeToolResult"
37
38var _ContentType_index = [...]uint8{0, 15, 34, 61, 79, 100}
39
40func (i ContentType) String() string {
41 i -= 2
42 if i < 0 || i >= ContentType(len(_ContentType_index)-1) {
43 return "ContentType(" + strconv.FormatInt(int64(i+2), 10) + ")"
44 }
45 return _ContentType_name[_ContentType_index[i]:_ContentType_index[i+1]]
46}
47func _() {
48 // An "invalid array index" compiler error signifies that the constant values have changed.
49 // Re-run the stringer command to generate them again.
50 var x [1]struct{}
51 _ = x[ToolChoiceTypeAuto-7]
52 _ = x[ToolChoiceTypeAny-8]
53 _ = x[ToolChoiceTypeNone-9]
54 _ = x[ToolChoiceTypeTool-10]
55}
56
57const _ToolChoiceType_name = "ToolChoiceTypeAutoToolChoiceTypeAnyToolChoiceTypeNoneToolChoiceTypeTool"
58
59var _ToolChoiceType_index = [...]uint8{0, 18, 35, 53, 71}
60
61func (i ToolChoiceType) String() string {
62 i -= 7
63 if i < 0 || i >= ToolChoiceType(len(_ToolChoiceType_index)-1) {
64 return "ToolChoiceType(" + strconv.FormatInt(int64(i+7), 10) + ")"
65 }
66 return _ToolChoiceType_name[_ToolChoiceType_index[i]:_ToolChoiceType_index[i+1]]
67}
68func _() {
69 // An "invalid array index" compiler error signifies that the constant values have changed.
70 // Re-run the stringer command to generate them again.
71 var x [1]struct{}
72 _ = x[StopReasonStopSequence-11]
73 _ = x[StopReasonMaxTokens-12]
74 _ = x[StopReasonEndTurn-13]
75 _ = x[StopReasonToolUse-14]
Josh Bleecher Snyder0e8073a2025-05-22 21:04:51 -070076 _ = x[StopReasonRefusal-15]
Josh Bleecher Snyder4f84ab72025-04-22 16:40:54 -070077}
78
Josh Bleecher Snyder0e8073a2025-05-22 21:04:51 -070079const _StopReason_name = "StopReasonStopSequenceStopReasonMaxTokensStopReasonEndTurnStopReasonToolUseStopReasonRefusal"
Josh Bleecher Snyder4f84ab72025-04-22 16:40:54 -070080
Josh Bleecher Snyder0e8073a2025-05-22 21:04:51 -070081var _StopReason_index = [...]uint8{0, 22, 41, 58, 75, 92}
Josh Bleecher Snyder4f84ab72025-04-22 16:40:54 -070082
83func (i StopReason) String() string {
84 i -= 11
85 if i < 0 || i >= StopReason(len(_StopReason_index)-1) {
86 return "StopReason(" + strconv.FormatInt(int64(i+11), 10) + ")"
87 }
88 return _StopReason_name[_StopReason_index[i]:_StopReason_index[i+1]]
89}