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
↓ 20 callers
Function
FieldWithDefault
Field wrapper that ensures default_factory values appear in OpenAPI schema. Pydantic doesn't include default_factory in OpenAPI schemas, cau
hindsight-api-slim/hindsight_api/api/http.py:119
↓ 20 callers
Method
Get
()
hindsight-clients/go/model_mental_model_trigger_output.go:523
↓ 20 callers
Method
Get
()
hindsight-clients/go/model_bank_list_item.go:425
↓ 20 callers
Method
Get
()
hindsight-clients/go/model_reflect_fact.go:358
↓ 20 callers
Method
Get
()
hindsight-clients/go/model_mental_model_trigger_input.go:523
↓ 20 callers
Function
_insert_observation
Insert an observation unit directly.
hindsight-api-slim/tests/test_observation_invalidation.py:41
↓ 20 callers
Method
_send_json
(self, status: int, payload: object)
hindsight-embed/hindsight_embed/control_center/server.py:39
↓ 20 callers
Function
_ts
()
hindsight-api-slim/tests/test_delta_retain.py:24
↓ 20 callers
Method
clear
()
hindsight-clients/typescript/generated/client/utils.gen.ts:237
↓ 20 callers
Function
create_embeddings_from_env
Create an Embeddings instance based on configuration. Reads configuration via get_config() to ensure consistency across the codebase. R
hindsight-api-slim/hindsight_api/engine/embeddings.py:1564
↓ 20 callers
Function
create_hindsight_tools
Create Hindsight memory tools for a Pydantic AI agent. Returns a list of ``Tool`` instances that can be passed directly to ``Agent(tools=...)
hindsight-integrations/pydantic-ai/hindsight_pydantic_ai/tools.py:53
↓ 20 callers
Function
create_recall_node
Create a node that injects relevant memories into the conversation. This node extracts the latest user message, recalls relevant memories fro
hindsight-integrations/langgraph/hindsight_langgraph/nodes.py:42
↓ 20 callers
Method
initialize
(self)
hindsight-api-slim/tests/test_model_init_timeout.py:60
↓ 20 callers
Method
list_directives
List directives for a bank. Args: bank_id: Bank identifier tags: Optional flat tags to filter by tags_mat
hindsight-api-slim/hindsight_api/engine/memory_engine.py:11245
↓ 20 callers
Function
make_transcript_file
Write messages as a JSONL transcript file (flat test format).
hindsight-integrations/claude-code/tests/conftest.py:63
↓ 20 callers
Method
on
(event: string, selector: string, handler: Function)
hindsight-control-plane/types/cytoscape-fcose.d.ts:58
↓ 20 callers
Function
reset_config
Reset all global configuration to None.
hindsight-integrations/litellm/hindsight_litellm/config.py:642
↓ 20 callers
Method
retain_batch
Store multiple memories in batch (sync wrapper — prefer :meth:`aretain_batch` in async code). Args: bank_id: The memory
hindsight-clients/python/hindsight_client/hindsight_client.py:322
↓ 20 callers
Method
select_header_content_type
Returns `Content-Type` based on an array of content_types provided. :param content_types: List of content-types. :return: Content-Typ
hindsight-clients/python/hindsight_client_api/api_client.py:591
↓ 20 callers
Method
submit_async_consolidation
Submit a consolidation operation to run asynchronously. Deduplicates by bank_id - if there's already a pending consolidation for this bank,
hindsight-api-slim/hindsight_api/engine/memory_engine.py:12675
↓ 19 callers
Function
C
(e)
hindsight-embed/hindsight_embed/control_center/static/assets/index-CCShriQ0.js:1
↓ 19 callers
Method
IsSet
()
hindsight-clients/go/model_operation_response.go:554
↓ 19 callers
Function
_build_llm
Construct a CodexLLM with patched auth-file reads.
hindsight-api-slim/tests/test_codex_oauth_refresh.py:61
↓ 19 callers
Function
_ctx
(**kwargs)
hindsight-integrations/agentcore/tests/test_adapter.py:17
↓ 19 callers
Function
_fq
Get fully-qualified table name in test schema.
hindsight-api-slim/tests/test_admin_backup_restore.py:42
↓ 19 callers
Function
_r
(doc_id: str)
hindsight-api-slim/tests/test_interleave_fusion.py:7
↓ 19 callers
Function
_resolve_thinking_budget
Map a Budget enum level to the integer thinking_budget passed to retrieval. Reads the bank-resolved config to decide between two functions:
hindsight-api-slim/hindsight_api/engine/memory_engine.py:710
↓ 19 callers
Method
aclose
Close the API client (async version).
hindsight-clients/python/hindsight_client/hindsight_client.py:244
↓ 19 callers
Method
areflect
Generate a contextual answer based on bank identity and memories (async — preferred over :meth:`reflect`). Args: bank_id
hindsight-clients/python/hindsight_client/hindsight_client.py:996
↓ 19 callers
Function
createTools
( client: HindsightClient, bankId: string, config: HindsightConfig, missionsSet?: Set<string>, logge
hindsight-integrations/opencode/src/tools.ts:25
↓ 19 callers
Method
emit
(level: LogLevel, message: string, extra?: Record<string, unknown>)
hindsight-integrations/opencode/src/logger.ts:54
↓ 19 callers
Function
filter_results_by_tags
Filter retrieval results by tags in Python (for post-processing). Used when SQL filtering isn't possible (e.g., graph traversal results).
hindsight-api-slim/hindsight_api/engine/search/tags.py:165
↓ 19 callers
Function
fmtScore
(v: number | null | undefined)
hindsight-control-plane/src/components/search-debug-view.tsx:45
↓ 19 callers
Function
load_extension
Load an extension from environment variable configuration. The extension class is specified via {env_prefix}_{prefix}_EXTENSION environment
hindsight-api-slim/hindsight_api/extensions/loader.py:24
↓ 19 callers
Function
relative_year_number
(year_text: str)
hindsight-api-slim/hindsight_api/engine/chinese_temporal_periods.py:297
↓ 19 callers
Method
retain
(req: RetainRequest)
hindsight-integrations/openclaw/src/index.ts:108
↓ 19 callers
Function
runNonInteractive
( args: ParsedCliArgs, configPath: string )
hindsight-integrations/openclaw/src/setup.ts:243
↓ 19 callers
Function
run_reflect_agent
Execute the reflect agent loop using native tool calling. The agent uses hierarchical retrieval: 1. search_mental_models - User-curated
hindsight-api-slim/hindsight_api/engine/reflect/agent.py:416
↓ 19 callers
Function
withHindsightChat
( options: HindsightChatOptions, handler: HindsightChatHandler<TState> )
hindsight-integrations/chat/src/wrapper.ts:41
↓ 18 callers
Method
IsSet
()
hindsight-clients/go/model_memory_item.go:523
↓ 18 callers
Method
Set
(val *DryRunExtractRequest)
hindsight-clients/go/model_dry_run_extract_request.go:625
↓ 18 callers
Function
_get_consolidated_at
(conn, memory_id: uuid.UUID)
hindsight-api-slim/tests/test_observation_invalidation.py:67
↓ 18 callers
Function
_insert_memory
Insert a single experience memory with an explicit observation_scopes column. The JSONB column is written as a JSON-encoded string to match how t
hindsight-api-slim/tests/test_consolidation_scope_parallelism.py:73
↓ 18 callers
Function
_rewrite_pg_to_oracle
Rewrite PostgreSQL-style SQL to Oracle-compatible SQL. Returns (rewritten_query, ignore_dup, returning_cols). - ignore_dup: True if ON CONFLI
hindsight-api-slim/hindsight_api/engine/db/oracle.py:304
↓ 18 callers
Function
_run_hook
Import and run a hook script's main() with mocked stdin/stdout/HTTP.
hindsight-integrations/codex/tests/test_hooks.py:27
↓ 18 callers
Function
build_shttp_server
Build the ``shttp_servers`` entry: ``{url, api_key?}``. The api_key is omitted for an open self-hosted server (no token).
hindsight-integrations/openhands/hindsight_openhands/openhands_config.py:36
↓ 18 callers
Method
cancel
Signal cancellation. Idempotent; the first reason recorded wins.
hindsight-api-slim/hindsight_api/cancellation.py:62
↓ 18 callers
Method
clear
(self)
hindsight-api-slim/hindsight_api/engine/bank_stats_cache.py:151
↓ 18 callers
Method
close
Close the underlying stream if it has a close method.
hindsight-integrations/litellm/hindsight_litellm/wrappers.py:766
↓ 18 callers
Method
create
Create a new bank.
hindsight-all/hindsight/api_namespaces.py:22
↓ 18 callers
Function
create_hindsight_tools
Create Hindsight memory tools for a Strands agent. Returns a list of ``@tool``-decorated functions that can be passed directly to ``Agent(too
hindsight-integrations/strands/hindsight_strands/tools.py:104
↓ 18 callers
Function
derive_bank_id
Derive a bank ID from hook context and config. When `dynamicBankId` is false, returns the static bank. When true, composes from granularity f
hindsight-integrations/cursor-cli/hindsight_cursor_cli/hooks/scripts/lib/bank.py:66
↓ 18 callers
Method
get_database_url
Get the database URL for this profile. Args: profile: Profile name db_url: Optional override database URL
hindsight-embed/hindsight_embed/embed_manager.py:72
↓ 18 callers
Function
get_value
(field_name)
hindsight-api-slim/hindsight_api/engine/retain/fact_extraction.py:1380
↓ 18 callers
Function
hindsight_memory
Context manager for temporary Hindsight memory integration. Use this to enable memory integration for a specific block of code, automatically
hindsight-integrations/litellm/hindsight_litellm/__init__.py:1454
↓ 18 callers
Function
make_hook_input
( prompt="What is the capital of France?", session_id="sess-abc123", cwd="/home/user/myproject",
hindsight-integrations/codex/tests/conftest.py:18
↓ 18 callers
Function
month_phase_period
(year: int, month: int, phase: str)
hindsight-api-slim/hindsight_api/engine/chinese_temporal_periods.py:268
↓ 18 callers
Function
parse_chinese_month
(month_text: str)
hindsight-api-slim/hindsight_api/engine/chinese_temporal_periods.py:209
↓ 18 callers
Function
withBasePath
(path: string)
hindsight-control-plane/src/lib/base-path.ts:14
↓ 18 callers
Function
wrap_openai
Wrap an OpenAI client with Hindsight memory integration. This creates a wrapped client that automatically injects memories and stores convers
hindsight-integrations/litellm/hindsight_litellm/wrappers.py:1690
↓ 17 callers
Method
__getattribute__
(self, name: str)
hindsight-api-slim/hindsight_api/config.py:46
↓ 17 callers
Method
_handle_context_frame
(self, frame: LLMContextFrame)
hindsight-integrations/pipecat/hindsight_pipecat/memory.py:139
↓ 17 callers
Function
_resolve_client
Resolve a Hindsight client from explicit args or global config.
hindsight-integrations/agno/hindsight_agno/tools.py:43
↓ 17 callers
Function
_resolve_write_scopes
Return the observation scopes a memory will write to, as frozensets. Used by the parallel dispatcher to acquire one lock per scope before pro
hindsight-api-slim/hindsight_api/engine/consolidation/consolidator.py:374
↓ 17 callers
Function
_team_overview_doc
()
hindsight-api-slim/tests/test_structured_doc.py:49
↓ 17 callers
Function
_write_jsonl
(tmp_path, entries)
hindsight-integrations/codex/tests/test_content.py:21
↓ 17 callers
Method
call
Make an LLM API call with retry logic. Args: messages: List of message dicts with 'role' and 'content'. resp
hindsight-api-slim/hindsight_api/engine/llm_wrapper.py:795
↓ 17 callers
Method
close
Explicitly close the client. Args: stop_daemon: If True, stops the daemon. Otherwise, daemon continues running
hindsight-all/hindsight/embedded.py:258
↓ 17 callers
Function
configure
Configure Hindsight connection and default settings. Args: hindsight_api_url: Hindsight API URL (default: production). api_key: A
hindsight-integrations/haystack/hindsight_haystack/config.py:43
↓ 17 callers
Function
configure
Set the global Hindsight configuration for AgentCore adapters. Call once at application startup, before creating any adapters. Example:
hindsight-integrations/agentcore/hindsight_agentcore/config.py:50
↓ 17 callers
Function
getIdentitySkipReason
( ctx: PluginHookAgentContext | undefined, pluginConfig?: PluginConfig )
hindsight-integrations/openclaw/src/index.ts:1020
↓ 17 callers
Function
get_current_schema
Get the current schema from context (falls back to config default).
hindsight-api-slim/hindsight_api/engine/memory_engine.py:81
↓ 17 callers
Function
load_config
Load plugin configuration from settings.json + env overrides. Loading order (later entries win): 1. Built-in defaults (cloud URL pre-set)
hindsight-integrations/omo/scripts/lib/config.py:101
↓ 17 callers
Function
make_client
A mock Hindsight client whose ``recall`` returns the given memory texts.
hindsight-integrations/continue/tests/conftest.py:27
↓ 17 callers
Function
parse_policy
Parse a raw bank-config dict into a frozen DefensePolicy. Raises ValueError for a missing/empty ``on`` or an unknown action; the HTTP layer c
hindsight-api-slim/hindsight_api/extensions/memory_defense.py:108
↓ 17 callers
Function
reset_config
Reset global configuration to None.
hindsight-integrations/smolagents/hindsight_smolagents/config.py:89
↓ 17 callers
Function
resolveHindsightConnection
( options: HindsightConnectionOptions = {}, env: NodeJS.ProcessEnv = process.env )
hindsight-integrations/eve/src/index.ts:88
↓ 17 callers
Function
resolve_active_profile
Resolve which profile to use based on priority. Priority (highest to lowest): 1. HINDSIGHT_EMBED_PROFILE environment variable 2. CLI --pr
hindsight-embed/hindsight_embed/profile_manager.py:632
↓ 17 callers
Function
retain
Store content to Hindsight memory. This function allows you to manually store content to memory without making an LLM call. Useful for storin
hindsight-integrations/litellm/hindsight_litellm/wrappers.py:575
↓ 17 callers
Method
transaction
(self)
hindsight-api-slim/tests/test_backlog_metrics.py:43
↓ 16 callers
Method
CreateOrUpdateBank
* CreateOrUpdateBank Create or update memory bank Create a new agent or update existing agent with disposition and mission. Auto-fills missing fields
hindsight-clients/go/api_banks.go:315
↓ 16 callers
Method
Get
()
hindsight-clients/go/model_update_directive_request.go:280
↓ 16 callers
Method
Get
()
hindsight-clients/go/model_update_mental_model_request.go:280
↓ 16 callers
Method
Get
()
hindsight-clients/go/model_webhook_response.go:415
↓ 16 callers
Method
Get
()
hindsight-clients/go/model_min_scores.go:243
↓ 16 callers
Method
Get
()
hindsight-clients/go/model_audit_log_entry.go:411
↓ 16 callers
Method
Get
()
hindsight-clients/go/model_update_webhook_request.go:280
↓ 16 callers
Method
IsSet
()
hindsight-clients/go/model_llm_request_entry.go:774
↓ 16 callers
Method
Set
(val *RecallResult)
hindsight-clients/go/model_recall_result.go:675
↓ 16 callers
Method
Set
(val *LLMRequestEntry)
hindsight-clients/go/model_llm_request_entry.go:769
↓ 16 callers
Method
Set
(val *OperationStatusResponse)
hindsight-clients/go/model_operation_status_response.go:638
↓ 16 callers
Function
_assemble
Mechanically join the sections in the same order the builder does. This is not a re-implementation of the builder — it just stitches precompu
hindsight-api-slim/tests/test_reflect_prompt_builder.py:276
↓ 16 callers
Function
_auth
(token="test-token-secret")
hindsight-embed/tests/test_control_center.py:244
↓ 16 callers
Function
_cfg
(**overrides)
hindsight-integrations/cursor-cli/tests/test_bank.py:8
↓ 16 callers
Function
_coerce_string_json
Auto-coerce string-encoded JSON arrays/objects to native types. LLM agents frequently serialize list and dict tool arguments as JSON strings.
hindsight-api-slim/hindsight_api/api/mcp.py:272
↓ 16 callers
Function
_insert_memories_with_tags
Insert experience memories directly with optional tags, bypassing LLM-based retain.
hindsight-api-slim/tests/test_consolidation.py:3011
↓ 16 callers
Function
_kw
Resolve kwarg precedence: explicit value > global config > fallback default. Uses `is not None` so explicit falsy values (empty list, 0, False) o
hindsight-integrations/superagent/hindsight_superagent/middleware.py:45
↓ 16 callers
Function
_mock_recall_response
(texts: list[str])
hindsight-integrations/openai-agents/tests/test_tools.py:25
↓ 16 callers
Function
_mock_recall_response
Create a mock RecallResponse with results.
hindsight-integrations/strands/tests/test_tools.py:35
↓ 16 callers
Function
_mock_recall_response
(texts: list[str])
hindsight-integrations/haystack/tests/test_tools.py:26
← previous
next →
301–400 of 18,621, ranked by callers