Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/vectorize-io/hindsight
/ functions
Functions
18,621 in github.com/vectorize-io/hindsight
⨍
Functions
18,621
◇
Types & classes
2,579
↳
Endpoints
168
↓ 57 callers
Function
_mock_hindsight_client
Create a mock Hindsight client with async methods.
hindsight-integrations/superagent/tests/test_middleware.py:20
↓ 57 callers
Function
_mock_recall_response
Create a mock RecallResponse with results.
hindsight-integrations/agno/tests/test_tools.py:41
↓ 57 callers
Function
create_app
Create and configure the FastAPI application. Args: memory: MemoryEngine instance (already initialized with required parameters).
hindsight-api-slim/hindsight_api/api/http.py:3033
↓ 57 callers
Method
delete
Delete a bank.
hindsight-all/hindsight/api_namespaces.py:38
↓ 56 callers
Method
Set
(val *BankTemplateConfig)
hindsight-clients/go/model_bank_template_config.go:1536
↓ 56 callers
Function
_ensure_bank
Upsert a minimal bank row so FK on async_operations passes.
hindsight-api-slim/tests/test_worker.py:24
↓ 56 callers
Method
echo
(data: dict)
hindsight-api-slim/tests/test_extensions.py:738
↓ 56 callers
Method
run
Main polling loop with fire-and-forget task execution. Continuously polls for pending tasks, spawns them as background tasks,
hindsight-api-slim/hindsight_api/worker/poller.py:893
↓ 53 callers
Method
delete
Delete file by storage key. Args: key: Storage key
hindsight-api-slim/hindsight_api/engine/storage/base.py:46
↓ 52 callers
Method
get_document
Retrieve document metadata and statistics. Args: document_id: Document ID to retrieve bank_id: bank ID that
hindsight-api-slim/hindsight_api/engine/memory_engine.py:5545
↓ 52 callers
Function
reset_config
Reset global configuration to None.
hindsight-integrations/superagent/hindsight_superagent/config.py:126
↓ 49 callers
Function
_mock_client
Create a mock Hindsight client with sync and async methods.
hindsight-integrations/llamaindex/tests/test_tools.py:15
↓ 49 callers
Method
close
(self)
hindsight-api-slim/tests/test_nous_provider.py:40
↓ 49 callers
Method
execute
(this: IExecuteFunctions)
hindsight-integrations/n8n/nodes/Hindsight/Hindsight.node.ts:214
↓ 48 callers
Function
_bank_id
(prefix: str = "oracle")
hindsight-api-slim/tests/test_oracle_integration.py:32
↓ 47 callers
Function
_mock_safety_client
Create a mock Superagent SafetyClient.
hindsight-integrations/superagent/tests/test_middleware.py:29
↓ 46 callers
Function
_safe_cleanup
Delete a bank, suppressing deadlock/lock errors in test teardown. Oracle's row-level locking can cause ORA-00060 (deadlock) or ORA-00054 (res
hindsight-api-slim/tests/test_oracle_integration.py:36
↓ 45 callers
Method
IsSet
()
hindsight-clients/go/model_create_bank_request.go:758
↓ 45 callers
Method
fetchval
Execute a query and return a single value from the first row. Args: query: SQL query with dialect-appropriate placeholders.
hindsight-api-slim/hindsight_api/engine/db/base.py:155
↓ 44 callers
Function
log
(msg: string)
hindsight-integrations/nemoclaw/src/setup.ts:14
↓ 44 callers
Method
set_attribute
No-op.
hindsight-api-slim/hindsight_api/tracing.py:70
↓ 43 callers
Function
_mock_client
Create a mock Hindsight client with async methods.
hindsight-integrations/openai-agents/tests/test_tools.py:16
↓ 43 callers
Function
extract_facts_from_text
Extract semantic facts from conversational or narrative text using LLM. For large texts (>3000 chars), automatically chunks at sentence boun
hindsight-api-slim/hindsight_api/engine/retain/fact_extraction.py:1739
↓ 43 callers
Method
recall_memory
Search long-term memory for relevant information. Use this to find previously stored facts, preferences, or context. Returns a number
hindsight-integrations/agno/hindsight_agno/tools.py:216
↓ 43 callers
Function
run_consolidation_job
Run consolidation job for a bank. This is called after retain operations to consolidate new memories into mental models. Args:
hindsight-api-slim/hindsight_api/engine/consolidation/consolidator.py:722
↓ 42 callers
Function
test
(z, bundle)
hindsight-integrations/zapier/authentication.js:14
↓ 41 callers
Method
create_bank
Create or update a memory bank (sync wrapper — prefer :meth:`acreate_bank` in async code). Args: bank_id: Unique identifier for t
hindsight-clients/python/hindsight_client/hindsight_client.py:565
↓ 41 callers
Method
format
(self, record: logging.LogRecord)
hindsight-api-slim/hindsight_api/config.py:1163
↓ 41 callers
Function
getDataplaneHeaders
(extra?: Record<string, string>)
hindsight-control-plane/src/lib/hindsight-client.ts:20
↓ 41 callers
Method
refresh_mental_model
Refresh a pinned mental model by re-running its source query. This method: 1. Gets the pinned mental model 2. Runs the source
hindsight-api-slim/hindsight_api/engine/memory_engine.py:10464
↓ 40 callers
Function
_cfg
(**overrides)
hindsight-integrations/claude-code/tests/test_bank.py:12
↓ 40 callers
Function
_mock_client
()
hindsight-integrations/composio/tests/test_tools.py:54
↓ 40 callers
Method
load
Load LoComo dataset from JSON file.
hindsight-dev/benchmarks/locomo/locomo_benchmark.py:28
↓ 40 callers
Method
reflect_async
Reflect and formulate an answer using an agentic loop with tools. The reflect agent iteratively uses read-only tools to: 1.
hindsight-api-slim/hindsight_api/engine/memory_engine.py:8861
↓ 40 callers
Function
respondWithSdk
( result: SdkResult<T>, failureLabel: string, successStatusOrOptions: number | SdkErrorOptions = SUCCESS
hindsight-control-plane/src/lib/sdk-response.ts:84
↓ 39 callers
Function
bankApi
(bankId: string, suffix = "")
hindsight-control-plane/src/lib/bank-url.ts:22
↓ 38 callers
Function
_mock_client
Create a mock Hindsight client with sync methods.
hindsight-integrations/ag2/tests/test_tools.py:17
↓ 38 callers
Function
get_config
Get the current global configuration. Returns: The current HindsightConfig instance, or None if not configured
hindsight-integrations/litellm/hindsight_litellm/config.py:611
↓ 38 callers
Method
resolve_profile_paths
Resolve paths for a profile. Args: name: Profile name (empty string for default). Returns: ProfilePaths with
hindsight-embed/hindsight_embed/profile_manager.py:386
↓ 38 callers
Method
wait_for_background_tasks
Wait for all pending background tasks to complete. This is useful in tests to ensure background tasks complete before making asserti
hindsight-api-slim/hindsight_api/engine/memory_engine.py:3139
↓ 37 callers
Function
_mock_client
Create a mock Hindsight client with async methods.
hindsight-integrations/langgraph/tests/test_tools.py:15
↓ 37 callers
Function
_mock_client
Create a mock Hindsight client.
hindsight-integrations/llamaindex/tests/test_memory.py:10
↓ 37 callers
Function
assert_meets_criteria
Assert that a response meets criteria, with a clear failure message. Raises AssertionError if the judge says criteria are not met.
hindsight-api-slim/tests/llm_judge.py:177
↓ 37 callers
Function
cleanup
Clean up all Hindsight resources. This disables the integration and closes any open connections. Call this when shutting down your applicatio
hindsight-integrations/litellm/hindsight_litellm/__init__.py:805
↓ 37 callers
Function
create_hindsight_tools
Create Hindsight memory tools for AG2 agents. Returns a list of plain Python functions compatible with AG2's ``@register_for_llm`` / ``@regis
hindsight-integrations/ag2/hindsight_ag2/tools.py:22
↓ 37 callers
Function
create_hindsight_tools
Create Hindsight memory tools for a LangGraph agent. Returns a list of LangChain tool instances compatible with LangGraph's ToolNode and Chat
hindsight-integrations/langgraph/hindsight_langgraph/tools.py:40
↓ 37 callers
Function
create_hindsight_tools
Create Hindsight memory tools for an OpenAI Agents SDK agent. Returns a list of ``FunctionTool`` instances compatible with OpenAI Agents SDK'
hindsight-integrations/openai-agents/hindsight_openai_agents/tools.py:33
↓ 37 callers
Function
create_hindsight_tools
Create Hindsight memory tools as Claude Agent SDK ``SdkMcpTool`` instances. Returns a list of tools that can be wrapped into an MCP server via
hindsight-integrations/claude-agent-sdk/hindsight_claude_agent_sdk/tools.py:30
↓ 37 callers
Method
create_profile
Create or update a profile. Args: name: Profile name. port_or_config: Port number (int) or configuration dict. For ba
hindsight-embed/hindsight_embed/profile_manager.py:248
↓ 36 callers
Method
Get
()
hindsight-clients/go/model_dry_run_extract_request.go:621
↓ 36 callers
Function
dataplaneBankUrl
(bankId: string, suffix = "")
hindsight-control-plane/src/lib/hindsight-client.ts:33
↓ 35 callers
Function
createHindsightTools
({ client, bankId, retain: retainOpts = {}, recall: recallOpts = {}, reflect: reflectOpts = {}, ge
hindsight-integrations/ai-sdk/src/tools/index.ts:265
↓ 35 callers
Function
create_hindsight_tools
Create Hindsight memory tools for an AutoGen agent. Returns a list of ``FunctionTool`` instances compatible with AutoGen's ``AssistantAgent(t
hindsight-integrations/autogen/hindsight_autogen/tools.py:30
↓ 35 callers
Method
from_client
Create a HindsightMemory with a pre-configured client. Args: client: Hindsight client instance. bank_id: Memory bank
hindsight-integrations/llamaindex/hindsight_llamaindex/memory.py:158
↓ 35 callers
Function
getPluginConfig
(api: MoltbotPluginAPI)
hindsight-integrations/openclaw/src/index.ts:1502
↓ 35 callers
Method
retain_memory
Store information to long-term memory for later retrieval. Use this to save important facts, user preferences, decisions, or any info
hindsight-integrations/agno/hindsight_agno/tools.py:188
↓ 34 callers
Method
Request
JSON string with FileRetainRequest model
hindsight-clients/go/api_files.go:43
↓ 34 callers
Function
_mock_client
Create a mock Hindsight client with async methods.
hindsight-integrations/claude-agent-sdk/tests/test_tools.py:16
↓ 34 callers
Method
get_mental_model
Get a single pinned mental model by ID. Args: bank_id: Bank identifier mental_model_id: Pinned mental model UUID
hindsight-api-slim/hindsight_api/engine/memory_engine.py:10237
↓ 34 callers
Function
parseCliArgs
(argv: string[])
hindsight-integrations/openclaw/src/setup.ts:107
↓ 34 callers
Function
parse_entity_labels
Parse raw entity labels config into EntityLabelsConfig. Accepts: - None → returns None - list → list of attribute dicts (each may us
hindsight-api-slim/hindsight_api/engine/retain/entity_labels.py:51
↓ 33 callers
Function
debug_log
Log to stderr if debug mode is enabled.
hindsight-integrations/claude-code/scripts/lib/config.py:169
↓ 33 callers
Function
makeApi
(rawConfig: Record<string, unknown>)
hindsight-integrations/openclaw/src/index.test.ts:1544
↓ 33 callers
Method
run
Run the full benchmark evaluation. Args: dataset_path: Path to dataset file agent_id: Agent ID to use
hindsight-dev/benchmarks/common/benchmark_runner.py:964
↓ 32 callers
Method
Get
()
hindsight-clients/go/model_recall_result.go:671
↓ 32 callers
Method
Get
()
hindsight-clients/go/model_operation_status_response.go:634
↓ 32 callers
Method
Get
()
hindsight-clients/go/model_webhook_delivery_response.go:591
↓ 32 callers
Function
_mock_client
Create a mock Hindsight client with async methods.
hindsight-integrations/autogen/tests/test_tools.py:15
↓ 32 callers
Function
get_defaults
Get the current global defaults for per-call settings. Returns: The current HindsightCallSettings instance, or None if not configured
hindsight-integrations/litellm/hindsight_litellm/config.py:620
↓ 32 callers
Method
start
()
hindsight-integrations/openclaw/src/types.ts:158
↓ 32 callers
Method
wait
Block until cancellation is signalled.
hindsight-api-slim/hindsight_api/cancellation.py:83
↓ 31 callers
Function
chunk_text
Split text into chunks, preserving conversation structure when possible. For JSON conversation arrays (user/assistant turns) and JSONL (newl
hindsight-api-slim/hindsight_api/engine/retain/fact_extraction.py:445
↓ 31 callers
Function
configure
Configure Hindsight + Superagent connection and default settings.
hindsight-integrations/superagent/hindsight_superagent/config.py:62
↓ 31 callers
Function
derive_bank_id
Derive a bank ID from hook context and config. Port of: deriveBankId() in index.js Resolution order: 1. directoryBankMap — explicit di
hindsight-integrations/claude-code/scripts/lib/bank.py:71
↓ 31 callers
Method
get_or_load
Return cached stats for `(schema, bank_id)` or call `loader()`. Concurrent misses on the same key are coalesced onto a single in-flig
hindsight-api-slim/hindsight_api/engine/bank_stats_cache.py:73
↓ 31 callers
Function
memory_instructions
Pre-recall memories for injection into Agent instructions. Performs a sync recall at construction time and returns a formatted string of memo
hindsight-integrations/agno/hindsight_agno/tools.py:284
↓ 30 callers
Method
Set
(val *CreateBankRequest)
hindsight-clients/go/model_create_bank_request.go:753
↓ 30 callers
Function
create_memory_hooks
Create Claude Agent SDK hooks for automatic memory operations. Returns a dict suitable for ``ClaudeAgentOptions(hooks=...)``. Up to three ho
hindsight-integrations/claude-agent-sdk/hindsight_claude_agent_sdk/hooks.py:111
↓ 30 callers
Method
encode
(self, texts: list[str])
hindsight-api-slim/tests/test_llm_reasoning_effort_env.py:20
↓ 30 callers
Method
transaction
Acquire a connection and start a transaction. The transaction is committed on clean exit, rolled back on exception. Yields:
hindsight-api-slim/hindsight_api/engine/db/base.py:323
↓ 29 callers
Function
_call_tool
Call a Strands @tool decorated function directly, bypassing the decorator.
hindsight-integrations/strands/tests/test_tools.py:54
↓ 29 callers
Function
_mock_client
Create a mock Hindsight client with async methods.
hindsight-integrations/claude-agent-sdk/tests/test_hooks.py:15
↓ 29 callers
Method
aretain
Store a single memory (async — preferred over :meth:`retain`). Args: bank_id: The memory bank ID content: Me
hindsight-clients/python/hindsight_client/hindsight_client.py:832
↓ 29 callers
Method
claim_batch
Claim pending tasks atomically across all tenant schemas, respecting per-operation-type slot reservations and shared pool limits.
hindsight-api-slim/hindsight_api/worker/poller.py:339
↓ 29 callers
Method
create_directive
Create a new directive. Args: bank_id: Bank identifier name: Human-readable name for the directive conten
hindsight-api-slim/hindsight_api/engine/memory_engine.py:11387
↓ 29 callers
Method
initialize
Initialize the connection pool, models, and background workers. Loads models (embeddings, cross-encoder) in parallel with pg0 startup
hindsight-api-slim/hindsight_api/engine/memory_engine.py:2628
↓ 29 callers
Function
make_hook_input
( prompt="What is the capital of France?", session_id="sess-abc123", cwd="/home/user/myproject",
hindsight-integrations/claude-code/tests/conftest.py:49
↓ 29 callers
Method
validate_bank_write
Validate a bank write operation before execution. Override to implement custom validation logic for bank writes (delete_bank
hindsight-api-slim/hindsight_api/extensions/operation_validator.py:865
↓ 28 callers
Method
Get
()
hindsight-clients/go/model_operation_response.go:545
↓ 28 callers
Method
Get
()
hindsight-clients/go/model_update_memory_request.go:418
↓ 28 callers
Method
Get
()
hindsight-clients/go/model_mental_model_response.go:578
↓ 28 callers
Method
Unset
()
hindsight-clients/go/model_bank_template_config.go:1545
↓ 28 callers
Function
_make_jwt
Build a minimal JWT-shaped token with the given ``exp`` claim. Signature segment is a placeholder — we don't verify, we only decode the paylo
hindsight-api-slim/tests/test_codex_oauth_refresh.py:46
↓ 28 callers
Method
arecall
Recall memories using semantic similarity (async — preferred over :meth:`recall`). Args: bank_id: The memory bank ID
hindsight-clients/python/hindsight_client/hindsight_client.py:880
↓ 28 callers
Function
configure
Configure Hindsight connection and default settings. Args: hindsight_api_url: Hindsight API URL (default: production). api_key: A
hindsight-integrations/agno/hindsight_agno/config.py:40
↓ 28 callers
Method
handler
(args: dict[str, Any])
hindsight-api-slim/hindsight_api/engine/providers/claude_code_llm.py:416
↓ 28 callers
Function
k
(e,i)
hindsight-embed/hindsight_embed/control_center/static/assets/index-CCShriQ0.js:1
↓ 28 callers
Method
record_llm_call
Record stats for a single LLM call.
hindsight-api-slim/hindsight_api/engine/consolidation/consolidator.py:685
↓ 28 callers
Method
run
()
hindsight-integrations/litellm/tests/test_e2e.py:239
↓ 28 callers
Function
useBank
()
hindsight-control-plane/src/lib/bank-context.tsx:80
← previous
next →
101–200 of 18,621, ranked by callers