MCPcopy Create free account

hub / github.com/vectorize-io/hindsight / functions

Functions18,621 in github.com/vectorize-io/hindsight

↓ 28 callersMethodvalidate_bank_read
Validate a bank read operation before execution. Override to implement custom validation logic for bank reads (get_bank_prof
hindsight-api-slim/hindsight_api/extensions/operation_validator.py:847
↓ 27 callersMethodIsSet
()
hindsight-clients/go/model_dry_run_extract_request.go:630
↓ 27 callersMethodRetainMemories
* RetainMemories Retain memories Retain memory items with automatic fact extraction. This is the main endpoint for storing memories. It supports bot
hindsight-clients/go/api_memory.go:1684
↓ 27 callersMethodRetainRequest
(retainRequest RetainRequest)
hindsight-clients/go/api_memory.go:1638
↓ 27 callersFunction_mock_client
()
hindsight-integrations/google-adk/tests/test_memory.py:26
↓ 27 callersFunction_run_hook
Import and run a hook script's main() with mocked stdin/stdout/HTTP.
hindsight-integrations/claude-code/tests/test_hooks.py:26
↓ 27 callersFunction_run_hook
Import and run a hook script's main() with mocked stdin/stdout/HTTP.
hindsight-integrations/cursor-cli/tests/test_hooks.py:21
↓ 27 callersMethodacquire
Acquire a connection within the budget as an async context manager. The connection is automatically released when the context exits.
hindsight-api-slim/hindsight_api/engine/db_budget.py:265
↓ 27 callersFunctionapply_combined_scoring
Apply combined scoring to a list of ScoredResults in-place. Uses the cross-encoder score as the primary relevance signal, with recency, tempo
hindsight-api-slim/hindsight_api/engine/search/reranking.py:58
↓ 27 callersMethodauthenticate
(self, request_context: RequestContext)
hindsight-api-slim/tests/test_main_module.py:436
↓ 27 callersFunctionbuild_tags_where_clause_simple
Build a simple SQL WHERE clause for tags filtering. This is a convenience version that returns just the clause string, assuming the call
hindsight-api-slim/hindsight_api/engine/search/tags.py:119
↓ 27 callersFunctiondebug_log
Log to stderr if debug mode is enabled.
hindsight-integrations/cursor-cli/hindsight_cursor_cli/hooks/scripts/lib/config.py:153
↓ 27 callersFunctiondebug_log
Log to stderr if debug mode is enabled.
hindsight-integrations/omo/scripts/lib/config.py:133
↓ 27 callersFunctionderiveBankId
(context: BankContext, config: BankConfig)
hindsight-integrations/paperclip/src/bank.ts:30
↓ 27 callersMethodexecute_task
Execute a single task as a background job (fire-and-forget).
hindsight-api-slim/hindsight_api/worker/poller.py:663
↓ 27 callersMethodfrom_client
Construct from a pre-built Hindsight client.
hindsight-integrations/google-adk/hindsight_google_adk/memory.py:91
↓ 27 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
hindsight-api-slim/hindsight_api/engine/retain/entity_labels.py:248
↓ 27 callersFunctionmake_hook_input
Build a Cursor-style hook input dict. `beforeSubmitPrompt` only carries `prompt` + `attachments`, but common fields like `conversation_id`, `
hindsight-integrations/cursor-cli/tests/conftest.py:18
↓ 27 callersMethodraise_for_status
()
hindsight-api-slim/tests/test_tei_cross_encoder.py:428
↓ 27 callersMethodsubmit_async_retain
Submit a batch retain operation to run asynchronously. For large batches (exceeding retain_batch_chars threshold), automatically splits
hindsight-api-slim/hindsight_api/engine/memory_engine.py:12371
↓ 27 callersMethodupdate_mental_model
Update a pinned mental model. Args: bank_id: Bank identifier mental_model_id: Pinned mental model UUID na
hindsight-api-slim/hindsight_api/engine/memory_engine.py:10828
↓ 26 callersFunction_insert_memory
Insert a memory unit directly, bypassing LLM retain pipeline.
hindsight-api-slim/tests/test_observation_invalidation.py:25
↓ 26 callersFunction_mock_client
Create a mock Hindsight client with async methods.
hindsight-integrations/pydantic-ai/tests/test_tools.py:16
↓ 26 callersFunction_run_async
Run an async coroutine synchronously.
hindsight-clients/python/hindsight_client/hindsight_client.py:52
↓ 26 callersFunction_validate_recall_budget_updates
Validate recall budget config updates. Raises ValueError on invalid input.
hindsight-api-slim/hindsight_api/config_resolver.py:502
↓ 26 callersMethodclose
Close the connection pool and shutdown background workers.
hindsight-api-slim/hindsight_api/engine/memory_engine.py:3087
↓ 26 callersFunctioncreate_mcp_server
Create and configure the Hindsight MCP server. Args: memory: MemoryEngine instance (required) multi_bank: If True, expose al
hindsight-api-slim/hindsight_api/api/mcp.py:94
↓ 26 callersFunctiondebug_log
Log to stderr if debug mode is enabled.
hindsight-integrations/codex/scripts/lib/config.py:141
↓ 26 callersFunctionderiveBankId
( ctx: PluginHookAgentContext | undefined, pluginConfig: PluginConfig )
hindsight-integrations/openclaw/src/index.ts:1124
↓ 26 callersMethodget_bank_config
Get fully resolved config for a bank (filtered by permissions). Resolution order: 1. Global config (from environment variabl
hindsight-api-slim/hindsight_api/config_resolver.py:152
↓ 26 callersFunctionparse_chinese_number
(text: str)
hindsight-api-slim/hindsight_api/engine/chinese_temporal_periods.py:158
↓ 26 callersMethodresolve_full_config
Resolve full HindsightConfig for a bank with hierarchical overrides applied. This is for INTERNAL USE ONLY. Returns the complete con
hindsight-api-slim/hindsight_api/config_resolver.py:101
↓ 25 callersFunctionU
(e)
hindsight-embed/hindsight_embed/control_center/static/assets/index-CCShriQ0.js:51
↓ 25 callersFunction_ensure_bank
(memory: MemoryEngine, bank_id: str, request_context: RequestContext)
hindsight-api-slim/tests/test_observation_invalidation.py:74
↓ 25 callersFunctionbuild_system_prompt_for_tools
Build the system prompt for tool-calling reflect agent. The agent uses hierarchical retrieval: 1. search_mental_models - User-curated su
hindsight-api-slim/hindsight_api/engine/reflect/prompts.py:96
↓ 25 callersMethodclose
(self)
hindsight-dev/hindsight_dev/obs_dedup/client.py:38
↓ 25 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
hindsight-api-slim/hindsight_api/engine/memory_engine.py:11677
↓ 25 callersFunctionget_token_bucket
Convert a token count to a bucket label for use as a dimension. This allows analyzing token usage patterns without high-cardinality issues.
hindsight-api-slim/hindsight_api/metrics.py:103
↓ 25 callersMethodvalidateResponse
* Validates the API response and throws an error if the request failed.
hindsight-clients/typescript/src/index.ts:157
↓ 24 callersMethodGet
()
hindsight-clients/go/model_memory_item.go:514
↓ 24 callersMethodIsSet
()
hindsight-clients/go/model_recall_result.go:680
↓ 24 callersMethodIsSet
()
hindsight-clients/go/model_operation_status_response.go:643
↓ 24 callersFunction_hook
(session_id="sess-1", cwd="/home/user/myproject")
hindsight-integrations/claude-code/tests/test_bank.py:28
↓ 24 callersFunction_make_result
( ce_norm: float, occurred_start: datetime | None = None, temporal_proximity: float | None = None,
hindsight-api-slim/tests/test_combined_scoring.py:23
↓ 24 callersFunction_make_valid_token
Return a token that passes the MIN_TOKEN_LENGTH check.
hindsight-api-slim/tests/test_supabase_tenant.py:67
↓ 24 callersFunction_run
Invoke an OpenAI Agents FunctionTool and return the string result.
hindsight-integrations/openai-agents/tests/test_tools.py:48
↓ 24 callersFunction_tools_by_name
Register tools on a FakeComposio and return them keyed by function name.
hindsight-integrations/composio/tests/test_tools.py:80
↓ 24 callersFunctioncount_tokens
Count tokens in text using tiktoken (cl100k_base encoding for GPT-4/3.5).
hindsight-api-slim/hindsight_api/engine/memory_engine.py:128
↓ 24 callersFunctionload_config
Load plugin configuration from settings.json + env overrides. Loading order (later entries win): 1. Built-in defaults 2. Plugin defau
hindsight-integrations/claude-code/scripts/lib/config.py:133
↓ 24 callersFunctionreportError
Prevent trying to import "fmt"
hindsight-clients/go/utils.go:359
↓ 24 callersFunctionset_stage
Update the current task's stage label. No-op when called outside a worker task context (e.g. from a sync HTTP request, a test, or the CLI). C
hindsight-api-slim/hindsight_api/worker/stage.py:43
↓ 24 callersFunctiontrack_retention
Track retention state and detect compaction. Compares the current message count against the last retained count for this session. When the t
hindsight-integrations/claude-code/scripts/lib/state.py:160
↓ 23 callersMethodRecallMemories
* RecallMemories Recall memory Recall memory using semantic similarity and spreading activation. The type parameter is optional and must be one of:
hindsight-clients/go/api_memory.go:1388
↓ 23 callersMethodRecallRequest
(recallRequest RecallRequest)
hindsight-clients/go/api_memory.go:1361
↓ 23 callersFunction_make_extension
Helper to create a SupabaseTenantExtension with test config.
hindsight-api-slim/tests/test_supabase_tenant.py:40
↓ 23 callersFunction_mock_retain_response
()
hindsight-integrations/haystack/tests/test_tools.py:44
↓ 23 callersFunction_setup_jwks_ext
Create an extension in JWKS mode with mocked internals.
hindsight-api-slim/tests/test_supabase_tenant.py:72
↓ 23 callersMethodanalyze
Analyze a natural language query. Args: query: Natural language query to analyze reference_date: Reference d
hindsight-api-slim/hindsight_api/engine/query_analyzer.py:68
↓ 23 callersFunctionget_metrics_collector
Get the global metrics collector instance. Returns a no-op collector if metrics are not initialized.
hindsight-api-slim/hindsight_api/metrics.py:994
↓ 23 callersFunctionprepareRetentionTranscript
( messages: any[], pluginConfig: PluginConfig, retainFullWindow = false )
hindsight-integrations/openclaw/src/index.ts:2810
↓ 23 callersFunctionreset_config
Reset global configuration to None.
hindsight-integrations/composio/hindsight_composio/config.py:98
↓ 22 callersMethodIsSet
()
hindsight-clients/go/model_webhook_delivery_response.go:600
↓ 22 callersMethod_ensure_started
Ensure daemon is running (thread-safe), restarting if crashed.
hindsight-all/hindsight/embedded.py:144
↓ 22 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
hindsight-api-slim/hindsight_api/engine/reflect/agent.py:53
↓ 22 callersFunction_run
Invoke an AutoGen FunctionTool and return the string result.
hindsight-integrations/autogen/tests/test_tools.py:47
↓ 22 callersMethodacquire
(self)
hindsight-api-slim/hindsight_api/engine/db/oracle.py:1303
↓ 22 callersFunctioncreateHooks
( hindsightClient: HindsightClient, bankId: string, config: HindsightConfig, state: PluginState, ope
hindsight-integrations/opencode/src/hooks.ts:85
↓ 22 callersFunctionenable
Enable Hindsight memory integration with LiteLLM. This monkeypatches litellm.completion and litellm.acompletion to: 1. Inject relevant memori
hindsight-integrations/litellm/hindsight_litellm/__init__.py:669
↓ 22 callersMethodget_bank_stats
Get statistics about memory nodes and links for a bank. Results are served from a short-TTL cache (a shared table on PostgreSQL, per-
hindsight-api-slim/hindsight_api/engine/memory_engine.py:9739
↓ 22 callersMethodinitialize
( self, dsn: str, *, min_size: int = 5, max_size: int = 20, co
hindsight-api-slim/hindsight_api/engine/db/oracle.py:1246
↓ 22 callersMethodlist_memory_units
List memory units for table view with optional full-text search. Args: bank_id: Filter by bank ID fact_type:
hindsight-api-slim/hindsight_api/engine/memory_engine.py:7323
↓ 22 callersFunctionrandomBankId
()
hindsight-clients/typescript/tests/main_operations.test.ts:18
↓ 22 callersFunctionread_transcript
Read a Codex JSONL transcript and return list of message dicts. When include_tool_calls is False (legacy mode), returns simple {role, content
hindsight-integrations/codex/scripts/lib/content.py:72
↓ 22 callersMethodshutdown
(self)
hindsight-api-slim/hindsight_api/engine/db/oracle.py:1279
↓ 22 callersFunctionto_libpq_url
Normalize a PostgreSQL URL for libpq-style consumers. Accepts a SQLAlchemy URL (``postgresql+asyncpg://...``) or a plain libpq URL and return
hindsight-api-slim/hindsight_api/db_url.py:28
↓ 21 callersMethodIsSet
()
hindsight-clients/go/model_update_memory_request.go:427
↓ 21 callersMethodIsSet
()
hindsight-clients/go/model_mental_model_response.go:587
↓ 21 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
hindsight-api-slim/hindsight_api/engine/retain/fact_extraction.py:1004
↓ 21 callersFunction_insert_unit
Insert a memory unit directly. Skips embedding (NULL is fine for temporal tests).
hindsight-api-slim/tests/test_graph_maintenance.py:33
↓ 21 callersFunction_mock_client
()
hindsight-integrations/langgraph/tests/test_nodes.py:11
↓ 21 callersFunction_parse_llm_members
Parse indexed extra-LLM members for an operation env prefix. ``prefix`` is the operation segment in the env name: ``""`` (global), ``"RETAIN_
hindsight-api-slim/hindsight_api/config.py:1454
↓ 21 callersFunction_unique_bank
(prefix: str)
hindsight-api-slim/tests/test_document_transfer.py:68
↓ 21 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
hindsight-api-slim/hindsight_api/engine/retain/entity_labels.py:268
↓ 21 callersFunctionbuild_tag_groups_where_clause
Build a SQL WHERE clause for compound tag group filtering. Top-level groups are AND-ed together. Each group is a recursive boolean expre
hindsight-api-slim/hindsight_api/engine/search/tags.py:333
↓ 21 callersMethodcall_with_tools
(self, **kwargs)
hindsight-api-slim/tests/test_multi_llm_provider.py:40
↓ 21 callersFunctionconfigure
Configure Hindsight connection and default settings. Args: hindsight_api_url: Hindsight API URL (default: production). api_key: A
hindsight-integrations/strands/hindsight_strands/config.py:40
↓ 21 callersFunctionconfigure
Configure Hindsight connection and default settings. Args: hindsight_api_url: Hindsight API URL (default: production). api_key: A
hindsight-integrations/smolagents/hindsight_smolagents/config.py:40
↓ 21 callersFunctiondebug_log
Log to stderr if debug mode is enabled.
hindsight-integrations/cursor/scripts/lib/config.py:156
↓ 21 callersFunctionderiveBankId
(config: HindsightConfig, directory: string)
hindsight-integrations/opencode/src/bank.ts:75
↓ 21 callersFunctionextractRecallQuery
( rawMessage: string | undefined, prompt: string | undefined )
hindsight-integrations/openclaw/src/index.ts:609
↓ 21 callersMethodinitialize
Initialize the embedding model asynchronously. This should be called during startup to load/connect to the model and avoid c
hindsight-api-slim/hindsight_api/engine/embeddings.py:100
↓ 21 callersMethodlist_documents
List documents with optional search and pagination. Args: bank_id: bank ID (required) search_query: Search i
hindsight-api-slim/hindsight_api/engine/memory_engine.py:7766
↓ 21 callersFunctionloadConfig
(pluginOptions?: Record<string, unknown>)
hindsight-integrations/opencode/src/config.ts:144
↓ 21 callersFunctionmakeClient
()
hindsight-integrations/opencode/src/hooks.test.ts:14
↓ 21 callersFunctionmakeOpencodeClient
( messages: Array<{ info: { role: string }; parts: Array<{ type: string; text?: string }> }> = [] )
hindsight-integrations/opencode/src/hooks.test.ts:23
↓ 21 callersFunctionmakeState
()
hindsight-integrations/opencode/src/hooks.test.ts:5
↓ 21 callersFunctionreset_config
Reset global configuration to None.
hindsight-integrations/strands/hindsight_strands/config.py:89
↓ 21 callersFunctionreset_config
Reset global configuration to None.
hindsight-integrations/agno/hindsight_agno/config.py:89
↓ 21 callersFunctionsince_from_period
( period: DateRange | None, )
hindsight-api-slim/hindsight_api/engine/chinese_temporal_periods.py:441
↓ 21 callersMethodupdate_memory_unit
Curate a single raw memory unit: edit its fields and/or change its state. Invalidation keeps the recall hot-path clean by *moving* the row be
hindsight-api-slim/hindsight_api/engine/memory_engine.py:6440
← previousnext →201–300 of 18,621, ranked by callers