MCPcopy Create free account

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

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

↓ 1 callersFunction_format_prompt
(query: str, docs: list[str], special_tokens: dict[str, str])
engine/hindsight_api/engine/jina_mlx_reranker.py:51
↓ 1 callersMethod_get_available_slots
Calculate available slots for claiming tasks. Returns: (total_available, consolidation_available) tuple
engine/hindsight_api/worker/poller.py:115
↓ 1 callersMethod_get_bank
Extract bank from query params or default to 'default'.
dashboard.py:177
↓ 1 callersMethod_get_budget
Get budget for an operation (internal use).
engine/hindsight_api/engine/db_budget.py:100
↓ 1 callersMethod_get_max_reasoning_tokens
Get max reasoning tokens for reasoning models.
engine/hindsight_api/engine/providers/openai_compatible_llm.py:150
↓ 1 callersFunction_get_schema_lock_id
Generate a unique advisory lock ID for a schema. Uses hash of schema name to create a deterministic lock ID.
engine/hindsight_api/migrations.py:108
↓ 1 callersFunction_get_schema_prefix
Get schema prefix for table names (required for multi-tenant support).
engine/hindsight_api/alembic/versions/i4d5e6f7g8h9_delete_opinions.py:23
↓ 1 callersFunction_get_schema_prefix
()
engine/hindsight_api/alembic/versions/b4c5d6e7f8a9_backfill_observation_scopes.py:23
↓ 1 callersMethod_get_signing_key
Resolve the signing key for a token from the JWKS cache. If the key ID (``kid``) is not in the cache, triggers one JWKS refresh
engine/hindsight_api/extensions/builtin/supabase_tenant.py:238
↓ 1 callersMethod_handle_batch_retain
Handler for batch retain tasks. Args: task_dict: Dict with 'bank_id', 'contents', 'operation_id' Raises:
engine/hindsight_api/engine/memory_engine.py:547
↓ 1 callersMethod_handle_consolidation
Handler for consolidation tasks. Consolidates new memories into mental models for a bank. Args: task_dict: Dict
engine/hindsight_api/engine/memory_engine.py:785
↓ 1 callersMethod_handle_file_convert_retain
Handler for file conversion tasks. Converts a file to markdown, then submits a separate async retain operation and marks thi
engine/hindsight_api/engine/memory_engine.py:620
↓ 1 callersMethod_handle_refresh_mental_model
Handler for refresh_mental_model tasks. Re-runs the source query through reflect and updates the mental model content. Args
engine/hindsight_api/engine/memory_engine.py:823
↓ 1 callersMethod_handle_webhook_delivery
Deliver a webhook event via HTTP. Raises RetryTaskAt to schedule a retry on failure (up to MAX_ATTEMPTS). Raises the original excepti
engine/hindsight_api/engine/memory_engine.py:1169
↓ 1 callersMethod_health_check
Verify connectivity to Supabase using the auth health endpoint.
engine/hindsight_api/extensions/builtin/supabase_tenant.py:421
↓ 1 callersMethod_init_gemini
Initialize Gemini API client.
engine/hindsight_api/engine/providers/gemini_llm.py:76
↓ 1 callersFunction_init_pattern_state
Initialize pattern state from seeds.
engine/hindsight_api/engine/search/mpfp_retrieval.py:234
↓ 1 callersMethod_init_vertexai
Initialize Vertex AI client with project, region, and credentials.
engine/hindsight_api/engine/providers/gemini_llm.py:84
↓ 1 callersMethod_initialize_schema
Run migrations for a new tenant schema and cache the result.
engine/hindsight_api/extensions/builtin/supabase_tenant.py:402
↓ 1 callersFunction_is_context_overflow_error
Return True if the exception signals the LLM context window was exceeded.
engine/hindsight_api/engine/reflect/agent.py:286
↓ 1 callersFunction_json_schema_type_to_python
Map JSON schema type to Python type for better LLM guidance.
engine/hindsight_api/engine/reflect/agent.py:157
↓ 1 callersFunction_llm_merge_mission
Use LLM to intelligently merge mission information. Args: llm_config: LLM configuration to use current: Current mission text
engine/hindsight_api/engine/retain/bank_utils.py:236
↓ 1 callersMethod_load_codex_auth
Load OAuth credentials from ~/.codex/auth.json. Returns: Tuple of (access_token, account_id). Raises:
engine/hindsight_api/engine/providers/codex_llm.py:76
↓ 1 callersMethod_load_model
Lazy load the T5 model for temporal extraction (calls load()).
engine/hindsight_api/engine/query_analyzer.py:329
↓ 1 callersFunction_load_projector
(projector_path: str)
engine/hindsight_api/engine/jina_mlx_reranker.py:34
↓ 1 callersMethod_log_progress_if_due
Log progress stats every PROGRESS_LOG_INTERVAL seconds.
engine/hindsight_api/worker/poller.py:621
↓ 1 callersFunction_make_google_auth_credential_provider
Create a credential provider using google.auth (supports all credential types). obstore's built-in credential parsing only supports service_accou
engine/hindsight_api/engine/storage/gcs.py:15
↓ 1 callersFunction_make_tools_tolerant
Wrap all tool run methods to strip unknown arguments before validation. LLMs frequently add extra fields like "explanation" or "reasoning" to too
engine/hindsight_api/api/mcp.py:185
↓ 1 callersMethod_map_reasoning_effort
Map standard reasoning effort to Codex reasoning summary format. Args: effort: Standard effort level ("low", "medium", "
engine/hindsight_api/engine/providers/codex_llm.py:111
↓ 1 callersFunction_map_results_to_contents
Map created unit IDs back to original content items.
patches/orchestrator.py:529
↓ 1 callersFunction_map_results_to_contents
Map created unit IDs back to original content items.
engine/hindsight_api/engine/retain/orchestrator.py:525
↓ 1 callersMethod_mark_failed
Mark a task as failed with error message.
engine/hindsight_api/worker/poller.py:304
↓ 1 callersMethod_mark_operation_completed
Helper to mark an operation as completed in the database. Also checks if this is a child operation and updates the parent if all siblings are
engine/hindsight_api/engine/memory_engine.py:1301
↓ 1 callersMethod_mark_operation_completed_and_fire_webhook
Mark an operation as completed and queue webhook deliveries in a single transaction. Uses the transactional outbox pattern: the webhook deliv
engine/hindsight_api/engine/memory_engine.py:1334
↓ 1 callersMethod_mark_operation_failed
Helper to mark an operation as failed in the database. Also checks if this is a child operation and updates the parent if all siblings are do
engine/hindsight_api/engine/memory_engine.py:1265
↓ 1 callersFunction_match_group
Recursively evaluate a TagGroup against a retrieval result. Args: result: Any object with a 'tags' attribute (list[str] or None).
engine/hindsight_api/engine/search/tags.py:330
↓ 1 callersMethod_no_grad
Get torch.no_grad context manager.
engine/hindsight_api/engine/query_analyzer.py:474
↓ 1 callersMethod_parse_generated_output
Parse T5 generated output into TemporalConstraint. Expected format: "YYYY-MM-DD to YYYY-MM-DD" Args: result: Ge
engine/hindsight_api/engine/query_analyzer.py:485
↓ 1 callersFunction_parse_metadata
Parse metadata that may be a dict, JSON string, or None.
engine/hindsight_api/api/http.py:21
↓ 1 callersMethod_parse_sse_stream
Parse Server-Sent Events (SSE) stream from Codex API. Args: response: HTTP response with SSE stream. Returns:
engine/hindsight_api/engine/providers/codex_llm.py:345
↓ 1 callersMethod_parse_sse_tool_stream
Parse SSE stream for tool calls and content. Returns: Tuple of (content, tool_calls).
engine/hindsight_api/engine/providers/codex_llm.py:562
↓ 1 callersMethod_predict_async
Async implementation of predict that runs requests in parallel with backpressure.
engine/hindsight_api/engine/cross_encoder.py:397
↓ 1 callersFunction_process_done_tool
Process the done tool call and return the result.
engine/hindsight_api/engine/reflect/agent.py:908
↓ 1 callersMethod_recover_batch_operations
Recover batch API operations that were in-flight when worker crashed. Finds operations with batch_id in metadata and re-submits them
engine/hindsight_api/worker/poller.py:439
↓ 1 callersFunction_register_cancel_operation
Register the cancel_operation tool.
engine/hindsight_api/mcp_tools.py:2276
↓ 1 callersFunction_register_clear_memories
Register the clear_memories tool.
engine/hindsight_api/mcp_tools.py:2660
↓ 1 callersFunction_register_create_bank
Register the create_bank tool.
engine/hindsight_api/mcp_tools.py:746
↓ 1 callersFunction_register_create_directive
Register the create_directive tool.
engine/hindsight_api/mcp_tools.py:1493
↓ 1 callersFunction_register_create_mental_model
Register the create_mental_model tool.
engine/hindsight_api/mcp_tools.py:958
↓ 1 callersFunction_register_delete_bank
Register the delete_bank tool.
engine/hindsight_api/mcp_tools.py:2597
↓ 1 callersFunction_register_delete_directive
Register the delete_directive tool.
engine/hindsight_api/mcp_tools.py:1587
↓ 1 callersFunction_register_delete_document
Register the delete_document tool.
engine/hindsight_api/mcp_tools.py:2055
↓ 1 callersFunction_register_delete_memory
Register the delete_memory tool.
engine/hindsight_api/mcp_tools.py:1830
↓ 1 callersFunction_register_delete_mental_model
Register the delete_mental_model tool.
engine/hindsight_api/mcp_tools.py:1248
↓ 1 callersFunction_register_get_bank
Register the get_bank tool.
engine/hindsight_api/mcp_tools.py:2423
↓ 1 callersFunction_register_get_bank_stats
Register the get_bank_stats tool (multi-bank only).
engine/hindsight_api/mcp_tools.py:2488
↓ 1 callersFunction_register_get_document
Register the get_document tool.
engine/hindsight_api/mcp_tools.py:1981
↓ 1 callersFunction_register_get_memory
Register the get_memory tool.
engine/hindsight_api/mcp_tools.py:1756
↓ 1 callersFunction_register_get_mental_model
Register the get_mental_model tool.
engine/hindsight_api/mcp_tools.py:882
↓ 1 callersFunction_register_get_operation
Register the get_operation tool.
engine/hindsight_api/mcp_tools.py:2206
↓ 1 callersFunction_register_list_banks
Register the list_banks tool.
engine/hindsight_api/mcp_tools.py:721
↓ 1 callersFunction_register_list_directives
Register the list_directives tool.
engine/hindsight_api/mcp_tools.py:1415
↓ 1 callersFunction_register_list_documents
Register the list_documents tool.
engine/hindsight_api/mcp_tools.py:1903
↓ 1 callersFunction_register_list_memories
Register the list_memories tool.
engine/hindsight_api/mcp_tools.py:1666
↓ 1 callersFunction_register_list_mental_models
Register the list_mental_models tool.
engine/hindsight_api/mcp_tools.py:808
↓ 1 callersFunction_register_list_operations
Register the list_operations tool.
engine/hindsight_api/mcp_tools.py:2130
↓ 1 callersFunction_register_list_tags
Register the list_tags tool.
engine/hindsight_api/mcp_tools.py:2347
↓ 1 callersFunction_register_recall
Register the recall tool.
engine/hindsight_api/mcp_tools.py:444
↓ 1 callersFunction_register_reflect
Register the reflect tool.
engine/hindsight_api/mcp_tools.py:565
↓ 1 callersFunction_register_refresh_mental_model
Register the refresh_mental_model tool.
engine/hindsight_api/mcp_tools.py:1322
↓ 1 callersFunction_register_retain
Register the retain tool.
engine/hindsight_api/mcp_tools.py:341
↓ 1 callersFunction_register_routes
Register all API routes on the given app instance.
engine/hindsight_api/api/http.py:2018
↓ 1 callersFunction_register_update_bank
Register the update_bank tool.
engine/hindsight_api/mcp_tools.py:2521
↓ 1 callersFunction_register_update_mental_model
Register the update_mental_model tool.
engine/hindsight_api/mcp_tools.py:1124
↓ 1 callersMethod_rerank_query_group
Rerank a single query group and return list of (original_index, score) tuples.
engine/hindsight_api/engine/cross_encoder.py:371
↓ 1 callersMethod_resolve_entities_batch_full
Original strategy: load all bank entities then match in Python.
engine/hindsight_api/engine/entity_resolver.py:208
↓ 1 callersMethod_resolve_entities_batch_trigram
Trigram strategy: fetch only similar candidates per entity name using pg_trgm. Instead of loading all bank entities (O(N)), uses a G
engine/hindsight_api/engine/entity_resolver.py:279
↓ 1 callersFunction_restore
Restore all tables from a zip file using binary COPY protocol.
engine/hindsight_api/admin/cli.py:99
↓ 1 callersMethod_retrieve_with_conn
Internal implementation with connection.
engine/hindsight_api/engine/search/graph_retrieval.py:152
↓ 1 callersFunction_run_backup
Resolve database URL and run backup.
engine/hindsight_api/admin/cli.py:142
↓ 1 callersFunction_run_migration
Resolve database URL and run migrations for one schema or all discovered schemas.
engine/hindsight_api/admin/cli.py:218
↓ 1 callersFunction_run_migrations_internal
Internal function to run migrations without locking. Args: database_url: SQLAlchemy database URL script_location: Path to al
engine/hindsight_api/migrations.py:120
↓ 1 callersFunction_run_restore
Resolve database URL and run restore.
engine/hindsight_api/admin/cli.py:151
↓ 1 callersMethod_schedule_retry
Reset task to pending with a future retry timestamp.
engine/hindsight_api/worker/poller.py:319
↓ 1 callersMethod_search_with_retries
Search implementation with modular retrieval and reranking. Architecture: 1. Retrieval: 4-way parallel (semantic, keyword, g
engine/hindsight_api/engine/memory_engine.py:2549
↓ 1 callersMethod_serve_original_chat
Serve the original .md chat file for a given document hash or conversation id.
dashboard.py:116
↓ 1 callersMethod_setup_db_pool_metrics
Set up observable gauges for database pool metrics.
engine/hindsight_api/metrics.py:540
↓ 1 callersMethod_setup_process_metrics
Set up observable gauges for process metrics.
engine/hindsight_api/metrics.py:456
↓ 1 callersMethod_sign_payload
Compute HMAC-SHA256 signature for a payload.
engine/hindsight_api/webhooks/manager.py:61
↓ 1 callersFunction_summarize_input
Create a summary of tool input for logging, showing all params.
engine/hindsight_api/engine/reflect/agent.py:1084
↓ 1 callersMethod_supports_reasoning_model
Check if the current model is a reasoning model (o1, o3, GPT-5, DeepSeek).
engine/hindsight_api/engine/providers/openai_compatible_llm.py:145
↓ 1 callersFunction_trigger_mental_model_refreshes
Trigger refreshes for mental models with refresh_after_consolidation=true. SECURITY: Only triggers refresh for mental models whose tags over
patches/consolidator.py:483
↓ 1 callersFunction_trigger_mental_model_refreshes
Trigger refreshes for mental models with refresh_after_consolidation=true. SECURITY: Only triggers refresh for mental models whose tags over
engine/hindsight_api/engine/consolidation/consolidator.py:483
↓ 1 callersMethod_try_init_jwks
Fetch JWKS and decide verification mode (local JWKS vs legacy endpoint).
engine/hindsight_api/extensions/builtin/supabase_tenant.py:185
↓ 1 callersMethod_update_cooccurrence
Update the co-occurrence cache for two entities. Uses CHECK constraint ordering (entity_id_1 < entity_id_2) to avoid duplicates.
engine/hindsight_api/engine/entity_resolver.py:712
↓ 1 callersFunction_validate_extraction_mode
Validate and normalize extraction mode.
engine/hindsight_api/config.py:569
↓ 1 callersMethod_verify_claude_code_available
Verify that Claude Agent SDK can be imported and is properly configured. Raises: ImportError: If Claude Agent SDK is not
engine/hindsight_api/engine/providers/claude_code_llm.py:58
↓ 1 callersMethod_verify_token_jwks
Verify a JWT locally using cached JWKS public keys. Validates signature, expiration, issuer, and audience. Returns the user
engine/hindsight_api/extensions/builtin/supabase_tenant.py:321
↓ 1 callersMethod_verify_token_legacy
Verify a JWT by calling the Supabase ``/auth/v1/user`` endpoint. This is the fallback for projects using legacy HS256 JWT signing.
engine/hindsight_api/extensions/builtin/supabase_tenant.py:358
↓ 1 callersMethodadd_entry_point
Record an entry point. Args: node_id: Memory unit ID text: Memory unit text similarity: Cosine s
engine/hindsight_api/engine/search/tracer.py:111
← previousnext →401–500 of 1,372, ranked by callers