(label string)
| 201 | } |
| 202 | for _, msg := range detail.Messages { |
| 203 | if strings.Contains(msg.TextPreview, "long-term memory recall") || strings.Contains(msg.TextPreview, "handoff") { |
| 204 | t.Fatalf("transient/compaction message leaked into session memory: %#v", detail.Messages) |
| 205 | } |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | func sessionMemoryTestConfig(t *testing.T) config.Config { |
| 210 | t.Helper() |
no outgoing calls
no test coverage detected