hindsight-api 0.4.3__py3-none-any.whl → 0.4.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
hindsight_api/__init__.py CHANGED
@@ -46,4 +46,4 @@ __all__ = [
46
46
  "RemoteTEICrossEncoder",
47
47
  "LLMConfig",
48
48
  ]
49
- __version__ = "0.4.3"
49
+ __version__ = "0.4.4"
@@ -182,7 +182,16 @@ class BrokerTaskBackend(TaskBackend):
182
182
  operation_id = task_dict.get("operation_id")
183
183
  task_type = task_dict.get("type", "unknown")
184
184
  bank_id = task_dict.get("bank_id")
185
- payload_json = json.dumps(task_dict)
185
+
186
+ # Custom encoder to handle datetime objects
187
+ from datetime import datetime
188
+
189
+ def datetime_encoder(obj):
190
+ if isinstance(obj, datetime):
191
+ return obj.isoformat()
192
+ raise TypeError(f"Object of type {type(obj).__name__} is not JSON serializable")
193
+
194
+ payload_json = json.dumps(task_dict, default=datetime_encoder)
186
195
 
187
196
  schema = self._schema_getter() if self._schema_getter else self._schema
188
197
  table = fq_table("async_operations", schema)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hindsight-api
3
- Version: 0.4.3
3
+ Version: 0.4.4
4
4
  Summary: Hindsight: Agent Memory That Works Like Human Memory
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: aiohttp>=3.13.3
@@ -1,4 +1,4 @@
1
- hindsight_api/__init__.py,sha256=arVpYrig3T18LCK9dh5WpEAYzY1OumvsrD2S2ZuQsmg,1197
1
+ hindsight_api/__init__.py,sha256=RoPZUUBQY9G4ThNGetuvEqf2rgEdMGlcm_ythXpBYQ4,1197
2
2
  hindsight_api/banner.py,sha256=BXn-jhkXe4xi-YV4JeuaVvjYhTMs96O43XoOMv4Cd28,4591
3
3
  hindsight_api/config.py,sha256=mLUMuQrhZCbUd___6Wqdc-OcMXtZ_CZZmxM4b7vO7CE,32506
4
4
  hindsight_api/daemon.py,sha256=yqMtalX0tlNz7KUpMjsRpC0r8T0WwHGvVKPxuO_Ye40,6111
@@ -52,7 +52,7 @@ hindsight_api/engine/llm_wrapper.py,sha256=q0d01bdYCVcW9lwJVNxhw3hAp1Qr4YSwU3vXq
52
52
  hindsight_api/engine/memory_engine.py,sha256=NpMG8XwTODJogpumWg1RxajUOFoXv7LJkTcjvP9NNV0,227563
53
53
  hindsight_api/engine/query_analyzer.py,sha256=7APe0MjBcUxjivcMlM03PmMk_w5FjWvlEe20yAJlHlc,19741
54
54
  hindsight_api/engine/response_models.py,sha256=ZPP80NmEP205erz5qEE8IJ9-c622UHqYo17e5UOiXAE,15578
55
- hindsight_api/engine/task_backend.py,sha256=zDH24tTwIH_59eFpQzepv0KkZXOIVMpmDkrg1Y5khDA,8172
55
+ hindsight_api/engine/task_backend.py,sha256=FFZnjUsjXrrZwww16ow--J61QIpUFwxLdcmeF1NPoYk,8500
56
56
  hindsight_api/engine/utils.py,sha256=k6RcLtwe9XAKDTQRIfgR2zKEdjDLlf72vVeepyK20us,1898
57
57
  hindsight_api/engine/consolidation/__init__.py,sha256=qEUPy0R7akNoAooQL1TAt2rVasjvnXTcNzh2zpN0flc,160
58
58
  hindsight_api/engine/consolidation/consolidator.py,sha256=bP-lPLD1WAo0fgzsRTHhKhJJDXFkRg4vWcVFL_vr-ao,34828
@@ -106,7 +106,7 @@ hindsight_api/extensions/builtin/tenant.py,sha256=R7jfNR41deGWqQB5P8Qk5njy1bZgve
106
106
  hindsight_api/worker/__init__.py,sha256=hzpMLvOfgL2KKrrik_9ouvEzCdvJSrH-pj5UdFK63J0,256
107
107
  hindsight_api/worker/main.py,sha256=eE6AmFErNJKGBrLivwceAMo5n73y_e6EUwjQoGo-lhE,9757
108
108
  hindsight_api/worker/poller.py,sha256=2jyl5bJPEwgr6T6xgEvdHPGqtXvOIs28v4v38a26sRo,25122
109
- hindsight_api-0.4.3.dist-info/METADATA,sha256=aCH_ERkOa46kNuq9x4tgAeQ6kqixoLu0OUBFWBsG74U,5794
110
- hindsight_api-0.4.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
111
- hindsight_api-0.4.3.dist-info/entry_points.txt,sha256=1-mxPbRGL_Byf9ZrHYkPW-TEgLYFcwCiSFCxOgI_3vM,206
112
- hindsight_api-0.4.3.dist-info/RECORD,,
109
+ hindsight_api-0.4.4.dist-info/METADATA,sha256=dX_nPi0cPqnB1mXj95OM9LHD1d7P04SBbYVDz6VM_qU,5794
110
+ hindsight_api-0.4.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
111
+ hindsight_api-0.4.4.dist-info/entry_points.txt,sha256=1-mxPbRGL_Byf9ZrHYkPW-TEgLYFcwCiSFCxOgI_3vM,206
112
+ hindsight_api-0.4.4.dist-info/RECORD,,