MCPcopy Create free account

hub / github.com/24kchengYe/MemoMind / functions

Functions1,372 in github.com/24kchengYe/MemoMind

↓ 5 callersMethodupdate_bank
Update bank name and/or mission.
engine/hindsight_api/engine/memory_engine.py:7246
↓ 4 callersMethod_delete_stale_observations_for_memories
Handle cleanup of observations when source memories are deleted. For each observation referencing any of the deleted fact IDs:
engine/hindsight_api/engine/memory_engine.py:5844
↓ 4 callersFunction_fq_table
Get fully-qualified table name with optional schema prefix.
engine/hindsight_api/webhooks/manager.py:26
↓ 4 callersFunction_fq_table
Get fully-qualified table name with schema prefix.
engine/hindsight_api/admin/cli.py:22
↓ 4 callersFunction_get_default_model_for_provider
Get the default model for a given provider.
engine/hindsight_api/config.py:581
↓ 4 callersFunction_get_enabled_tools
Return the enabled tool set for the current bank, or None if unrestricted.
engine/hindsight_api/mcp_tools.py:277
↓ 4 callersMethod_get_pg0
(self)
engine/hindsight_api/pg0.py:36
↓ 4 callersMethod_load_bank_config
Load bank config overrides from banks.config JSONB column. Args: bank_id: Bank identifier Returns:
engine/hindsight_api/config_resolver.py:140
↓ 4 callersFunction_normalize_tool_name
Normalize tool name from various LLM output formats. Some LLMs output tool names in non-standard formats: - 'functions.done' (OpenAI-style pr
engine/hindsight_api/engine/reflect/agent.py:48
↓ 4 callersFunction_parse_datetime
Parse ISO datetime string.
patches/fact_extraction.py:2031
↓ 4 callersFunction_parse_datetime
Parse ISO datetime string.
engine/hindsight_api/engine/retain/fact_extraction.py:2025
↓ 4 callersMethod_proxy
Proxy requests to MemoMind API.
dashboard.py:238
↓ 4 callersMethod_proxy_vault
Proxy /vault/* requests to NoteDiscovery backend.
dashboard.py:200
↓ 4 callersFunction_raise_for_status
Raise an appropriate error including the response body on HTTP errors. Raises UnsupportedFileTypeError for 4xx responses (file rejected by t
engine/hindsight_api/engine/parsers/iris.py:125
↓ 4 callersMethod_row_to_directive
Convert a database row to a directive dict.
engine/hindsight_api/engine/memory_engine.py:6896
↓ 4 callersMethod_row_to_mental_model
Convert a database row to a mental model dict.
engine/hindsight_api/engine/memory_engine.py:6578
↓ 4 callersMethod_submit_async_operation
Generic helper to submit an async operation. Args: bank_id: Bank identifier operation_type: Operation type for the as
engine/hindsight_api/engine/memory_engine.py:7289
↓ 4 callersFunction_validate_mental_model_inputs
Validate mental model inputs, returning an error message or None if valid.
engine/hindsight_api/mcp_tools.py:790
↓ 4 callersMethodacquire
()
engine/hindsight_api/engine/memory_engine.py:1773
↓ 4 callersMethodadd_retrieval_results
Record results from a single retrieval method. Args: method_name: Name of the retrieval method results: List
engine/hindsight_api/engine/search/tracer.py:304
↓ 4 callersFunctionbuild_final_prompt
Build the final prompt when forcing a text response (no tools).
engine/hindsight_api/engine/reflect/prompts.py:400
↓ 4 callersFunctionbuild_labels_lookup
Build a set of valid 'key:value' label strings (lowercase) for fast lookup. Accepts either EntityLabelsConfig or raw list/None for backwards
engine/hindsight_api/engine/retain/entity_labels.py:165
↓ 4 callersFunctioncreate_app
Create and configure the FastAPI application. Args: memory: MemoryEngine instance (already initialized with required parameters).
engine/hindsight_api/api/http.py:1807
↓ 4 callersFunctioncreate_mcp_server
Create and configure the Hindsight MCP server. Args: memory: MemoryEngine instance (required) multi_bank: If True, expose al
engine/hindsight_api/api/mcp.py:107
↓ 4 callersFunctioncreate_operation_span
Create a parent span for a Hindsight operation (retain, reflect, consolidation, etc.). This creates the span hierarchy: - hindsight.{ope
engine/hindsight_api/tracing.py:205
↓ 4 callersMethodensure_running
Ensure the PostgreSQL server is running, starting it if needed.
engine/hindsight_api/pg0.py:118
↓ 4 callersFunctionis_label_entity
Return True if entity text belongs to any configured label group. For enum groups: checks the pre-built lookup set. For text groups: che
engine/hindsight_api/engine/retain/entity_labels.py:150
↓ 4 callersMethodregister
Register a parser. Args: parser: FileParser instance
engine/hindsight_api/engine/parsers/__init__.py:38
↓ 4 callersMethodrelease
Release a connection back to the pool.
engine/hindsight_api/engine/db_budget.py:273
↓ 4 callersMethodrerank
Rank documents by relevance to a query. Returns a list of dicts with keys: document, relevance_score, index. Sorted by desce
engine/hindsight_api/engine/jina_mlx_reranker.py:99
↓ 4 callersFunctionresolve_database_url
Resolve a database URL, handling pg0:// embedded database URLs. If the URL is a pg0:// URL, starts the embedded PostgreSQL and returns t
engine/hindsight_api/pg0.py:181
↓ 4 callersMethodstop
Stop the PostgreSQL server.
engine/hindsight_api/pg0.py:87
↓ 4 callersMethodsupports_batch_api
Check if this provider supports batch API operations.
engine/hindsight_api/engine/providers/openai_compatible_llm.py:810
↓ 4 callersMethodto_dict
Export trace as dictionary.
engine/hindsight_api/engine/search/trace.py:225
↓ 4 callersMethodverify_connection
Verify that the LLM provider is configured correctly by making a simple test call. Raises: RuntimeError: If the connecti
engine/hindsight_api/engine/llm_wrapper.py:422
↓ 4 callersMethodwith_config
Return a configured wrapper for a specific bank operation. The wrapper applies per-bank overrides (e.g. Gemini safety settings)
engine/hindsight_api/engine/llm_wrapper.py:650
↓ 3 callersMethod_check_op_alive
Return False if the operation row no longer exists (e.g. bank was deleted via CASCADE). Long-running operations should call this at natural c
engine/hindsight_api/engine/memory_engine.py:1247
↓ 3 callersFunction_extract_directive_rules
Extract directive rules as a list of strings.
engine/hindsight_api/engine/reflect/prompts.py:22
↓ 3 callersMethod_fetch_jwks
Fetch public signing keys from the Supabase JWKS endpoint.
engine/hindsight_api/extensions/builtin/supabase_tenant.py:219
↓ 3 callersFunction_find_chat_md
Find the .md file path for a given document_id (conversation id). The index.json stores entries like: {"id": "676c0892-...", "filePath": "c
dashboard.py:60
↓ 3 callersMethod_get_schemas
Get list of schemas to poll. Returns [None] for default schema (no prefix).
engine/hindsight_api/worker/poller.py:107
↓ 3 callersFunction_get_tenant
Get current tenant (schema) from context for metrics labeling.
engine/hindsight_api/metrics.py:32
↓ 3 callersMethod_json_error
Send a JSON error response.
dashboard.py:184
↓ 3 callersMethod_maybe_update_parent_operation
Check if this is a child operation and update parent status if all siblings are done. Must be called within an active transaction that has al
engine/hindsight_api/engine/memory_engine.py:1392
↓ 3 callersMethod_request_with_retry
Make an HTTP request with automatic retries on transient errors.
engine/hindsight_api/engine/embeddings.py:255
↓ 3 callersMethod_send_error
Send an error response.
engine/hindsight_api/api/mcp.py:416
↓ 3 callersFunction_serialize_for_span
Serialize an object for span recording, handling Pydantic models.
engine/hindsight_api/tracing.py:28
↓ 3 callersMethod_task_key
Return a unique key for the current asyncio task (or 0 for non-task context).
engine/hindsight_api/engine/entity_resolver.py:83
↓ 3 callersFunction_truncate_content
Truncate content if too large for span.
engine/hindsight_api/tracing.py:247
↓ 3 callersFunctionbuild_tags_where_clause
Build a SQL WHERE clause for filtering by tags. Supports four matching modes: - "any" (default): OR matching, includes untagged memories
engine/hindsight_api/engine/search/tags.py:46
↓ 3 callersMethodcall
Make an LLM API call with retry logic. Args: messages: List of message dicts with 'role' and 'content'. resp
engine/hindsight_api/engine/llm_wrapper.py:431
↓ 3 callersMethodcancel_operation
Cancel a pending async operation.
engine/hindsight_api/engine/memory_engine.py:7149
↓ 3 callersMethodconfigure_logging
Configure Python logging based on the log level and format. When log_format is "json", outputs structured JSON logs with a severity f
engine/hindsight_api/config.py:1313
↓ 3 callersFunctioncreate_bank_hnsw_indexes
Create per-(bank, fact_type) partial HNSW indexes for a newly created bank. Called immediately after the bank row is first inserted. Safe on empt
engine/hindsight_api/engine/retain/bank_utils.py:37
↓ 3 callersMethoddelete_document
Delete a document and all its associated memory units and links. Args: document_id: Document ID to delete ba
engine/hindsight_api/engine/memory_engine.py:3441
↓ 3 callersFunctiondescribe_trait_level
Convert trait value (1-5) to descriptive text.
engine/hindsight_api/engine/search/think_utils.py:13
↓ 3 callersMethodflush
Flush all log lines to the logger.
engine/hindsight_api/engine/consolidation/consolidator.py:150
↓ 3 callersFunctionget_bank_profile
Get bank profile (name, disposition + mission). Auto-creates bank with default values if not exists. Args: pool: Database connec
engine/hindsight_api/engine/retain/bank_utils.py:88
↓ 3 callersMethodget_bank_stats
Get statistics about memory nodes and links for a bank.
engine/hindsight_api/engine/memory_engine.py:5631
↓ 3 callersMethodget_configurable_fields
Get set of field names that are configurable per-tenant/bank via API. Configurable fields are manually tagged behavioral settings th
engine/hindsight_api/config.py:868
↓ 3 callersFunctionget_current_schema
Get the current schema from context (falls back to config default).
engine/hindsight_api/engine/memory_engine.py:45
↓ 3 callersMethodget_directive
Get a single directive by ID. Args: bank_id: Bank identifier directive_id: Directive UUID request_context
engine/hindsight_api/engine/memory_engine.py:6692
↓ 3 callersMethodget_document
Retrieve document metadata and statistics. Args: document_id: Document ID to retrieve bank_id: bank ID that
engine/hindsight_api/engine/memory_engine.py:3388
↓ 3 callersMethodget_memory_unit
Get a single memory unit by ID. Args: bank_id: Bank ID memory_id: Memory unit ID request_context
engine/hindsight_api/engine/memory_engine.py:4468
↓ 3 callersMethodget_operation_status
Get the status of a specific async operation. For parent operations, the status is automatically updated in the database when all children co
engine/hindsight_api/engine/memory_engine.py:7006
↓ 3 callersMethodinitialize
Initialize the embedding model asynchronously. This should be called during startup to load/connect to the model and avoid c
engine/hindsight_api/engine/embeddings.py:66
↓ 3 callersMethodlist_banks
List all agents in the system. Args: request_context: Request context for authentication. Returns:
engine/hindsight_api/engine/memory_engine.py:5007
↓ 3 callersMethodlist_documents
List documents with optional search and pagination. Args: bank_id: bank ID (required) search_query: Search i
engine/hindsight_api/engine/memory_engine.py:4672
↓ 3 callersMethodlist_memory_units
List memory units for table view with optional full-text search. Args: bank_id: Filter by bank ID fact_type:
engine/hindsight_api/engine/memory_engine.py:4334
↓ 3 callersMethodlist_operations
List async operations for a bank with optional filtering and pagination. Args: bank_id: Bank identifier status: Optio
engine/hindsight_api/engine/memory_engine.py:6910
↓ 3 callersMethodlist_tags
List all unique tags for a bank with usage counts. Use this to discover available tags or expand wildcard patterns. Supports
engine/hindsight_api/engine/memory_engine.py:5510
↓ 3 callersMethodlist_tenants
List all tenants that should be processed by workers. This method is used by the worker to discover all tenants that need ta
engine/hindsight_api/extensions/tenant.py:80
↓ 3 callersFunctionmask_network_location
(url)
engine/hindsight_api/utils.py:4
↓ 3 callersFunctionnormalize_config_dict
Normalize all keys in a config dict to Python field names. Allows users to provide config overrides in either format: - Python field for
engine/hindsight_api/config.py:102
↓ 3 callersFunctionnormalize_ts
(ts: datetime)
engine/hindsight_api/engine/reflect/observations.py:153
↓ 3 callersMethodon_recall_complete
Called after a recall operation completes (success or failure). Override this method to implement post-operation logic such as:
engine/hindsight_api/extensions/operation_validator.py:442
↓ 3 callersFunctionparse_timestamp
Parse an ISO format timestamp string. Args: timestamp: ISO format timestamp (e.g., '2024-01-15T10:30:00Z') Returns: Parsed d
engine/hindsight_api/mcp_tools.py:70
↓ 3 callersMethodrecord_operation
Context manager to record operation duration and status. Usage: with metrics.record_operation("recall", bank_id="user123
engine/hindsight_api/metrics.py:307
↓ 3 callersMethodretain_batch_async
Store multiple content items as memory units in ONE batch operation. This is MUCH more efficient than calling retain_async multiple
engine/hindsight_api/engine/memory_engine.py:1943
↓ 3 callersMethodretrieve
Retrieve file by storage key. Args: key: Storage key Returns: File data as bytes Raises:
engine/hindsight_api/engine/storage/base.py:30
↓ 3 callersFunctionretry_with_backoff
Execute an async function with exponential backoff retry. Args: func: Async function to execute max_retries: Maximum number
engine/hindsight_api/engine/db_utils.py:30
↓ 3 callersMethodset_context
Set the extension context. Called by the extension loader after instantiation. Extensions should not call this directly.
engine/hindsight_api/extensions/base.py:38
↓ 3 callersMethodshutdown
Shutdown the backend gracefully.
engine/hindsight_api/engine/task_backend.py:73
↓ 3 callersMethodsubmit_async_retain
Submit a batch retain operation to run asynchronously. For large batches (exceeding retain_batch_chars threshold), automatically splits
engine/hindsight_api/engine/memory_engine.py:7373
↓ 3 callersMethodupdate_bank_config
Update bank configuration overrides (with permission checking). Args: bank_id: Bank identifier updates: Dict
engine/hindsight_api/config_resolver.py:176
↓ 3 callersMethodupdate_directive
Update a directive. Args: bank_id: Bank identifier directive_id: Directive UUID name: New name (optional)
engine/hindsight_api/engine/memory_engine.py:6782
↓ 2 callersMethod__enter__
Context manager entry.
engine/hindsight/server.py:211
↓ 2 callersMethod__exit__
Context manager exit.
engine/hindsight/server.py:215
↓ 2 callersFunction_add_temporal_offsets
Add time offsets to preserve fact ordering across all contents. This allows retrieval to distinguish between facts from different documents/
patches/fact_extraction.py:2058
↓ 2 callersFunction_add_temporal_offsets
Add time offsets to preserve fact ordering across all contents. This allows retrieval to distinguish between facts from different documents/
engine/hindsight_api/engine/retain/fact_extraction.py:2052
↓ 2 callersFunction_aggregate_source_fields
Compute the observation fields inherited from a set of source memories. Temporal aggregation rules: - ``event_date`` — earliest across sou
patches/consolidator.py:96
↓ 2 callersFunction_aggregate_source_fields
Compute the observation fields inherited from a set of source memories. Temporal aggregation rules: - ``event_date`` — earliest across sou
engine/hindsight_api/engine/consolidation/consolidator.py:96
↓ 2 callersMethod_async_request_with_retry
Make an async HTTP request with automatic retries on transient errors and semaphore for backpressure.
engine/hindsight_api/engine/cross_encoder.py:301
↓ 2 callersFunction_build_extraction_prompt_and_schema
Build extraction prompt and response schema based on config. When a taxonomy is configured, dynamically builds a Pydantic model with a t
patches/fact_extraction.py:732
↓ 2 callersFunction_build_extraction_prompt_and_schema
Build extraction prompt and response schema based on config. When a taxonomy is configured, dynamically builds a Pydantic model with a t
engine/hindsight_api/engine/retain/fact_extraction.py:732
↓ 2 callersMethod_build_retain_outbox_callback
Build a transactional outbox callback for retain.completed webhook events. Returns a coroutine function that queues one webhook delivery row
engine/hindsight_api/engine/memory_engine.py:1096
↓ 2 callersFunction_build_user_message
Build user message for fact extraction.
patches/fact_extraction.py:833
↓ 2 callersFunction_build_user_message
Build user message for fact extraction.
engine/hindsight_api/engine/retain/fact_extraction.py:833
↓ 2 callersMethod_check_idle
Background task that exits the process after idle timeout.
engine/hindsight_api/daemon.py:42
↓ 2 callersMethod_cleanup
Cleanup client resources (idempotent). Args: stop_daemon_on_close: If True, stops the daemon. Otherwise, daemon continue
engine/hindsight/embedded.py:157
← previousnext →101–200 of 1,372, ranked by callers