1// 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 idx := int(i) - 0
21 if i < 0 || idx >= len(_MessageRole_index)-1 {
22 return "MessageRole(" + strconv.FormatInt(int64(i), 10) + ")"
23 }
24 return _MessageRole_name[_MessageRole_index[idx]:_MessageRole_index[idx+1]]
25}
26func _() {
27 // An "invalid array index" compiler error signifies that the constant values have changed.
28 // Re-run the stringer command to generate them again.
29 var x [1]struct{}
30 _ = x[ContentTypeText-2]
31 _ = x[ContentTypeThinking-3]
32 _ = x[ContentTypeRedactedThinking-4]
33 _ = x[ContentTypeToolUse-5]
34 _ = x[ContentTypeToolResult-6]
35}
36
37const _ContentType_name = "ContentTypeTextContentTypeThinkingContentTypeRedactedThinkingContentTypeToolUseContentTypeToolResult"
38
39var _ContentType_index = [...]uint8{0, 15, 34, 61, 79, 100}
40
41func (i ContentType) String() string {
42 idx := int(i) - 2
43 if i < 2 || idx >= len(_ContentType_index)-1 {
44 return "ContentType(" + strconv.FormatInt(int64(i), 10) + ")"
45 }
46 return _ContentType_name[_ContentType_index[idx]:_ContentType_index[idx+1]]
47}
48func _() {
49 // An "invalid array index" compiler error signifies that the constant values have changed.
50 // Re-run the stringer command to generate them again.
51 var x [1]struct{}
52 _ = x[ToolChoiceTypeAuto-7]
53 _ = x[ToolChoiceTypeAny-8]
54 _ = x[ToolChoiceTypeNone-9]
55 _ = x[ToolChoiceTypeTool-10]
56}
57
58const _ToolChoiceType_name = "ToolChoiceTypeAutoToolChoiceTypeAnyToolChoiceTypeNoneToolChoiceTypeTool"
59
60var _ToolChoiceType_index = [...]uint8{0, 18, 35, 53, 71}
61
62func (i ToolChoiceType) String() string {
63 idx := int(i) - 7
64 if i < 7 || idx >= len(_ToolChoiceType_index)-1 {
65 return "ToolChoiceType(" + strconv.FormatInt(int64(i), 10) + ")"
66 }
67 return _ToolChoiceType_name[_ToolChoiceType_index[idx]:_ToolChoiceType_index[idx+1]]
68}
69func _() {
70 // An "invalid array index" compiler error signifies that the constant values have changed.
71 // Re-run the stringer command to generate them again.
72 var x [1]struct{}
73 _ = x[StopReasonStopSequence-11]
74 _ = x[StopReasonMaxTokens-12]
75 _ = x[StopReasonEndTurn-13]
76 _ = x[StopReasonToolUse-14]
77 _ = x[StopReasonRefusal-15]
78}
79
80const _StopReason_name = "StopReasonStopSequenceStopReasonMaxTokensStopReasonEndTurnStopReasonToolUseStopReasonRefusal"
81
82var _StopReason_index = [...]uint8{0, 22, 41, 58, 75, 92}
83
84func (i StopReason) String() string {
85 idx := int(i) - 11
86 if i < 11 || idx >= len(_StopReason_index)-1 {
87 return "StopReason(" + strconv.FormatInt(int64(i), 10) + ")"
88 }
89 return _StopReason_name[_StopReason_index[idx]:_StopReason_index[idx+1]]
90}