fleet-memory/hindsight-api/hindsight_api/extensions
Chris Bartholomew 9c3fda74e2
Add extension hooks for mental model operations (#260)
Add dataclasses and hook methods to OperationValidatorExtension for
tracking mental model operations:

- MentalModelGetContext/Result: context and result for GET operations
- MentalModelRefreshResult: result for refresh operations with token counts
- validate_mental_model_get: pre-operation validation hook
- on_mental_model_get_complete: post-GET completion hook
- on_mental_model_refresh_complete: post-refresh completion hook

Invoke hooks in http.py (GET endpoint) and memory_engine.py (refresh).
Add tests verifying hooks are called with correct parameters.
2026-01-31 09:30:53 -05:00
..
builtin feat: support different default pg schema (#222) 2026-01-28 18:14:44 +01:00
__init__.py Add extension hooks for mental model operations (#260) 2026-01-31 09:30:53 -05:00
base.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
context.py Fix embedding dimension for tenant schemas (#135) 2026-01-08 22:48:25 +01:00
http.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
loader.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
operation_validator.py Add extension hooks for mental model operations (#260) 2026-01-31 09:30:53 -05:00
tenant.py fix: improve mental model consolidation (#197) 2026-01-26 09:54:25 +01:00