(blocks []map[string]any)
| 299 | |
| 300 | summary := fmt.Sprintf("Memory Fabric stored %d raw event(s); semantic status: %s.", len(events), semanticStatus) |
| 301 | formatted := FormatExtractionResult(summary) |
| 302 | c.mu.Lock() |
| 303 | c.lastResult = &formatted |
| 304 | c.mu.Unlock() |
| 305 | if semanticErr != nil { |
| 306 | return formatted, semanticErr |
| 307 | } |
| 308 | return formatted, ingestErr |
| 309 | } |
| 310 | |
| 311 | func (c *ExtractionController) fabricEvents(payload *extractionContext) []memory.RawEvent { |
| 312 | if payload == nil { |
| 313 | return nil |
| 314 | } |
| 315 | space := fabricMemorySpace(c.Config) |
| 316 | fallbackTime := time.Now().UTC() |
| 317 | events := make([]memory.RawEvent, 0, len(payload.Messages)) |
| 318 | for index, message := range payload.Messages { |
| 319 | if index >= len(payload.MessageIDs) { |
| 320 | break |
| 321 | } |
no test coverage detected