2:I[7382,["6137","static/chunks/6137-736c50599a943692.js","2894","static/chunks/app/(marketing)/docs/sdk/page-1ddc4bacfd39cdb5.js"],"CodeBlock"]
3:I[4707,[],""]
4:I[6423,[],""]
5:I[6943,["6137","static/chunks/6137-736c50599a943692.js","6797","static/chunks/6797-4dbe642c8fd0ae0a.js","946","static/chunks/946-e72d602ee78b2d72.js","2972","static/chunks/2972-ef0abf2c41a2d5d4.js","2567","static/chunks/2567-3326faa577cbc67f.js","2979","static/chunks/app/(marketing)/docs/layout-6286df31aa5ca0ce.js"],"default",1]
6:I[4873,["6137","static/chunks/6137-736c50599a943692.js","6797","static/chunks/6797-4dbe642c8fd0ae0a.js","946","static/chunks/946-e72d602ee78b2d72.js","16","static/chunks/16-0470043dee45584b.js","2972","static/chunks/2972-ef0abf2c41a2d5d4.js","5915","static/chunks/5915-ad0b336dee15b236.js","3185","static/chunks/app/layout-c2276ee34391fc30.js"],"Providers"]
7:I[6151,["6137","static/chunks/6137-736c50599a943692.js","6797","static/chunks/6797-4dbe642c8fd0ae0a.js","946","static/chunks/946-e72d602ee78b2d72.js","16","static/chunks/16-0470043dee45584b.js","2972","static/chunks/2972-ef0abf2c41a2d5d4.js","5915","static/chunks/5915-ad0b336dee15b236.js","3185","static/chunks/app/layout-c2276ee34391fc30.js"],"Shell"]
8:{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"}
9:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"}
a:{"display":"inline-block"}
b:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0}
0:["SukOXPARbdabeqthHy-f0",[[["",{"children":["(marketing)",{"children":["docs",{"children":["sdk",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",{"children":["(marketing)",{"children":["docs",{"children":["sdk",{"children":["__PAGE__",{},[["$L1",["$","article",null,{"className":"max-w-2xl","children":[["$","div",null,{"className":"tech-label mb-4","children":"SDK"}],["$","h1",null,{"className":"display text-[36px]","children":"One ergonomic surface, six languages"}],["$","p",null,{"className":"mt-3 text-pretty leading-relaxed text-muted","children":"The SDK speaks the language of an agent remembering things. Each verb maps 1:1 to an operation in the OMEM standard. There are no hidden semantics, and you can always drop to the raw operations when you need to."}],["$","h2",null,{"className":"mt-10 text-lg font-semibold","children":"The verbs"}],["$","div",null,{"className":"mt-4 overflow-hidden rounded-lg border","children":[["$","div",null,{"className":"grid grid-cols-[8rem_1fr] border-b bg-panel tech-label","children":[["$","div",null,{"className":"px-4 py-2.5","children":"Verb"}],["$","div",null,{"className":"px-4 py-2.5","children":"What it does"}]]}],[["$","div","remember",{"className":"grid grid-cols-[8rem_1fr] items-start border-b","children":[["$","div",null,{"className":"px-4 py-3","children":["$","span",null,{"className":"mono rounded bg-[color:var(--accent)]/10 px-1.5 py-0.5 text-xs text-accent","children":"remember"}]}],["$","div",null,{"className":"px-4 py-3","children":[["$","div",null,{"className":"mono text-2xs text-muted","children":"remember(agent, *, about, claim, because=None)"}],["$","div",null,{"className":"mt-0.5 text-sm","children":"Record a belief, optionally grounded in events."}]]}]]}],["$","div","believes",{"className":"grid grid-cols-[8rem_1fr] items-start border-b","children":[["$","div",null,{"className":"px-4 py-3","children":["$","span",null,{"className":"mono rounded bg-[color:var(--accent)]/10 px-1.5 py-0.5 text-xs text-accent","children":"believes"}]}],["$","div",null,{"className":"px-4 py-3","children":[["$","div",null,{"className":"mono text-2xs text-muted","children":"believes(about, claim) -> State"}],["$","div",null,{"className":"mt-0.5 text-sm","children":"The four-valued belief state at the current time."}]]}]]}],["$","div","why",{"className":"grid grid-cols-[8rem_1fr] items-start border-b","children":[["$","div",null,{"className":"px-4 py-3","children":["$","span",null,{"className":"mono rounded bg-[color:var(--accent)]/10 px-1.5 py-0.5 text-xs text-accent","children":"why"}]}],["$","div",null,{"className":"px-4 py-3","children":[["$","div",null,{"className":"mono text-2xs text-muted","children":"why(about, claim) -> Provenance"}],["$","div",null,{"className":"mt-0.5 text-sm","children":"Evidence, grounding, interval, and contradictions."}]]}]]}],["$","div","history",{"className":"grid grid-cols-[8rem_1fr] items-start border-b","children":[["$","div",null,{"className":"px-4 py-3","children":["$","span",null,{"className":"mono rounded bg-[color:var(--accent)]/10 px-1.5 py-0.5 text-xs text-accent","children":"history"}]}],["$","div",null,{"className":"px-4 py-3","children":[["$","div",null,{"className":"mono text-2xs text-muted","children":"history(about, claim) -> [Belief]"}],["$","div",null,{"className":"mt-0.5 text-sm","children":"The ordered revision chain for a belief."}]]}]]}],["$","div","revise",{"className":"grid grid-cols-[8rem_1fr] items-start border-b","children":[["$","div",null,{"className":"px-4 py-3","children":["$","span",null,{"className":"mono rounded bg-[color:var(--accent)]/10 px-1.5 py-0.5 text-xs text-accent","children":"revise"}]}],["$","div",null,{"className":"px-4 py-3","children":[["$","div",null,{"className":"mono text-2xs text-muted","children":"revise(belief, *, to, by)"}],["$","div",null,{"className":"mt-0.5 text-sm","children":"Supersede a belief; closes the prior interval."}]]}]]}],["$","div","forget",{"className":"grid grid-cols-[8rem_1fr] items-start border-b","children":[["$","div",null,{"className":"px-4 py-3","children":["$","span",null,{"className":"mono rounded bg-[color:var(--accent)]/10 px-1.5 py-0.5 text-xs text-accent","children":"forget"}]}],["$","div",null,{"className":"px-4 py-3","children":[["$","div",null,{"className":"mono text-2xs text-muted","children":"forget(belief, *, by)"}],["$","div",null,{"className":"mt-0.5 text-sm","children":"Retract a belief (recorded, never destroyed)."}]]}]]}],["$","div","as_of",{"className":"grid grid-cols-[8rem_1fr] items-start ","children":[["$","div",null,{"className":"px-4 py-3","children":["$","span",null,{"className":"mono rounded bg-[color:var(--accent)]/10 px-1.5 py-0.5 text-xs text-accent","children":"as_of"}]}],["$","div",null,{"className":"px-4 py-3","children":[["$","div",null,{"className":"mono text-2xs text-muted","children":"as_of(T).believes(...)"}],["$","div",null,{"className":"mt-0.5 text-sm","children":"Run any query as memory stood at time T."}]]}]]}]]]}],["$","h2",null,{"className":"mt-10 text-lg font-semibold","children":"The same call, everywhere"}],["$","div",null,{"className":"mt-4","children":["$","$L2",null,{"tabs":[{"label":"Python","code":"import omem\nmem = omem.Client()\n\nmem.remember(\n    mem.agent(\"support-bot@v2.1\"),\n    about=mem.entity(\"customer:alice\"),\n    claim=\"prefers_email_over_phone\",\n    because=[mem.event(\"ticket:8842\")],\n)\n\nmem.believes(mem.entity(\"customer:alice\"),\n             \"prefers_email_over_phone\")   # BELIEVED_TRUE"},{"label":"TypeScript","code":"import { Omem } from \"@omem/sdk\";\nconst mem = new Omem();\n\nawait mem.remember(mem.agent(\"support-bot@v2.1\"), {\n  about: mem.entity(\"customer:alice\"),\n  claim: \"prefers_email_over_phone\",\n  because: [mem.event(\"ticket:8842\")],\n});\n\nawait mem.believes(mem.entity(\"customer:alice\"),\n                   \"prefers_email_over_phone\");"},{"label":"Go","code":"mem := omem.New()\n\nmem.Remember(ctx, omem.Claim{\n    Agent:       \"support-bot@v2.1\",\n    Subjects:    []string{\"customer:alice\"},\n    Proposition: \"prefers_email_over_phone\",\n    Because:     []string{\"ticket:8842\"},\n})\n\nstate, _ := mem.Believes(ctx,\n    \"customer:alice\", \"prefers_email_over_phone\")"},{"label":"curl","code":"curl https://api.omem.dev/v1/assertions \\\n  -H \"Authorization: Bearer sk_live_...\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"agent\": \"support-bot@v2.1\",\n    \"subjects\": [\"customer:alice\"],\n    \"proposition\": \"prefers_email_over_phone\",\n    \"because\": [\"ticket:8842\"]\n  }'"}]}]}],["$","div",null,{"className":"mt-8 rounded-md border-l-2 border-l-accent bg-panel px-4 py-3 text-sm text-muted","children":["Prototyping offline? ",["$","span",null,{"className":"mono text-fg","children":"Client(embedded=True)"}]," runs the reference engine in-process: identical semantics, zero network, no key. Flip to cloud by removing one argument."]}]]}],null],null],null]},[null,["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","(marketing)","children","docs","children","sdk","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[null,["$","$L5",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","(marketing)","children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}],"params":{}}]],null],null]},[null,["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","(marketing)","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/fdbeb859d29f54a9.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L6",null,{"children":["$","$L7",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$8","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$9","children":"404"}],["$","div",null,{"style":"$a","children":["$","h2",null,{"style":"$b","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]}]}]],null],null],["$Lc",null]]]]
c:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"SDK / OMEM"}],["$","meta","3",{"name":"description","content":"Give your AI memory it can prove."}]]
1:null
