(maxTurns int)
| 723 | func 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 | |
| 734 | func BuildSessionMemoryBehaviorSection(enabled bool) (PromptSection, error) { |
| 735 | if !enabled { |
| 736 | return PromptSection{}, errors.New("session memory disabled") |
| 737 | } |
| 738 | return PromptSection{ |
no outgoing calls
no test coverage detected