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

Function truncateString

sdk/cliproxy/auth/selector.go:766–771  ·  view source on GitHub ↗
(s string, maxLen int)

Source from the content-addressed store, hash-verified

764}
765
766func truncateString(s string, maxLen int) string {
767 if len(s) > maxLen {
768 return s[:maxLen]
769 }
770 return s
771}
772
773// extractMessageContent extracts text content from a message content field.
774// Handles both string content and array content (multimodal messages).

Callers 1

extractMessageHashIDsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected