agentskit.js
API@agentskit/coreType aliases

VectorFilterPrimitive

Auto-generated API reference for VectorFilterPrimitive.

Type Alias: VectorFilterPrimitive

VectorFilterPrimitive = string | number | boolean | null

Defined in: packages/core/src/types/memory.ts:37

Normalized metadata-filter shape (v1). Every vector backend translates this into its own native filter language; callers stay portable.

  • Object form is field β†’ predicate (implicit AND across fields).
  • Predicate is either a primitive (shorthand for \{ $eq: ... \}) or one of the operator objects below.
  • $and / $or compose nested filters.

Example: { tags: { $in: ['docs', 'rag'] }, version: { $gte: 2 } } { $or: [{ author: 'alice' }, { author: 'bob' }] }

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page

Ask the docs
Ask anything about AgentsKit. Answers come from the docs corpus and cite their sources.