(parentState *AgentState)
| 202 | }() |
| 203 | _, _ = c.runFabricExtraction(ctx, payload) |
| 204 | } |
| 205 | |
| 206 | func (c *ExtractionController) ExtractNow(ctx context.Context, state *AgentState) (string, error) { |
| 207 | if state == nil { |
| 208 | return "", errors.New("agent state is required") |
| 209 | } |
| 210 | if !c.Config.LongTermMemoryEnabled || !isFabricMemoryBackend(c.Config) { |
| 211 | return "", errors.New("Memory Fabric is required for semantic extraction") |
| 212 | } |
| 213 | if c.Engine == nil { |
| 214 | return "", errors.New("memory fabric engine is unavailable") |
| 215 | } |
| 216 | payload := c.incrementalFabricContext(state) |
no test coverage detected