MCPcopy Create free account

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

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

↓ 16 callersFunction_retain
(memory, bank_id, content, request_context, document_id)
hindsight-api-slim/tests/test_document_transfer.py:72
↓ 16 callersFunction_retain_doc
Helper to retain a document with given tags. Uses gibberish content to avoid LLM fact extraction (documents are persisted even with zero facts).
hindsight-api-slim/tests/test_list_documents.py:10
↓ 16 callersFunction_strip_reasoning_tags
Strip extended-thinking/reasoning blocks from an LLM response. Removes the full set of tag styles emitted by reasoning models: ``<think>``, `
hindsight-api-slim/hindsight_api/engine/providers/openai_compatible_llm.py:103
↓ 16 callersMethodacreate_bank
Create or update a memory bank (async — preferred over :meth:`create_bank`). Args: bank_id: Unique identifier for the bank
hindsight-clients/python/hindsight_client/hindsight_client.py:704
↓ 16 callersFunctionapply_operations
Apply a list of operations to a document, returning a new document. The original document is never mutated. Invalid operations (unknown secti
hindsight-api-slim/hindsight_api/engine/reflect/delta_ops.py:302
↓ 16 callersFunctionbase_config
A config with a fixed external API URL and no mission PATCH by default. Overrides may be passed in camelCase (the settings.json form) for parity
hindsight-integrations/cline/tests/conftest.py:31
↓ 16 callersFunctionbuild_labels_model
Build a dynamic Pydantic model for structured label extraction. Each LabelGroup becomes a typed field based on its type: - type="text"
hindsight-api-slim/hindsight_api/engine/retain/entity_labels.py:172
↓ 16 callersFunctionget_current_bank_id
Get the bank id of the in-flight operation, or None outside a bank-scoped context.
hindsight-api-slim/hindsight_api/engine/memory_engine.py:90
↓ 16 callersFunctionget_span_recorder
Get the global composite span recorder (fans out to all registered recorders).
hindsight-api-slim/hindsight_api/tracing.py:503
↓ 16 callersFunctionmake_hook
(hook_name="UserPromptSubmit", prompt="", task="", task_id="t1", workspace="/home/user/proj")
hindsight-integrations/cline/tests/conftest.py:43
↓ 16 callersFunctionnormalize_profile
Map the URL/display name to the internal profile id ("" = default).
hindsight-embed/hindsight_embed/control_center/service.py:148
↓ 16 callersFunctionparse_chinese_digit_year
(year_text: str)
hindsight-api-slim/hindsight_api/engine/chinese_temporal_periods.py:197
↓ 16 callersMethodparse_json
Parse a JSON column value into a Python object. PG (asyncpg) returns JSON columns as strings that need json.loads(). Oracle returns t
hindsight-api-slim/hindsight_api/engine/db/base.py:35
↓ 16 callersMethodreflect_on_memory
Synthesize a thoughtful answer from long-term memories. Use this when you need a coherent summary or reasoned response about what you
hindsight-integrations/agno/hindsight_agno/tools.py:254
↓ 16 callersMethodretainBatch
* Retain multiple memories in batch.
hindsight-clients/typescript/src/index.ts:227
↓ 16 callersFunctionrun_migrations
Run database migrations to the latest version using programmatic Alembic configuration. This function is safe to call from multiple distribu
hindsight-api-slim/hindsight_api/migrations.py:236
↓ 16 callersFunctionsanitizeReturnTo
( rawValue: string | null | undefined, fallback = "/dashboard" )
hindsight-control-plane/src/lib/base-path.ts:40
↓ 16 callersMethodsection_by_id
(self, section_id: str)
hindsight-api-slim/hindsight_api/engine/reflect/structured_doc.py:93
↓ 16 callersFunctionsince_constraint
(start: datetime)
hindsight-api-slim/hindsight_api/engine/chinese_temporal_periods.py:436
↓ 16 callersMethodstop
()
hindsight-integrations/openclaw/src/types.ts:159
↓ 15 callersMethodCreateBankRequest
(createBankRequest CreateBankRequest)
hindsight-clients/go/api_banks.go:1690
↓ 15 callersMethodIsSet
()
hindsight-clients/go/model_mental_model_trigger_output.go:532
↓ 15 callersMethodIsSet
()
hindsight-clients/go/model_bank_list_item.go:434
↓ 15 callersMethodIsSet
()
hindsight-clients/go/model_reflect_fact.go:367
↓ 15 callersMethodIsSet
()
hindsight-clients/go/model_mental_model_trigger_input.go:532
↓ 15 callersMethodSet
(val *WebhookDeliveryResponse)
hindsight-clients/go/model_webhook_delivery_response.go:595
↓ 15 callersMethodUnset
()
hindsight-clients/go/model_create_bank_request.go:762
↓ 15 callersFunction_extract_map_entities
Recursively extract key:field:value entity strings from a map entity dict.
hindsight-api-slim/hindsight_api/engine/retain/fact_extraction.py:31
↓ 15 callersFunction_get_observation_ids
(conn, bank_id: str)
hindsight-api-slim/tests/test_observation_invalidation.py:59
↓ 15 callersMethod_is_duplicate
Check if this conversation was recently stored. Thread-safe under concurrent sync + async callback paths, with true LRU eviction (old
hindsight-integrations/litellm/hindsight_litellm/callbacks.py:273
↓ 15 callersFunction_make_mock_response
Helper to create a mock httpx.Response.
hindsight-api-slim/tests/test_supabase_tenant.py:56
↓ 15 callersFunction_mock_retain_response
()
hindsight-integrations/llamaindex/tests/test_tools.py:46
↓ 15 callersFunction_msgs
Build a message list from (role, content) pairs.
hindsight-integrations/claude-code/tests/test_content.py:75
↓ 15 callersFunction_resolve_client
Resolve a Hindsight client from explicit args or global config.
hindsight-integrations/smolagents/hindsight_smolagents/tools.py:21
↓ 15 callersMethod_sib
(self, status: str, error_message: str | None = None)
hindsight-api-slim/tests/test_worker.py:2539
↓ 15 callersMethodadd_phase_metric
Record metrics for a search phase. Args: phase_name: Name of the phase duration_seconds: Time taken
hindsight-api-slim/hindsight_api/engine/search/tracer.py:287
↓ 15 callersMethodclose
Close the underlying HTTP client.
hindsight-api-slim/hindsight_api/engine/providers/nous_auth.py:461
↓ 15 callersFunctioncompute_recency_decay
Map a memory's age in days to a freshness signal in [0, 1] (neutral 0.5). Future-dated memories (negative ``days_ago``) clamp to the maximum fres
hindsight-api-slim/hindsight_api/engine/search/reranking.py:36
↓ 15 callersFunctionconfigure
Configure the adapter, falling back to environment variables. Args: hindsight_api_url: Hindsight API URL (falls back to ``HINDSIGHT_API_U
hindsight-integrations/continue/hindsight_continue/config.py:83
↓ 15 callersFunctioncontinue_request
The exact JSON body Continue's ``http`` context provider POSTs. Mirrors ``HttpContextProvider.getContextItems`` in continuedev/continue.
hindsight-integrations/continue/tests/conftest.py:34
↓ 15 callersMethodcreateBank
* Create a new bank
hindsight-control-plane/src/lib/api.ts:316
↓ 15 callersFunctioncreateConfig
( override: Config<Omit<ClientOptions, keyof T> & T> = {} )
hindsight-clients/typescript/generated/client/utils.gen.ts:308
↓ 15 callersFunctioncreate_cross_encoder_from_env
Create a CrossEncoderModel instance based on configuration. Reads configuration via get_config() to ensure consistency across the codebase.
hindsight-api-slim/hindsight_api/engine/cross_encoder.py:1617
↓ 15 callersMethodexecutemany
Execute a query for each set of arguments. Args: query: SQL query with dialect-appropriate placeholders. args: List o
hindsight-api-slim/hindsight_api/engine/db/base.py:116
↓ 15 callersFunctionf
(v: number)
hindsight-control-plane/src/components/constellation.tsx:1187
↓ 15 callersMethodfrom_dict
(cls, obj: Dict[str, Any])
hindsight-clients/python/hindsight_client_api/models/not1.py:98
↓ 15 callersMethodget_configurable_fields
Get set of field names that are configurable per-tenant/bank via API. Configurable fields are manually tagged behavioral settings th
hindsight-api-slim/hindsight_api/config.py:2095
↓ 15 callersMethodget_default
Return new instance of ApiClient. This method returns newly created, based on default constructor, object of ApiClient class or retur
hindsight-clients/python/hindsight_client_api/api_client.py:121
↓ 15 callersFunctionmeetsMinimumVersion
(actual: string, minimum: string)
hindsight-integrations/openclaw/src/index.ts:1367
↓ 15 callersFunctionnewClient
(t *testing.T)
hindsight-clients/go/integration_test.go:22
↓ 15 callersMethodprofile_exists
Check if a profile exists. Args: name: Profile name (empty string for default). Returns: True if profile exi
hindsight-embed/hindsight_embed/profile_manager.py:216
↓ 15 callersMethodrecord_llm_call
Record a completed LLM call as a span with GenAI semantic conventions. This creates a span AFTER the call completes, using timestamp
hindsight-api-slim/hindsight_api/tracing.py:263
↓ 15 callersMethodrecord_operation
Context manager to record operation duration and status. Usage: with metrics.record_operation("recall", bank_id="user123
hindsight-api-slim/hindsight_api/metrics.py:443
↓ 15 callersMethodretain_memory
Store information to long-term memory for later retrieval. Use this to save important facts, user preferences, decisions, or any info
hindsight-integrations/llamaindex/hindsight_llamaindex/tools.py:234
↓ 15 callersMethodrun
(self, output_names, inputs)
hindsight-api-slim/tests/test_onnx_embeddings.py:39
↓ 14 callersMethodReflectRequest
(reflectRequest ReflectRequest)
hindsight-clients/go/api_memory.go:1498
↓ 14 callersMethodSet
(val *UpdateMemoryRequest)
hindsight-clients/go/model_update_memory_request.go:422
↓ 14 callersMethodSet
(val *MentalModelResponse)
hindsight-clients/go/model_mental_model_response.go:582
↓ 14 callersFunction_clean_answer_text
Clean up answer text by removing any done() tool call syntax. Some LLMs output the done() call as text instead of a proper tool call. This st
hindsight-api-slim/hindsight_api/engine/reflect/agent.py:176
↓ 14 callersFunction_config
(tmp_path, **kw)
hindsight-integrations/aider/tests/test_runner.py:19
↓ 14 callersFunction_consolidation_retry_backoff_seconds
Capped exponential backoff: 5, 10, 20, 40, 80, 160, 320, 640, 1280, 1800, 1800, …
hindsight-api-slim/hindsight_api/engine/memory_engine.py:257
↓ 14 callersFunction_ensure_bank
(memory: MemoryEngine, bank_id: str, request_context: RequestContext)
hindsight-api-slim/tests/test_graph_maintenance.py:29
↓ 14 callersFunction_event
(author: str, text: str)
hindsight-integrations/google-adk/tests/test_memory.py:34
↓ 14 callersFunction_hook
(session_id="sess-1", cwd="/home/user/myproject", workspace_roots=None)
hindsight-integrations/cursor-cli/tests/test_bank.py:22
↓ 14 callersFunction_insert_memory
Insert a live memory unit with a real embedding, bypassing the LLM pipeline.
hindsight-api-slim/tests/test_memory_curation.py:23
↓ 14 callersMethod_invoke
( self, tool_parameters: dict[str, Any], )
hindsight-integrations/dify/tools/retain.py:15
↓ 14 callersFunction_make_frame
Return a mock OpenAILLMContextFrame.
hindsight-integrations/pipecat/tests/test_memory.py:61
↓ 14 callersMethod_make_storage
Create a storage instance with a mocked client.
hindsight-integrations/crewai/tests/test_storage.py:24
↓ 14 callersFunction_make_tool
Construct a tool instance without invoking the dify_plugin base init.
hindsight-integrations/dify/tests/test_tools.py:24
↓ 14 callersMethod_make_update
(self, obs_id: str, text: str, source_fact_ids: list[str])
hindsight-api-slim/tests/test_consolidation.py:2852
↓ 14 callersFunction_mock_client
Return a mock Hindsight client with async recall/retain methods.
hindsight-integrations/pipecat/tests/test_memory.py:27
↓ 14 callersFunction_mock_recall_response
Create a mock RecallResponse with results.
hindsight-integrations/smolagents/tests/test_tools.py:36
↓ 14 callersFunction_mock_response
Build a fake httpx.Response.
hindsight-api-slim/tests/test_llama_parse_parser.py:52
↓ 14 callersFunction_msgs
(*pairs)
hindsight-integrations/codex/tests/test_content.py:215
↓ 14 callersFunction_parse_llm_strategy
Parse a multi-LLM strategy from a JSON env var. Returns ``None`` when unset. The value must be a JSON object with a ``mode`` of "failover" or
hindsight-api-slim/hindsight_api/config.py:1422
↓ 14 callersFunction_parse_strategy_boosts
Parse a "strategy:level,strategy:level" string into a boost map. A strategy listed without a level (``"graph"`` or ``"graph:"``) defaults to
hindsight-api-slim/hindsight_api/config.py:818
↓ 14 callersFunction_run_hook
Import and run a hook script's main() with mocked stdin/stdout/HTTP.
hindsight-integrations/omo/tests/test_hooks.py:29
↓ 14 callersFunction_validate_mental_model_inputs
Validate mental model inputs, returning an error message or None if valid.
hindsight-api-slim/hindsight_api/mcp_tools.py:1254
↓ 14 callersFunctionbuildHarness
(config: Record<string, unknown> = DEFAULT_CONFIG)
hindsight-integrations/paperclip/tests/plugin.spec.ts:44
↓ 14 callersFunctionbuild_final_system_prompt
Build the final synthesis system prompt, using mission as role when set. ``directives`` are re-injected here (they live in the agent/reasoning pr
hindsight-api-slim/hindsight_api/engine/reflect/prompts.py:622
↓ 14 callersFunctionconfigure
Configure Hindsight connection and default settings. Args: hindsight_api_url: Hindsight API URL (default: production). api_key: A
hindsight-integrations/openai-agents/hindsight_openai_agents/config.py:46
↓ 14 callersFunctionconfigure
Configure Hindsight connection and default settings. Args: hindsight_api_url: Hindsight API URL (default: production). api_key: A
hindsight-integrations/claude-agent-sdk/hindsight_claude_agent_sdk/config.py:46
↓ 14 callersFunctioncreateClient
(config: Config = {})
hindsight-clients/typescript/generated/client/client.gen.ts:22
↓ 14 callersFunctionderive_bank_id
Derive a bank ID from hook context and config. When dynamicBankId is false, returns the static bank. When true, composes from granularity fie
hindsight-integrations/codex/scripts/lib/bank.py:24
↓ 14 callersMethodend
No-op.
hindsight-api-slim/hindsight_api/tracing.py:86
↓ 14 callersMethodfingerprint
Stable hash of the cacheable surface. ``response_schema`` may be a Pydantic class, a dict, or ``None``. Pydantic schemas are normalis
hindsight-api-slim/hindsight_api/engine/providers/gemini_cache.py:97
↓ 14 callersMethodget_or_create
Return a CachedContent resource name for the given prefix, or ``None`` if Gemini rejects the create (prefix too small, model does not
hindsight-api-slim/hindsight_api/engine/providers/gemini_cache.py:151
↓ 14 callersMethodhandle
Process a Vapi server event. Args: event: The parsed JSON body of the Vapi webhook POST request. Returns: A
hindsight-integrations/vapi/hindsight_vapi/webhook.py:119
↓ 14 callersFunctionis_enabled
Check if Hindsight memory integration is currently enabled. Returns: True if enable() has been called and not subsequently disabled
hindsight-integrations/litellm/hindsight_litellm/__init__.py:796
↓ 14 callersMethodlist_operations
List async operations for a bank with optional filtering and pagination. Args: bank_id: Bank identifier status: Optio
hindsight-api-slim/hindsight_api/engine/memory_engine.py:11573
↓ 14 callersFunctionload_config
Load plugin configuration from settings.json + env overrides. Loading order (later entries win): 1. Built-in defaults 2. Plugin defau
hindsight-integrations/cursor/scripts/lib/config.py:124
↓ 14 callersFunctionmake_hook_input
( prompt="What is the capital of France?", session_id="sess-abc123", cwd="/home/user/myproject",
hindsight-integrations/omo/tests/conftest.py:44
↓ 14 callersFunctionmatchesSessionPattern
(sessionKey: string, patterns: RegExp[])
hindsight-integrations/openclaw/src/session-patterns.ts:21
↓ 14 callersFunctionpatch_reflect
Helper that patches memory.reflect_async to return a canned result and records the call. Usage: calls = patch_reflect(memory, text="hello
hindsight-api-slim/tests/test_mental_model_delta.py:51
↓ 14 callersMethodpredict
Score query-document pairs using the remote TEI reranker. Requests are made in parallel with configurable backpressure. Arg
hindsight-api-slim/hindsight_api/engine/cross_encoder.py:541
↓ 14 callersFunctionrecall
Recall memories from Hindsight. This function allows you to manually query memories without making an LLM call. Useful for debugging, buildin
hindsight-integrations/litellm/hindsight_litellm/wrappers.py:105
↓ 14 callersFunctionregister_mcp_tools
Register MCP tools on a FastMCP server. Args: mcp: FastMCP server instance memory: MemoryEngine instance config: Tool con
hindsight-api-slim/hindsight_api/mcp_tools.py:244
↓ 14 callersMethodretain
Store information to memory after applying safety checks. If guard is enabled, the content is checked for prompt injection. If redact
hindsight-integrations/superagent/hindsight_superagent/middleware.py:255
↓ 14 callersMethodrun
Run an agent with auto-recall and auto-retain. Wraps ``agent.run()`` with automatic memory behavior: 1. **Auto-recall** (if enabled)
hindsight-integrations/haystack/hindsight_haystack/tools.py:820
↓ 14 callersFunctionsetupPlugin
(harness: ReturnType<typeof buildHarness>)
hindsight-integrations/paperclip/tests/plugin.spec.ts:52
← previousnext →401–500 of 18,621, ranked by callers