Expand description
Predefined SochQL Views (Task 7: Stable Identifiers)
This module defines canonical views over the core memory schema (episodes, events, entities) that provide:
- Stable naming: LLMs and humans learn consistent patterns
- Self-documenting: View names encode semantics directly
- Reduced complexity: O(1) concepts instead of O(T) tables
§Views
| View | Purpose | Common Use |
|---|---|---|
conversation_view | Chat messages | “Show recent conversation” |
tool_calls_view | Tool invocations | “What tools were used?” |
error_view | Error events | “Show recent errors” |
episode_summary_view | Episode overviews | “List recent tasks” |
entity_directory_view | Entity catalog | “Find user/project” |
Modules§
- naming
- Standard column naming conventions
Structs§
- View
Definition - A predefined view definition
Functions§
- build_
view_ map - Build a HashMap of views for O(1) lookup
- get_
predefined_ views - Get all predefined views
- get_
view - Get a view by name