Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/24kchengYe/MemoMind
/ types & classes
Types & classes
350 in github.com/24kchengYe/MemoMind
⨍
Functions
1,372
◇
Types & classes
350
↳
Endpoints
62
↓ 30 callers
Class
TokenUsage
Token usage metrics for LLM calls. Tracks input/output tokens for a single request to enable per-request cost tracking and monitoring.
engine/hindsight_api/engine/response_models.py:72
↓ 21 callers
Class
BankWriteContext
Context for a bank write operation validation (pre-operation).
engine/hindsight_api/extensions/operation_validator.py:218
↓ 20 callers
Class
AuthenticationError
Raised when authentication fails.
engine/hindsight_api/extensions/tenant.py:11
↓ 19 callers
Class
BankReadContext
Context for a bank read operation validation (pre-operation).
engine/hindsight_api/extensions/operation_validator.py:209
↓ 12 callers
Class
ChunkMetadata
Metadata about a text chunk. Used to track which facts were extracted from which chunks.
engine/hindsight_api/engine/retain/types.py:62
↓ 9 callers
Class
LLMToolCallResult
Result from an LLM call that may include tool calls.
engine/hindsight_api/engine/response_models.py:25
↓ 8 callers
Class
RequestContext
Context for request authentication and authorization. This dataclass carries authentication data from HTTP requests to the memory engine
engine/hindsight_api/models.py:11
↓ 7 callers
Class
MemoryFact
A single memory fact returned by search or think operations. This represents a unit of information stored in the memory system, includin
engine/hindsight_api/engine/response_models.py:120
↓ 7 callers
Class
ReflectAgentResult
Result from the reflect agent.
engine/hindsight_api/engine/reflect/models.py:86
↓ 6 callers
Class
Entity
An entity extracted from text.
patches/fact_extraction.py:72
↓ 6 callers
Class
Entity
An entity extracted from text.
engine/hindsight_api/engine/retain/fact_extraction.py:72
↓ 6 callers
Class
LLMToolCall
A tool call requested by the LLM.
engine/hindsight_api/engine/response_models.py:17
↓ 6 callers
Class
QueryAnalysis
Result of analyzing a natural language query. Contains extracted structured information like temporal constraints.
engine/hindsight_api/engine/query_analyzer.py:32
↓ 5 callers
Class
ExtensionLoadError
Raised when an extension fails to load.
engine/hindsight_api/extensions/loader.py:18
↓ 5 callers
Class
MemoryEngine
Advanced memory system using temporal and semantic linking with PostgreSQL. This class provides: - Embedding generation for semantic sea
engine/hindsight_api/engine/memory_engine.py:221
↓ 4 callers
Class
BankProfileResponse
Response model for bank profile.
engine/hindsight_api/api/http.py:807
↓ 4 callers
Class
Config
engine/hindsight_api/engine/directives/models.py:36
↓ 4 callers
Class
DeleteResponse
Response model for delete operations.
engine/hindsight_api/api/http.py:1297
↓ 4 callers
Class
DirectiveResponse
Response model for a directive.
engine/hindsight_api/api/http.py:1364
↓ 4 callers
Class
DispositionTraits
Disposition traits that influence how memories are formed and interpreted.
engine/hindsight_api/api/http.py:797
↓ 4 callers
Class
EntityLink
Link between two memory units through a shared entity. Used for entity-based graph connections in the memory graph.
engine/hindsight_api/engine/retain/types.py:225
↓ 4 callers
Class
MPFPTimings
Timing breakdown for a single MPFP retrieval call.
engine/hindsight_api/engine/search/types.py:14
↓ 4 callers
Class
TemporalConstraint
Temporal constraint extracted from a query. Represents a time range with start and end dates.
engine/hindsight_api/engine/query_analyzer.py:18
↓ 4 callers
Class
TenantContext
Tenant context returned by authentication. Contains the PostgreSQL schema name for tenant isolation. All database queries will use fully
engine/hindsight_api/extensions/tenant.py:21
↓ 4 callers
Class
WebhookHttpConfig
HTTP delivery configuration for a webhook.
engine/hindsight_api/webhooks/models.py:35
↓ 3 callers
Class
BankConfigResponse
Response model for bank configuration.
engine/hindsight_api/api/http.py:1050
↓ 3 callers
Class
DispositionTraits
Disposition traits for a memory bank. All traits are scored 1-5 where: - skepticism: 1=trusting, 5=skeptical (how much to doubt or quest
engine/hindsight_api/engine/response_models.py:103
↓ 3 callers
Class
EmbeddedPostgres
Manages an embedded PostgreSQL server instance using pg0-embedded.
engine/hindsight_api/pg0.py:17
↓ 3 callers
Class
MentalModelResponse
Response model for a mental model (stored reflect response).
engine/hindsight_api/api/http.py:1418
↓ 3 callers
Class
PatternResult
Result from a single pattern traversal.
engine/hindsight_api/engine/search/mpfp_retrieval.py:111
↓ 3 callers
Class
RecallResult
Result context for post-recall hook. Contains the operation parameters and the result.
engine/hindsight_api/extensions/operation_validator.py:142
↓ 3 callers
Class
Tenant
Represents a tenant for worker discovery. Used by list_tenants() to return tenant information including the PostgreSQL schema name for d
engine/hindsight_api/extensions/tenant.py:34
↓ 3 callers
Class
WebhookConfig
engine/hindsight_api/webhooks/models.py:44
↓ 3 callers
Class
WebhookEvent
engine/hindsight_api/webhooks/models.py:26
↓ 3 callers
Class
WebhookResponse
Response model for a webhook.
engine/hindsight_api/api/http.py:1714
↓ 2 callers
Class
BankProfile
Type for bank profile data.
engine/hindsight_api/engine/retain/bank_utils.py:74
↓ 2 callers
Class
CausalRelation
Causal relationship from this fact to a previous fact (stored format).
patches/fact_extraction.py:106
↓ 2 callers
Class
CausalRelation
Causal relationship from this fact to a previous fact (stored format).
engine/hindsight_api/engine/retain/fact_extraction.py:106
↓ 2 callers
Class
ChunkInfo
Information about a chunk.
engine/hindsight_api/engine/response_models.py:168
↓ 2 callers
Class
ConsolidationEventData
engine/hindsight_api/webhooks/models.py:14
↓ 2 callers
Class
DateparserQueryAnalyzer
Query analyzer using dateparser library. Uses dateparser to extract temporal expressions from natural language queries. Supports 200+ la
engine/hindsight_api/engine/query_analyzer.py:77
↓ 2 callers
Class
DefaultExtensionContext
Default implementation of ExtensionContext. Uses the system's database URL and migration infrastructure.
engine/hindsight_api/extensions/context.py:75
↓ 2 callers
Class
DefaultTenantExtension
Default single-tenant extension with no authentication. This is the default extension used when no tenant extension is configured. It pr
engine/hindsight_api/extensions/builtin/tenant.py:8
↓ 2 callers
Class
EdgeTarget
A neighbor node with its edge weight.
engine/hindsight_api/engine/search/mpfp_retrieval.py:38
↓ 2 callers
Class
EntityLabelsConfig
Entity labels configuration for a bank (controlled vocabulary).
engine/hindsight_api/engine/retain/entity_labels.py:32
↓ 2 callers
Class
EntityObservationResponse
An observation about an entity.
engine/hindsight_api/api/http.py:219
↓ 2 callers
Class
EntityState
Current mental model of an entity. Contains observations synthesized from facts about the entity.
engine/hindsight_api/engine/response_models.py:323
↓ 2 callers
Class
Fact
Final fact model for storage - built from lenient parsing of LLM response. This is what fact_extraction returns and what the rest of the pip
patches/fact_extraction.py:80
↓ 2 callers
Class
Fact
Final fact model for storage - built from lenient parsing of LLM response. This is what fact_extraction returns and what the rest of the pip
engine/hindsight_api/engine/retain/fact_extraction.py:80
↓ 2 callers
Class
HindsightConfig
Configuration container for Hindsight API.
engine/hindsight_api/config.py:587
↓ 2 callers
Class
LinkExpansionRetriever
Graph retrieval via direct link expansion from seeds. Runs three expansions through precomputed memory_links: entity co-occurrence, sema
engine/hindsight_api/engine/search/link_expansion_retrieval.py:79
↓ 2 callers
Class
NoOpSpan
No-op span that provides the same interface as OpenTelemetry Span but does nothing.
engine/hindsight_api/tracing.py:67
↓ 2 callers
Class
OperationValidationError
Raised when an operation fails validation.
engine/hindsight_api/extensions/operation_validator.py:17
↓ 2 callers
Class
PatternState
State for a pattern traversal between hops.
engine/hindsight_api/engine/search/mpfp_retrieval.py:225
↓ 2 callers
Class
RetainContent
Input content item to be retained as memories. Represents a single piece of content to extract facts from.
engine/hindsight_api/engine/retain/types.py:43
↓ 2 callers
Class
RetainContext
Context for a retain operation validation (pre-operation). Contains ALL user-provided parameters for the retain operation.
engine/hindsight_api/extensions/operation_validator.py:51
↓ 2 callers
Class
RetryTaskAt
Raise from a task handler to schedule a retry at a specific time.
engine/hindsight_api/worker/exceptions.py:4
↓ 2 callers
Class
SeedNode
An entry point node with its initial score.
engine/hindsight_api/engine/search/mpfp_retrieval.py:147
↓ 2 callers
Class
TokenUsageSummary
Total token usage across all LLM calls.
engine/hindsight_api/engine/reflect/models.py:78
↓ 2 callers
Class
WorkerPoller
Polls PostgreSQL for pending tasks and executes them. Uses FOR UPDATE SKIP LOCKED for safe distributed claiming, allowing multiple worke
engine/hindsight_api/worker/poller.py:46
↓ 2 callers
Class
_BatchLLMResult
patches/consolidator.py:77
↓ 2 callers
Class
_BatchLLMResult
engine/hindsight_api/engine/consolidation/consolidator.py:77
↓ 2 callers
Class
_EntityStat
Stat accumulation entry for a resolved entity (post-transaction update).
engine/hindsight_api/engine/entity_resolver.py:34
↓ 2 callers
Class
_EntityToCreate
An entity that needs to be inserted (no matching candidate found).
engine/hindsight_api/engine/entity_resolver.py:25
↓ 1 callers
Class
AnthropicLLM
LLM provider using Anthropic's Claude models. Supports structured output, tool calling, and extended thinking mode. Handles format conve
engine/hindsight_api/engine/providers/anthropic_llm.py:24
↓ 1 callers
Class
AsyncOperationSubmitResponse
Response model for submitting an async operation.
engine/hindsight_api/api/http.py:1642
↓ 1 callers
Class
AzureFileStorage
Azure Blob Storage backend. Uses obstore (Rust-backed) for high-throughput async access to Azure Blob Storage. Supports account key, SAS
engine/hindsight_api/engine/storage/azure.py:14
↓ 1 callers
Class
BFSGraphRetriever
Graph retrieval using BFS-style spreading activation. Starting from semantic entry points, spreads activation through the memory graph (
engine/hindsight_api/engine/search/graph_retrieval.py:72
↓ 1 callers
Class
BackgroundResponse
Response model for background update. Deprecated: use MissionResponse instead.
engine/hindsight_api/api/http.py:872
↓ 1 callers
Class
BankListContext
Context for filtering the bank list (post-query).
engine/hindsight_api/extensions/operation_validator.py:227
↓ 1 callers
Class
BankListResponse
Response model for listing all banks.
engine/hindsight_api/api/http.py:900
↓ 1 callers
Class
BankListResult
Result of filtering the bank list.
engine/hindsight_api/extensions/operation_validator.py:235
↓ 1 callers
Class
BankStatsResponse
Response model for bank statistics endpoint.
engine/hindsight_api/api/http.py:1317
↓ 1 callers
Class
BanksAPI
Namespace for bank-related operations.
engine/hindsight/api_namespaces.py:16
↓ 1 callers
Class
BanksAPI
Namespace for bank-related operations.
engine/hindsight/client_wrapper.py:15
↓ 1 callers
Class
BatchRetainChildMetadata
Metadata for child batch_retain operations (individual sub-batches).
engine/hindsight_api/engine/operation_metadata.py:27
↓ 1 callers
Class
BatchRetainParentMetadata
Metadata for parent batch_retain operations (when split into sub-batches).
engine/hindsight_api/engine/operation_metadata.py:13
↓ 1 callers
Class
BrokerTaskBackend
Task backend using PostgreSQL as broker. submit_task() stores task_payload in async_operations table. Actual polling and execution is ha
engine/hindsight_api/engine/task_backend.py:132
↓ 1 callers
Class
BudgetedOperation
A single operation with connection budget. Provides methods to acquire connections within the budget.
engine/hindsight_api/engine/db_budget.py:108
↓ 1 callers
Class
BudgetedPool
A pool wrapper that limits concurrent connection acquisitions. This can be passed to functions expecting a pool, and acquire() calls wil
engine/hindsight_api/engine/db_budget.py:238
↓ 1 callers
Class
CancelOperationResponse
Response model for cancel operation endpoint.
engine/hindsight_api/api/http.py:1563
↓ 1 callers
Class
ChunkData
Chunk data for a single chunk.
engine/hindsight_api/api/http.py:310
↓ 1 callers
Class
ClaimedTask
A task claimed from the database with its schema context.
engine/hindsight_api/worker/poller.py:38
↓ 1 callers
Class
ClaudeCodeLLM
LLM provider using Claude Code authentication. Authenticates using Claude Pro/Max credentials via `claude auth login` and makes API call
engine/hindsight_api/engine/providers/claude_code_llm.py:22
↓ 1 callers
Class
ClearMemoryObservationsResponse
Response model for clearing observations for a specific memory.
engine/hindsight_api/api/http.py:1309
↓ 1 callers
Class
CodexLLM
LLM provider using OpenAI Codex OAuth authentication. Authenticates using ChatGPT Plus/Pro credentials stored in ~/.codex/auth.json and
engine/hindsight_api/engine/providers/codex_llm.py:27
↓ 1 callers
Class
CohereCrossEncoder
Cohere cross-encoder implementation using the Cohere Rerank API. Supports rerank-english-v3.0 and rerank-multilingual-v3.0 models.
engine/hindsight_api/engine/cross_encoder.py:457
↓ 1 callers
Class
CohereEmbeddings
Cohere embeddings implementation using the Cohere API. Supports embed-english-v3.0 (1024 dims) and embed-multilingual-v3.0 (1024 dims).
engine/hindsight_api/engine/embeddings.py:482
↓ 1 callers
Class
ConfigFieldAccessError
Raised when trying to access a bank-configurable field from global config.
engine/hindsight_api/config.py:23
↓ 1 callers
Class
ConfigResolver
Resolves hierarchical configuration with tenant/bank overrides.
engine/hindsight_api/config_resolver.py:26
↓ 1 callers
Class
ConfiguredLLMProvider
Thin wrapper around LLMProvider that applies bank-specific config to every call. Obtained via ``LLMProvider.with_config(resolved_config)``.
engine/hindsight_api/engine/llm_wrapper.py:728
↓ 1 callers
Class
ConnectionBudgetManager
Manages per-operation connection budgets. Usage: manager = ConnectionBudgetManager(default_budget=4) # Start an operation
engine/hindsight_api/engine/db_budget.py:39
↓ 1 callers
Class
ConsolidationPerfLog
Performance logging for consolidation operations.
patches/consolidator.py:121
↓ 1 callers
Class
ConsolidationPerfLog
Performance logging for consolidation operations.
engine/hindsight_api/engine/consolidation/consolidator.py:121
↓ 1 callers
Class
ConsolidationResponse
Response model for consolidation trigger endpoint.
engine/hindsight_api/api/http.py:1526
↓ 1 callers
Class
ConvertResult
Result of a successful file conversion.
engine/hindsight_api/engine/parsers/__init__.py:21
↓ 1 callers
Class
CreateMentalModelResponse
Response model for mental model creation.
engine/hindsight_api/api/http.py:1471
↓ 1 callers
Class
CrossEncoderReranker
Neural reranking using a cross-encoder model. Configured via environment variables (see cross_encoder.py). Default local model is cross-
engine/hindsight_api/engine/search/reranking.py:72
↓ 1 callers
Class
DeleteDocumentResponse
Response model for delete document endpoint.
engine/hindsight_api/api/http.py:1253
↓ 1 callers
Class
DirectiveInfo
Information about a directive that was applied during reflect.
engine/hindsight_api/engine/reflect/models.py:70
next →
1–100 of 350, ranked by callers