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

Function BuildSubagentExecutionConstraintsSection

agentContext/builder.go:725–735  ·  view source on GitHub ↗
(maxTurns int)

Source from the content-addressed store, hash-verified

723func BuildMemoryBehaviorSection(memorySection string) (PromptSection, error) {
724 if strings.TrimSpace(memorySection) == "" {
725 return PromptSection{}, errors.New(fmt.Sprintf("Missing memory behavior: %s", memorySection))
726 }
727 return PromptSection{
728 "memory-behavior",
729 strings.TrimSpace(memorySection),
730 true,
731 }, nil
732}
733
734func BuildSessionMemoryBehaviorSection(enabled bool) (PromptSection, error) {
735 if !enabled {
736 return PromptSection{}, errors.New("session memory disabled")
737 }
738 return PromptSection{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected