MCPcopy Index your code
hub / github.com/coder/coder / hasDisallowedTurnStatusLabelSubject

Function hasDisallowedTurnStatusLabelSubject

coderd/x/chatd/quickgen.go:1021–1029  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

1019}
1020
1021func hasDisallowedTurnStatusLabelSubject(text string) bool {
1022 subject := leadingLetters(text)
1023 switch subject {
1024 case "agent", "i", "it", "the", "we":
1025 return true
1026 default:
1027 return false
1028 }
1029}
1030
1031func leadingLetters(text string) string {
1032 for i, r := range text {

Callers 1

normalizeTurnStatusLabelFunction · 0.85

Calls 1

leadingLettersFunction · 0.85

Tested by

no test coverage detected