waitForIdle
Blocks until background extraction, resolution, and embedding finish or the timeout expires. Use it after bursts of remember() calls before benchmark recall() so latency measures retrieval only.
Instructions
Block until the kernel finishes all background extraction, resolution, and embedding work (or the timeout expires). Use between a burst of remember() calls and a benchmark recall() so the recall measures retrieval latency only, not the tail of ingestion. Cheap when the kernel is already idle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeoutSeconds | No | Maximum seconds to wait. Defaults to 300. The tool returns timedOut:true rather than erroring when the budget expires. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isIdle | Yes | True when both enrichment and vec drained within the budget; false if timedOut. | |
| timedOut | Yes | True when the timeoutSeconds budget expired before the kernel went idle. | |
| elapsedMs | Yes | Wall-clock spent waiting, in milliseconds. | |
| vecInflight | Yes | Vec depth observed at return time (0 unless timedOut). | |
| enrichmentInflight | Yes | Enrichment depth observed at return time (0 unless timedOut). |