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

Function pythonSplitLines

agentContext/builder.go:585–596  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

583 }
584 }
585 return firstRunes(candidate, budget.MaxChars), true
586}
587
588func BuildBudgetAttachmentSection(name, heading, rawContent string, preserveSeparator *string, budget PromptAttachmentBudget) PromptSection {
589 truncated, wasTruncated := TruncateAttachmentText(rawContent, budget, preserveSeparator)
590 if wasTruncated {
591 truncated = strings.TrimRightFunc(truncated, unicode.IsSpace) + "\n\n(The following content was truncated to fit the prompt budget.)"
592 }
593 return PromptSection{
594 name,
595 BuildAttachmentBlock(name, heading, truncated),
596 true,
597 }
598}
599

Callers 1

TruncateAttachmentTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected