WOLBΛRG

Example — Metadata Filtering

Scope recall with meta helpers and agent filters.

import { meta } from "wolbarg";

await ctx.remember({
  agent: "sales",
  content: { text: "EU pricing starts at €49/seat." },
  metadata: { region: "eu", priority: 3 },
});

const hits = await ctx.recall({
  query: "pricing",
  filter: {
    agent: "sales",
    metadata: meta.and(meta.eq("region", "eu"), meta.gte("priority", 2)),
  },
});

On this page