MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / truncate

Function truncate

cmd/inject-cli/main.go:1145–1150  ·  view source on GitHub ↗
(s string, max int)

Source from the content-addressed store, hash-verified

1143}
1144
1145func truncate(s string, max int) string {
1146 if len(s) > max {
1147 return s[:max] + "..."
1148 }
1149 return s
1150}
1151
1152// ----- main -----
1153

Callers 5

parseClaudeResponseFunction · 0.70
parseOpenAIResponseFunction · 0.70
parseResponsesRequestFunction · 0.70
parseResponsesResponseFunction · 0.70
printMessageSummaryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected