2:I[7382,["8905","static/chunks/8905-f6f9469353911fb0.js","7648","static/chunks/7648-34771bb3fdb1b05c.js","2894","static/chunks/app/(marketing)/docs/sdk/page-4b87534e7045d390.js"],"CodeBlock"]
3:I[4707,[],""]
4:I[6423,[],""]
5:I[6943,["8905","static/chunks/8905-f6f9469353911fb0.js","3143","static/chunks/3143-242beb2943338ff8.js","7864","static/chunks/7864-df8ea73c5cbe0896.js","7648","static/chunks/7648-34771bb3fdb1b05c.js","4873","static/chunks/4873-d3832094381cdad1.js","2567","static/chunks/2567-5a770fb5c2fddd8c.js","2979","static/chunks/app/(marketing)/docs/layout-da136169b2ec1d20.js"],"default",1]
6:I[4873,["8905","static/chunks/8905-f6f9469353911fb0.js","3143","static/chunks/3143-242beb2943338ff8.js","7864","static/chunks/7864-df8ea73c5cbe0896.js","1713","static/chunks/1713-a64ba0d5e6aae143.js","7648","static/chunks/7648-34771bb3fdb1b05c.js","3975","static/chunks/3975-52ed6f58eef56249.js","4873","static/chunks/4873-d3832094381cdad1.js","3185","static/chunks/app/layout-d075ade29984b3e7.js"],"Providers"]
7:I[6151,["8905","static/chunks/8905-f6f9469353911fb0.js","3143","static/chunks/3143-242beb2943338ff8.js","7864","static/chunks/7864-df8ea73c5cbe0896.js","1713","static/chunks/1713-a64ba0d5e6aae143.js","7648","static/chunks/7648-34771bb3fdb1b05c.js","3975","static/chunks/3975-52ed6f58eef56249.js","4873","static/chunks/4873-d3832094381cdad1.js","3185","static/chunks/app/layout-d075ade29984b3e7.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:["5sqJ4XY9sdIThRg07iY_o",[[["",{"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-read","children":[["$","div",null,{"className":"tech-label mb-3","children":"SDK"}],["$","h1",null,{"className":"display text-2xl","children":"Seven verbs, one memory model"}],["$","p",null,{"className":"lede mt-4","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-12 text-lg font-semibold","children":"The verbs"}],["$","div",null,{"className":"mt-4 overflow-x-auto rounded-md border","children":["$","table",null,{"className":"w-full text-left text-note","children":[["$","caption",null,{"className":"sr-only","children":"OMEM SDK verbs, their signatures, and what each does"}],["$","thead",null,{"children":["$","tr",null,{"children":[["$","th",null,{"scope":"col","className":"tech-label border-b bg-raised px-4 py-2.5","children":"Verb"}],["$","th",null,{"scope":"col","className":"tech-label border-b bg-raised px-4 py-2.5","children":"Signature and effect"}]]}]}],["$","tbody",null,{"children":[["$","tr","remember",{"className":"border-b last:border-b-0","children":[["$","th",null,{"scope":"row","className":"whitespace-nowrap px-4 py-3 align-top","children":["$","span",null,{"className":"mono rounded bg-accentBg px-1.5 py-0.5 text-xs font-medium text-accent","children":"remember"}]}],["$","td",null,{"className":"px-4 py-3","children":[["$","div",null,{"className":"mono text-caption text-muted","children":"remember(agent, *, about, claim, because=None)"}],["$","div",null,{"className":"mt-1.5 text-note","children":"Record a belief, optionally grounded in events."}]]}]]}],["$","tr","believes",{"className":"border-b last:border-b-0","children":[["$","th",null,{"scope":"row","className":"whitespace-nowrap px-4 py-3 align-top","children":["$","span",null,{"className":"mono rounded bg-accentBg px-1.5 py-0.5 text-xs font-medium text-accent","children":"believes"}]}],["$","td",null,{"className":"px-4 py-3","children":[["$","div",null,{"className":"mono text-caption text-muted","children":"believes(about, claim) -> State"}],["$","div",null,{"className":"mt-1.5 text-note","children":"The four-valued belief state at the current time."}]]}]]}],["$","tr","why",{"className":"border-b last:border-b-0","children":[["$","th",null,{"scope":"row","className":"whitespace-nowrap px-4 py-3 align-top","children":["$","span",null,{"className":"mono rounded bg-accentBg px-1.5 py-0.5 text-xs font-medium text-accent","children":"why"}]}],["$","td",null,{"className":"px-4 py-3","children":[["$","div",null,{"className":"mono text-caption text-muted","children":"why(about, claim) -> Provenance"}],["$","div",null,{"className":"mt-1.5 text-note","children":"Evidence, grounding, interval, and contradictions."}]]}]]}],["$","tr","history",{"className":"border-b last:border-b-0","children":[["$","th",null,{"scope":"row","className":"whitespace-nowrap px-4 py-3 align-top","children":["$","span",null,{"className":"mono rounded bg-accentBg px-1.5 py-0.5 text-xs font-medium text-accent","children":"history"}]}],["$","td",null,{"className":"px-4 py-3","children":[["$","div",null,{"className":"mono text-caption text-muted","children":"history(about, claim) -> [Belief]"}],["$","div",null,{"className":"mt-1.5 text-note","children":"The ordered revision chain for a belief."}]]}]]}],["$","tr","revise",{"className":"border-b last:border-b-0","children":[["$","th",null,{"scope":"row","className":"whitespace-nowrap px-4 py-3 align-top","children":["$","span",null,{"className":"mono rounded bg-accentBg px-1.5 py-0.5 text-xs font-medium text-accent","children":"revise"}]}],["$","td",null,{"className":"px-4 py-3","children":[["$","div",null,{"className":"mono text-caption text-muted","children":"revise(belief, *, to, by)"}],["$","div",null,{"className":"mt-1.5 text-note","children":"Supersede a belief; closes the prior interval."}]]}]]}],["$","tr","forget",{"className":"border-b last:border-b-0","children":[["$","th",null,{"scope":"row","className":"whitespace-nowrap px-4 py-3 align-top","children":["$","span",null,{"className":"mono rounded bg-accentBg px-1.5 py-0.5 text-xs font-medium text-accent","children":"forget"}]}],["$","td",null,{"className":"px-4 py-3","children":[["$","div",null,{"className":"mono text-caption text-muted","children":"forget(belief, *, by)"}],["$","div",null,{"className":"mt-1.5 text-note","children":"Retract a belief (recorded, never destroyed)."}]]}]]}],["$","tr","as_of",{"className":"border-b last:border-b-0","children":[["$","th",null,{"scope":"row","className":"whitespace-nowrap px-4 py-3 align-top","children":["$","span",null,{"className":"mono rounded bg-accentBg px-1.5 py-0.5 text-xs font-medium text-accent","children":"as_of"}]}],["$","td",null,{"className":"px-4 py-3","children":[["$","div",null,{"className":"mono text-caption text-muted","children":"as_of(T).believes(...)"}],["$","div",null,{"className":"mt-1.5 text-note","children":"Run any query as memory stood at time T."}]]}]]}]]}]]}]}],["$","h2",null,{"className":"mt-12 text-lg font-semibold","children":"The same call, everywhere"}],["$","div",null,{"className":"mt-4","children":["$","$L2",null,{"label":"Recording and querying a belief","tabs":[{"label":"Python","code":"from omem import Memory\n\nmem = Memory(api_key=\"omem_sk_...\",\n             base_url=\"http://127.0.0.1:8787\",\n             project=\"proj_...\")\n\nmem.remember(agent=\"support-bot\",\n             about=\"customer:alice\",\n             claim=\"prefers_annual_billing\")\n\nmem.believes(about=\"customer:alice\",\n             claim=\"prefers_annual_billing\")   # 'BELIEVED_TRUE'"},{"label":"TypeScript","code":"import { Memory } from \"./sdk/typescript/src/index\";\n\nconst mem = new Memory({\n  apiKey: \"omem_sk_...\",\n  baseUrl: \"http://127.0.0.1:8787\",\n  project: \"proj_...\",\n});\n\nawait mem.remember({\n  agent: \"support-bot\",\n  about: \"customer:alice\",\n  claim: \"prefers_annual_billing\",\n});\n\nawait mem.believes({\n  about: \"customer:alice\",\n  claim: \"prefers_annual_billing\",\n});   // 'BELIEVED_TRUE'"},{"label":"curl","code":"curl http://127.0.0.1:8787/v1/assertions \\\n  -H \"Authorization: Bearer omem_sk_...\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"agent\": \"support-bot\",\n    \"subjects\": [\"customer:alice\"],\n    \"proposition\": \"prefers_annual_billing\",\n    \"assertion_time\": \"now\"\n  }'"}]}]}],["$","aside",null,{"className":"mt-10 rounded-md border border-l-2 border-l-[color:var(--accent)] bg-panel px-4 py-4 text-note text-muted","children":[["$","strong",null,{"className":"font-medium text-fg","children":"The TypeScript SDK is not on npm yet."}]," ","It lives in ",["$","span",null,{"className":"mono text-fg","children":"sdk/typescript/"}]," and is used from source. It lags the Python SDK;"," ",["$","span",null,{"className":"mono text-fg","children":"test_parity.mjs"}]," runs against a live server and reports what is missing."]}]]}],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/76ac85dcdfd12e8b.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"__variable_f367f3 __variable_a3c0d3 __variable_3c557b","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{\nvar s=localStorage.getItem(\"omem-theme\");\nvar d=s?s===\"dark\":window.matchMedia(\"(prefers-color-scheme: dark)\").matches;\nif(d)document.documentElement.classList.add(\"dark\");\ndocument.documentElement.style.colorScheme=d?\"dark\":\"light\";\n}catch(e){}})();"}}]}],["$","body",null,{"children":[["$","a",null,{"href":"#main","className":"skip-link","children":"Skip to content"}],["$","$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, viewport-fit=cover"}],["$","meta","1",{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"#faf9f6"}],["$","meta","2",{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"#171614"}],["$","meta","3",{"charSet":"utf-8"}],["$","title","4",{"children":"SDK / OMEM"}],["$","meta","5",{"name":"description","content":"Seven verbs, each mapping 1:1 to an operation in the OMEM standard."}],["$","meta","6",{"name":"application-name","content":"OMEM"}],["$","meta","7",{"name":"format-detection","content":"telephone=no"}],["$","meta","8",{"name":"next-size-adjust"}]]
1:null
