{"openapi":"3.1.0","info":{"title":"ReasonGraph Cloud API","description":"Graph memory for AI agents. Every call needs `Authorization: Bearer rgm_...`; create a key in the [console](/console). Sessions group facts per agent or project; `discover` walks across them. Guides and examples: [github.com/bgokden/reasongraph](https://github.com/bgokden/reasongraph/tree/main/examples/agents). MCP endpoint for Claude Code and Cursor: `https://memory.primaxiom.ai/mcp`.","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/ready":{"get":{"summary":"Ready","operationId":"ready_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/me":{"get":{"summary":"Me","operationId":"me_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sessions/{session}/memory":{"post":{"summary":"Push","operationId":"push_sessions__session__memory_post","parameters":[{"name":"session","in":"path","required":true,"schema":{"type":"string","title":"Session"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sessions/{session}/memory/batch":{"post":{"summary":"Push Many","operationId":"push_many_sessions__session__memory_batch_post","parameters":[{"name":"session","in":"path","required":true,"schema":{"type":"string","title":"Session"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushManyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/query":{"post":{"summary":"Query","operationId":"query_query_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/discover":{"post":{"summary":"Discover","operationId":"discover_discover_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoverIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/supersede":{"post":{"summary":"Supersede","operationId":"supersede_supersede_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupersedeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/delete":{"post":{"summary":"Delete","operationId":"delete_delete_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sessions/{session}":{"delete":{"summary":"Forget Session","description":"Erase one session: its facts, and the entities that linked only to them.\nFor testing, corrections and the right to be forgotten.","operationId":"forget_session_sessions__session__delete","parameters":[{"name":"session","in":"path","required":true,"schema":{"type":"string","title":"Session"}},{"name":"purge_orphans","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Purge Orphans"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reset":{"post":{"summary":"Reset","description":"Erase this workspace: every session, every fact, every entity that only\nthis workspace linked. Sentences another workspace also holds stay theirs.","operationId":"reset_reset_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/history":{"post":{"summary":"History","operationId":"history_history_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trace":{"post":{"summary":"Trace","operationId":"trace_trace_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/causal_chain":{"post":{"summary":"Causal Chain","operationId":"causal_chain_causal_chain_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CausalChainIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/what_if":{"post":{"summary":"What If","operationId":"what_if_what_if_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatIfIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sessions":{"get":{"summary":"Sessions","operationId":"sessions_sessions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats":{"get":{"summary":"Stats","operationId":"stats_stats_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/examples":{"get":{"summary":"Examples","description":"Starter topics: the library's built-in fact sets, as plain sentences the console\ncan push into a topic source (\"become an expert in a field with one tap\"). Public:\nit is the one thing a visitor can look at before signing up, and it holds no tenant data.","operationId":"examples_examples_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/chat":{"post":{"summary":"Chat","description":"Deep memory integration in one call: recall what is relevant, inject it before your\nmessages, call the configured model, remember the exchange. Needs CLOUD_SYNTHESIZER=openai\n(LLM_BASE_URL / LLM_API_KEY / LLM_MODEL) or app.state.chat_model.","operationId":"chat_chat_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents":{"post":{"summary":"Documents","description":"Remember a whole document: .txt / .md / .pdf. Text is extracted, split into\nsentences and stored under ``doc-<name>`` (or the given session).","operationId":"documents_documents_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_documents_documents_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/facts":{"post":{"summary":"Facts","description":"Sessions, entities and cause->effect spans the workspace holds for each fact.","operationId":"facts_facts_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/keys":{"post":{"summary":"Create Key","operationId":"create_key_admin_keys_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Keys","operationId":"list_keys_admin_keys_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/keys/{key_id}":{"delete":{"summary":"Revoke Key","operationId":"revoke_key_admin_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/portal":{"post":{"summary":"Portal","description":"Customer Portal link for a key minted before accounts existed.","operationId":"portal_billing_portal_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/account":{"get":{"tags":["account"],"summary":"Account","operationId":"account_account_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/keys":{"post":{"tags":["account"],"summary":"Mint","operationId":"mint_account_keys_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/keys/{key_id}":{"delete":{"tags":["account"],"summary":"Revoke","operationId":"revoke_account_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/checkout":{"post":{"tags":["account"],"summary":"Checkout","operationId":"checkout_account_checkout_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/portal":{"post":{"tags":["account"],"summary":"Portal","operationId":"portal_account_portal_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_documents_documents_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"name":{"type":"string","title":"Name","default":""},"session":{"type":"string","title":"Session","default":""}},"type":"object","required":["file"],"title":"Body_documents_documents_post"},"CausalChainIn":{"properties":{"from_content":{"type":"string","title":"From Content"},"to_content":{"type":"string","title":"To Content"},"session":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"},"max_depth":{"type":"integer","title":"Max Depth","default":6},"isolate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isolate"}},"type":"object","required":["from_content","to_content"],"title":"CausalChainIn"},"ChatIn":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/ChatMessage"},"type":"array","title":"Messages"},"session":{"type":"string","title":"Session","default":"chat"},"system":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System"},"observe":{"type":"boolean","title":"Observe","default":true},"observe_assistant":{"type":"boolean","title":"Observe Assistant","default":false},"resolve_conflicts":{"type":"boolean","title":"Resolve Conflicts","default":false},"max_facts":{"type":"integer","title":"Max Facts","default":8},"max_history_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max History Tokens"},"keep_tail_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Keep Tail Tokens"}},"type":"object","required":["messages"],"title":"ChatIn"},"ChatMessage":{"properties":{"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"}},"type":"object","required":["role","content"],"title":"ChatMessage"},"CheckoutIn":{"properties":{"tier":{"type":"string","title":"Tier"}},"type":"object","required":["tier"],"title":"CheckoutIn"},"DeleteIn":{"properties":{"text":{"type":"string","title":"Text"},"purge_orphans":{"type":"boolean","title":"Purge Orphans","default":false}},"type":"object","required":["text"],"title":"DeleteIn"},"DiscoverIn":{"properties":{"query":{"type":"string","title":"Query"},"session":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"},"hops":{"type":"integer","title":"Hops","default":4},"top_k":{"type":"integer","title":"Top K","default":5},"max_results":{"type":"integer","title":"Max Results","default":10},"search_mode":{"type":"string","title":"Search Mode","default":"embedding"},"isolate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isolate"},"synthesize":{"type":"boolean","title":"Synthesize","default":false},"include_superseded":{"type":"boolean","title":"Include Superseded","default":false}},"type":"object","required":["query"],"title":"DiscoverIn"},"FactsIn":{"properties":{"texts":{"items":{"type":"string"},"type":"array","title":"Texts"}},"type":"object","required":["texts"],"title":"FactsIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HistoryIn":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"HistoryIn"},"KeyCreateIn":{"properties":{"tenant":{"type":"string","title":"Tenant"},"name":{"type":"string","title":"Name","default":"default"}},"type":"object","required":["tenant"],"title":"KeyCreateIn"},"KeyIn":{"properties":{"name":{"type":"string","title":"Name","default":"default"}},"type":"object","title":"KeyIn"},"PushIn":{"properties":{"text":{"type":"string","title":"Text"},"resolve_conflicts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Resolve Conflicts"},"split":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Split"}},"type":"object","required":["text"],"title":"PushIn"},"PushManyIn":{"properties":{"texts":{"items":{"type":"string"},"type":"array","title":"Texts"},"resolve_conflicts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Resolve Conflicts"},"split":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Split"}},"type":"object","required":["texts"],"title":"PushManyIn"},"QueryIn":{"properties":{"query":{"type":"string","title":"Query"},"session":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"},"hops":{"type":"integer","title":"Hops","default":4},"top_k":{"type":"integer","title":"Top K","default":5},"search_mode":{"type":"string","title":"Search Mode","default":"embedding"},"recency_weight":{"type":"number","title":"Recency Weight","default":0.0},"isolate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isolate"},"detailed":{"type":"boolean","title":"Detailed","default":false},"synthesize":{"type":"boolean","title":"Synthesize","default":false},"as_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"As Of"},"include_superseded":{"type":"boolean","title":"Include Superseded","default":false}},"type":"object","required":["query"],"title":"QueryIn"},"SupersedeIn":{"properties":{"session":{"type":"string","title":"Session"},"old_text":{"type":"string","title":"Old Text"},"new_text":{"type":"string","title":"New Text"},"purge_orphans":{"type":"boolean","title":"Purge Orphans","default":false}},"type":"object","required":["session","old_text","new_text"],"title":"SupersedeIn"},"TraceIn":{"properties":{"content":{"type":"string","title":"Content"},"direction":{"type":"string","title":"Direction","default":"effects"},"session":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"},"max_depth":{"type":"integer","title":"Max Depth","default":6},"isolate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isolate"}},"type":"object","required":["content"],"title":"TraceIn"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WhatIfIn":{"properties":{"content":{"type":"string","title":"Content"},"origin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin"},"direction":{"type":"string","title":"Direction","default":"effects"},"session":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"},"max_depth":{"type":"integer","title":"Max Depth","default":6},"isolate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isolate"}},"type":"object","required":["content"],"title":"WhatIfIn"}},"securitySchemes":{"ApiKey":{"type":"http","scheme":"bearer","bearerFormat":"rgm_...","description":"An API key from the console, sent as `Authorization: Bearer rgm_...`."}}},"security":[{"ApiKey":[]}]}