MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / truncateString

Function truncateString

api/client.go:1353–1362  ·  view source on GitHub ↗
(s string, maxLen int)

Source from the content-addressed store, hash-verified

1351 i++
1352 continue
1353 }
1354
1355 parts := splitAnthropicBlocks(contentList)
1356
1357 if role == "assistant" && len(parts.ToolCalls) > 0 {
1358 assistantEntry := map[string]any{
1359 "role": "assistant",
1360 "content": strings.Join(parts.TextParts, "\n"),
1361 "tool_calls": parts.ToolCalls,
1362 }
1363 converted = append(converted, assistantEntry)
1364
1365 expectedIDs := map[string]struct{}{}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected