| Josh Bleecher Snyder | 4f84ab7 | 2025-04-22 16:40:54 -0700 | [diff] [blame] | 1 | // Code generated by "stringer -type=MessageRole,ContentType,ToolChoiceType,StopReason -output=llm_string.go"; DO NOT EDIT. |
| 2 | |
| 3 | package llm |
| 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[MessageRoleUser-0] |
| 12 | _ = x[MessageRoleAssistant-1] |
| 13 | } |
| 14 | |
| 15 | const _MessageRole_name = "MessageRoleUserMessageRoleAssistant" |
| 16 | |
| 17 | var _MessageRole_index = [...]uint8{0, 15, 35} |
| 18 | |
| 19 | func (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 | } |
| 25 | func _() { |
| 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 | |
| 36 | const _ContentType_name = "ContentTypeTextContentTypeThinkingContentTypeRedactedThinkingContentTypeToolUseContentTypeToolResult" |
| 37 | |
| 38 | var _ContentType_index = [...]uint8{0, 15, 34, 61, 79, 100} |
| 39 | |
| 40 | func (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 | } |
| 47 | func _() { |
| 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 | |
| 57 | const _ToolChoiceType_name = "ToolChoiceTypeAutoToolChoiceTypeAnyToolChoiceTypeNoneToolChoiceTypeTool" |
| 58 | |
| 59 | var _ToolChoiceType_index = [...]uint8{0, 18, 35, 53, 71} |
| 60 | |
| 61 | func (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 | } |
| 68 | func _() { |
| 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 Snyder | 0e8073a | 2025-05-22 21:04:51 -0700 | [diff] [blame] | 76 | _ = x[StopReasonRefusal-15] |
| Josh Bleecher Snyder | 4f84ab7 | 2025-04-22 16:40:54 -0700 | [diff] [blame] | 77 | } |
| 78 | |
| Josh Bleecher Snyder | 0e8073a | 2025-05-22 21:04:51 -0700 | [diff] [blame] | 79 | const _StopReason_name = "StopReasonStopSequenceStopReasonMaxTokensStopReasonEndTurnStopReasonToolUseStopReasonRefusal" |
| Josh Bleecher Snyder | 4f84ab7 | 2025-04-22 16:40:54 -0700 | [diff] [blame] | 80 | |
| Josh Bleecher Snyder | 0e8073a | 2025-05-22 21:04:51 -0700 | [diff] [blame] | 81 | var _StopReason_index = [...]uint8{0, 22, 41, 58, 75, 92} |
| Josh Bleecher Snyder | 4f84ab7 | 2025-04-22 16:40:54 -0700 | [diff] [blame] | 82 | |
| 83 | func (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 | } |