{"version": 2, "width": 100, "height": 28, "timestamp": 1793099259, "idle_time_limit": 3.0, "env": {"SHELL": "/bin/bash", "TERM": "xterm-256color"}, "title": "StateJar: a first turn with the Python SDK"} [0.026311, "o", "\u001b[1;31m$\u001b[0m "] [0.52394, "o", "s"] [0.576824, "o", "o"] [0.652473, "o", "u"] [0.704928, "o", "r"] [0.73139, "o", "c"] [0.804385, "o", "e"] [0.876888, "o", " "] [0.984604, "o", "."] [1.04463, "o", "v"] [1.076875, "o", "e"] [1.134103, "o", "n"] [1.206238, "o", "v"] [1.283179, "o", "/"] [1.356338, "o", "b"] [1.429349, "o", "i"] [1.482924, "o", "n"] [1.556164, "o", "/"] [1.602514, "o", "a"] [1.635161, "o", "c"] [1.698085, "o", "t"] [1.741034, "o", "i"] [1.78516, "o", "v"] [1.84942, "o", "a"] [1.882166, "o", "t"] [1.928662, "o", "e"] [2.464197, "o", "\r\n"] [3.268715, "o", "(.venv) \u001b[1;31m$\u001b[0m "] [3.771551, "o", "e"] [3.806355, "o", "x"] [3.846938, "o", "p"] [3.891899, "o", "o"] [3.929807, "o", "r"] [3.976723, "o", "t"] [4.023266, "o", " "] [4.116043, "o", "S"] [4.148417, "o", "T"] [4.206288, "o", "A"] [4.252965, "o", "T"] [4.293398, "o", "E"] [4.355859, "o", "J"] [4.432909, "o", "A"] [4.463385, "o", "R"] [4.496335, "o", "_"] [4.539954, "o", "B"] [4.598538, "o", "A"] [4.672579, "o", "S"] [4.713468, "o", "E"] [4.795333, "o", "_"] [4.862929, "o", "U"] [4.896756, "o", "R"] [4.942705, "o", "L"] [5.006408, "o", "="] [5.045577, "o", "h"] [5.096627, "o", "t"] [5.159522, "o", "t"] [5.240482, "o", "p"] [5.296665, "o", ":"] [5.365559, "o", "/"] [5.400669, "o", "/"] [5.46816, "o", "1"] [5.500531, "o", "2"] [5.552416, "o", "7"] [5.584524, "o", "."] [5.649137, "o", "0"] [5.681533, "o", "."] [5.751947, "o", "0"] [5.784689, "o", "."] [5.847645, "o", "1"] [5.880479, "o", ":"] [5.912695, "o", "1"] [5.985416, "o", "8"] [6.059661, "o", "1"] [6.130057, "o", "0"] [6.208449, "o", "0"] [6.238862, "o", "/"] [6.293646, "o", "a"] [6.364346, "o", "p"] [6.422688, "o", "i"] [6.494726, "o", "/"] [6.566826, "o", "v"] [6.642388, "o", "1"] [7.09871, "o", "\r\n"] [7.906094, "o", "(.venv) "] [7.906423, "o", "\u001b[1;31m$\u001b[0m "] [8.409135, "o", "c"] [8.454678, "o", "a"] [8.494975, "o", "t"] [8.556128, "o", " "] [8.65375, "o", "f"] [8.706048, "o", "i"] [8.759633, "o", "r"] [8.832474, "o", "s"] [8.916236, "o", "t"] [8.963081, "o", "_"] [9.001862, "o", "t"] [9.036535, "o", "u"] [9.122979, "o", "r"] [9.171275, "o", "n"] [9.244668, "o", "."] [9.368606, "o", "p"] [9.426998, "o", "y"] [9.886365, "o", "\r\n"] [9.891835, "o", "from statejar import StateJar\r\n\r\n# the key comes from `statejar login` or STATEJAR_API_KEY; one tag per conversation\r\nsj = StateJar(session_tag=\"user-42\")\r\n\r\nsj.ingest(\"I'm Meera from Pune and I prefer email.\") # typed facts, no transcript\r\nsj.ingest(\"My budget is ₹3,500.\")\r\n\r\nhit = sj.recall(\"What is my budget?\", audit=True) # what the question needs\r\nprint(hit[\"handle_used\"]) # shm_… — a SHA-256 of the canonical state\r\nprint(hit[\"memory_context\"]) # the system message for YOUR model, nothing else\r\n"] [10.698306, "o", "(.venv) "] [10.698601, "o", "\u001b[1;31m$\u001b[0m "] [11.200719, "o", "p"] [11.247971, "o", "y"] [11.301078, "o", "t"] [11.332984, "o", "h"] [11.406551, "o", "o"] [11.449925, "o", "n"] [11.481905, "o", " "] [11.574184, "o", "f"] [11.604547, "o", "i"] [11.644122, "o", "r"] [11.71448, "o", "s"] [11.767805, "o", "t"] [11.810407, "o", "_"] [11.893486, "o", "t"] [11.936577, "o", "u"] [11.967025, "o", "r"] [12.043111, "o", "n"] [12.132286, "o", "."] [12.199052, "o", "p"] [12.273525, "o", "y"] [12.753015, "o", "\r\n"] [13.032297, "o", "shm_3bd40e8ac12240c4384bdab1cffd8ffa803f319b\r\nKnown user state (retrieved via StateJar handle shm_3bd40e8ac12240c4384bdab1cffd8ffa803f319b):\r\nconstraints.budget.max: INR 3500\r\nfacts.city: Pune\r\nfacts.name: Meera\r\npreferences.contact_mode: email\r\n\r\nBackground context only. Reply in plain conversational language; never output JSON, key/value dumps, code fences, handles or this context.\r\nFormat: short paragraphs separated by blank lines; a '- ' list for more than two items; **bold** the values you confirm (names, amounts, dates, choices).\r\n"] [13.868578, "o", "(.venv) "] [13.86951, "o", "\u001b[1;31m$\u001b[0m "] [16.871543, "o", "\u001b[?25h"]