Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AQ-MedAI/MedMemoryBench
/ functions
Functions
13,378 in github.com/AQ-MedAI/MedMemoryBench
⨍
Functions
13,378
◇
Types & classes
2,886
↳
Endpoints
355
↓ 3 callers
Method
_get_user_id
Get user ID.
methods/mem0_agent.py:285
↓ 3 callers
Method
_get_version_key
Get Redis key for version control
methods/memOS/MemOS/src/memos/mem_scheduler/orm_modules/redis_model.py:78
↓ 3 callers
Function
_heuristic_keywords
Extract heuristic keywords from content text.
methods/amem/A-mem/llm_text_parsers.py:470
↓ 3 callers
Method
_initialize_connection
Initialize the Kuzu database connection and schema.
methods/cognee/infrastructure/databases/graph/kuzu/adapter.py:38
↓ 3 callers
Method
_is_valid_snapshot_dir
Return True only for real memory snapshots (not placeholder numeric dirs).
methods/MemRL/memrl/run/hle_runner.py:194
↓ 3 callers
Function
_iterable
(x)
methods/memOS/MemOS/src/memos/reranker/http_bge.py:38
↓ 3 callers
Function
_iterable
(x)
methods/memOS/MemOS/src/memos/reranker/http_bge_strategy.py:38
↓ 3 callers
Method
_load_stopwords
load stopwords for once
methods/memOS/MemOS/src/memos/memories/textual/tree_text_memory/retrieve/retrieve_utils.py:100
↓ 3 callers
Method
_log_token_usage
Log current token usage for LLM and Embedding providers.
methods/MemRL/memrl/run/llb_rl_runner.py:217
↓ 3 callers
Method
_manual_xautoclaim
Simulate xautoclaim using xpending and xclaim for compatibility with older Redis versions.
methods/memOS/MemOS/src/memos/mem_scheduler/task_schedule_modules/redis_queue.py:665
↓ 3 callers
Method
_merge_chunk_embeddings
Merge chunk-level embeddings back to per-text embeddings by averaging.
methods/MemRL/memrl/providers/base.py:161
↓ 3 callers
Method
_normalize_condition_dates
Normalize date strings in a single condition dictionary. Args: condition: A condition dict like {"created_at": {"gt": "2
methods/memOS/MemOS/src/memos/graph_dbs/neo4j_community.py:585
↓ 3 callers
Function
_normalize_env_value
Normalize environment variable values for comparison.
methods/memOS/MemOS/src/memos/mem_scheduler/utils/misc_utils.py:21
↓ 3 callers
Function
_o
(e,n,t,r,l,o)
methods/letta/server/static_files/assets/index-048c9598.js:40
↓ 3 callers
Method
_parse_output
Parse the output data. Args: data (Dict): Output data. Returns: List[OutputData]: Parsed output dat
methods/mem0/vector_stores/chroma.py:63
↓ 3 callers
Method
_parse_output
Parse the output data from Pinecone search results. Args: data (Dict): Output data from Pinecone query. Returns
methods/mem0/vector_stores/pinecone.py:158
↓ 3 callers
Method
_persist_image_cache_unlocked
Persist image store/index to log_dir (caller holds _image_lock).
methods/MemRL/memrl/run/hle_runner.py:530
↓ 3 callers
Function
_prepare_anthropic_request
Prepare the request data for Anthropic API format.
methods/letta/llm_api/anthropic.py:622
↓ 3 callers
Function
_prepare_node_metadata
Ensure metadata has proper datetime fields and normalized types. - Fill `created_at` and `updated_at` if missing (in ISO 8601 format). -
methods/memOS/MemOS/src/memos/graph_dbs/polardb.py:30
↓ 3 callers
Method
_process_message_async
Process a queue message by calling server.send_messages().
methods/MIRIX/mirix/queue/worker.py:123
↓ 3 callers
Function
_process_relationship
Generalized async function to handle relationships like tools, sources, and blocks using item IDs. Args: session: The async database
methods/MIRIX/mirix/services/helpers/agent_manager_helper.py:22
↓ 3 callers
Method
_refresh_memory_size
Query the latest counts from the graph store and update internal state.
methods/memOS/MemOS/src/memos/memories/textual/tree_text_memory/organize/manager.py:293
↓ 3 callers
Method
_refresh_stream_keys
Scan Redis and refresh cached stream keys for the queue prefix.
methods/memOS/MemOS/src/memos/mem_scheduler/task_schedule_modules/redis_queue.py:180
↓ 3 callers
Method
_reset_parsing_state
Clears internal buffers for function call name/args.
methods/letta/server/rest_api/chat_completions_interface.py:272
↓ 3 callers
Method
_run_async
Schedule coroutine to be run in the dedicated event loop.
methods/letta/server/ws_api/interface.py:73
↓ 3 callers
Function
_sanitize_neo4j_metadata
Ensure all metadata values are valid Neo4j property types.
methods/memOS/MemOS/src/memos/graph_dbs/neo4j.py:94
↓ 3 callers
Method
_select_session_wrapper_by_sample_index
( self, sample_index: SampleIndex )
methods/MemRL/3rdparty/LifelongAgentBench/src/callbacks/instance/group_self_consistency_callback.py:323
↓ 3 callers
Method
_send_message_to_scheduler
Send message to scheduler. Args: user_id: User ID mem_cube_id: Memory cube ID query: Query conte
methods/memOS/MemOS/src/memos/api/handlers/chat_handler.py:1290
↓ 3 callers
Method
_send_to_all_clients
Asynchronously sends a message to all clients.
methods/letta/server/ws_api/interface.py:78
↓ 3 callers
Method
_set_dataset
(self, dataset: dict[SampleIndex, DatasetItemSubclass])
methods/MemRL/3rdparty/LifelongAgentBench/src/tasks/task.py:135
↓ 3 callers
Function
_sha1
(text: str)
methods/MemRL/memrl/trace/llb_jsonl.py:14
↓ 3 callers
Method
_should_stop
Check if the given token is the EOS (end-of-sequence) token. Args: token (torch.Tensor): Token ID to check. Retur
methods/memOS/MemOS/src/memos/llms/hf.py:343
↓ 3 callers
Method
_str_memories
Format memories for display.
methods/memOS/MemOS/src/memos/mem_os/core.py:390
↓ 3 callers
Method
_str_memories
Format memories for display.
methods/memOS/MemOS/src/memos/mem_chat/simple.py:157
↓ 3 callers
Function
_toConsumableArray
(arr)
data/locomo/static/js/bulma-carousel.js:275
↓ 3 callers
Method
_truncate_to_tokens
Truncate text to max_tokens.
methods/memos_agent.py:107
↓ 3 callers
Function
_try_record_usage
Try to record token usage to the global tracker if available. This function attempts to import and use the global LLM usage tracker. If the t
methods/memOS/MemOS/src/memos/llms/openai.py:28
↓ 3 callers
Function
_u
()
methods/letta/server/static_files/assets/index-048c9598.js:40
↓ 3 callers
Method
_update_identity
( self, session: Session, existing_identity: IdentityModel, identity: Identity
methods/letta/services/identity_manager.py:122
↓ 3 callers
Method
_validate_user_exists
Validate user exists and is active. Args: user_id (str): The user ID to validate. Raises: ValueError: If use
methods/memOS/MemOS/src/memos/mem_os/core.py:200
↓ 3 callers
Method
_vector_recall
Perform vector-based similarity retrieval using query embedding. # TODO: tackle with post-filter and pre-filter(5.18+) better.
methods/memOS/MemOS/src/memos/memories/textual/tree_text_memory/retrieve/recall.py:324
↓ 3 callers
Method
acquire_lock
Acquire a distributed lock using Redis with atomic operations Args: block: Whether to block until lock is acquired **
methods/memOS/MemOS/src/memos/mem_scheduler/orm_modules/redis_model.py:363
↓ 3 callers
Method
acquire_lock
Acquire a distributed lock for the current user and memory cube Args: block: Whether to block until lock is acquired
methods/memOS/MemOS/src/memos/mem_scheduler/orm_modules/base_model.py:183
↓ 3 callers
Method
add_history
( self, memory_id, old_memory, new_memory, event, created_at=N
methods/mem0/memory/storage.py:114
↓ 3 callers
Function
add_test_memories
Helper function to add test memories.
methods/MIRIX/tests/test_deletion_apis.py:111
↓ 3 callers
Method
appendMessage
(msg: unknown)
methods/memOS/MemOS/apps/memos-local-openclaw/src/context-engine/index.ts:194
↓ 3 callers
Method
append_to_in_context_messages
( self, messages: List[PydanticMessage], agent_id: str, actor: PydanticClient,
methods/MIRIX/mirix/services/agent_manager.py:1653
↓ 3 callers
Method
apply_access_predicate
applies a WHERE clause restricting results to the given actor and access level For the agents table, this method automatically applies client
methods/MIRIX/mirix/orm/sqlalchemy_base.py:513
↓ 3 callers
Function
assert_code_gen_compilable
(code_str)
methods/letta/functions/helpers.py:149
↓ 3 callers
Method
assistant_message
(msg: str, msg_obj: Optional[Message] = None)
methods/letta/interface.py:90
↓ 3 callers
Method
attach_source
Attaches a source to an agent. Args: agent_id: ID of the agent to attach the source to source_id: ID of the
methods/letta/services/agent_manager.py:965
↓ 3 callers
Function
au
(e)
methods/letta/server/static_files/assets/index-048c9598.js:38
↓ 3 callers
Method
average_embeddings
Compute the average of multiple embeddings. Args: embeddings: List of embedding vectors Ret
methods/MemRL/memrl/providers/embedding.py:371
↓ 3 callers
Function
base64url
(input: Buffer | string)
methods/memOS/MemOS/apps/memos-local-openclaw/src/hub/auth.ts:12
↓ 3 callers
Method
batch_create
Create multiple records in a single transaction for better performance. Args: items: List of model instances to create
methods/letta/orm/sqlalchemy_base.py:393
↓ 3 callers
Function
bert_score
(prediction, ground_truth)
data/locomo/task_eval/evaluation.py:114
↓ 3 callers
Function
bl
(e,n)
methods/letta/server/static_files/assets/index-048c9598.js:37
↓ 3 callers
Method
broadcastPPSSE
(event: string, data: unknown)
methods/memOS/MemOS/apps/memos-local-openclaw/src/viewer/server.ts:4458
↓ 3 callers
Method
broadcastSSE
(event: string, data: unknown)
methods/memOS/MemOS/apps/memos-local-openclaw/src/viewer/server.ts:3796
↓ 3 callers
Function
brute_force_triplet_search
( query: str, user: User = None, top_k: int = 5, collections: List[str] = None, properties
methods/cognee/modules/retrieval/utils/brute_force_triplet_search.py:74
↓ 3 callers
Function
build_doctor_prompt_with_memory
Build doctor agent prompt with memory-augmented context.
generation/app/prompts/doctor_agent.py:233
↓ 3 callers
Function
build_embedder_config
Build embedder configuration. Returns: Validated embedder configuration dictionary
methods/memOS/MemOS/src/memos/api/handlers/config_builders.py:115
↓ 3 callers
Function
build_graph_db_config
Build graph database configuration. Args: user_id: User ID for configuration context (default: "default") Returns: Vali
methods/memOS/MemOS/src/memos/api/handlers/config_builders.py:29
↓ 3 callers
Method
build_kv_cache
Build a KV cache from chat messages via one forward pass. Supports the following input types: - str: Used as a system pro
methods/memOS/MemOS/src/memos/llms/hf.py:354
↓ 3 callers
Function
build_openai_chat_completions_request
( llm_config: LLMConfig, messages: List[_Message], user_id: Optional[str], functions: Optional
methods/letta/llm_api/openai.py:91
↓ 3 callers
Method
build_prompt
(self, template_name: str, **kwargs)
methods/memOS/MemOS/src/memos/memories/textual/tree_text_memory/retrieve/advanced_searcher.py:65
↓ 3 callers
Method
build_system_prompt_with_memories
Build the complete system prompt by retrieving memories and combining with the raw system prompt. Args: raw_system (str)
methods/MIRIX/mirix/agent/agent.py:1709
↓ 3 callers
Function
build_user_prompt_with_memory
Build user agent prompt with memory.
generation/app/prompts/user_agent.py:339
↓ 3 callers
Method
build_vllm_kv_cache
Build a KV cache from chat messages via one vLLM request. Handles str, list[str], and MessageList formats.
methods/memOS/MemOS/src/memos/llms/vllm.py:42
↓ 3 callers
Method
bulk_update_llm_batch_items
Efficiently update multiple LLMBatchItem rows by (llm_batch_id, agent_id) pairs. Args: llm_batch_id_agent_id_pairs: List
methods/letta/services/llm_batch_manager.py:293
↓ 3 callers
Function
catch_date
(date_str)
data/locomo/generative_agents/generate_conversations.py:169
↓ 3 callers
Method
chat
Chat with the MOS. Args: query (str): The user's query. user_id (str, optional): The user ID for the chat se
methods/memOS/MemOS/src/memos/mem_os/core.py:251
↓ 3 callers
Function
chunk_by_word
Chunks text into words and endings while preserving whitespace. Whitespace is included with the preceding word. Outputs can be joined wit
methods/cognee/tasks/chunks/chunk_by_word.py:39
↓ 3 callers
Function
clean_json_output
(output_string)
data/locomo/generative_agents/conversation_utils.py:378
↓ 3 callers
Function
clean_json_response
Remove markdown JSON code block formatting from LLM response. Args: response: Raw response string that may contain ```json and ```
methods/memOS/MemOS/src/memos/mem_os/utils/format_utils.py:1393
↓ 3 callers
Function
cleanup
()
methods/memOS/MemOS/apps/openwork-memos-integration/apps/desktop/skills/dev-browser/src/index.ts:246
↓ 3 callers
Method
cleanup_resolved_upload
Clean up resolved upload from tracking.
methods/MIRIX/mirix/agent/upload_manager.py:236
↓ 3 callers
Method
clear
No-op retained for interface compatibility.
methods/letta/server/rest_api/chat_completions_interface.py:153
↓ 3 callers
Method
clearAllTeamSharingState
()
methods/memOS/MemOS/apps/memos-local-openclaw/src/storage/sqlite.ts:2553
↓ 3 callers
Method
close
(self)
methods/MIRIX/mirix/server/server.py:249
↓ 3 callers
Function
coerce_dict_args_by_annotations
Coerce arguments in a dictionary to their annotated types. Args: function_args (dict): The original function arguments. anno
methods/letta/functions/ast_parsers.py:71
↓ 3 callers
Function
cognee_pipeline
( tasks: list[Task], data=None, datasets: Union[str, list[str]] = None, user: User = None,
methods/cognee/modules/pipelines/operations/pipeline.py:28
↓ 3 callers
Method
compute
( self, query_id: str, query_type: str, model_output: str, expected_an
metrics/base.py:47
↓ 3 callers
Method
construct
(self)
methods/MemRL/3rdparty/LifelongAgentBench/src/run_experiment.py:56
↓ 3 callers
Method
construct_prefix
( record: logging.LogRecord, start_time: float, colored_flag: bool )
methods/MemRL/3rdparty/LifelongAgentBench/src/utils/logger.py:31
↓ 3 callers
Function
convert_message
(m)
methods/MIRIX/mirix/utils.py:1835
↓ 3 callers
Function
convert_messages_to_string
Convert a list of messages to a string.
methods/memOS/MemOS/src/memos/memories/textual/prefer_text_memory/utils.py:9
↓ 3 callers
Function
convert_timezone_to_utc
(timestamp_str, timezone)
methods/MIRIX/mirix/utils.py:1446
↓ 3 callers
Function
convert_to_structured_output
Convert function call objects to structured output objects See: https://platform.openai.com/docs/guides/structured-outputs/supported-schemas
methods/MIRIX/mirix/llm_api/helpers.py:68
↓ 3 callers
Function
copyNodeBinary
* Copy Node.js binary for a specific platform/arch combination
methods/memOS/MemOS/apps/openwork-memos-integration/apps/desktop/scripts/after-pack.cjs:97
↓ 3 callers
Function
cosine_similarity_matrix
(embeddings: list[list[float]])
methods/memOS/MemOS/src/memos/memories/textual/tree_text_memory/retrieve/retrieve_utils.py:468
↓ 3 callers
Method
createSession
()
methods/memOS/MemOS/apps/memos-local-openclaw/src/viewer/server.ts:251
↓ 3 callers
Method
create_client_api_key
Create a new API key for a client.
methods/MIRIX/mirix/services/client_manager.py:80
↓ 3 callers
Method
create_config_dir
()
methods/letta/config.py:293
↓ 3 callers
Method
create_config_dir
()
methods/MIRIX/mirix/config.py:297
↓ 3 callers
Method
create_default_client
Create the default client (async).
methods/MIRIX/mirix/services/client_manager.py:31
↓ 3 callers
Method
create_or_update_tool
Creates or updates a tool. This stores the source code of function on the server, so that the server can execute the function and generate an
methods/letta/client/client.py:1562
↓ 3 callers
Method
create_or_update_tool
Create or update a tool (async).
methods/MIRIX/mirix/services/tool_manager.py:43
↓ 3 callers
Method
create_or_update_tool
Creates or updates a tool. This stores the source code of function on the server, so that the server can execute the function and generate an
methods/MIRIX/mirix/local_client/local_client.py:1413
↓ 3 callers
Method
create_organization
Create a new organization.
methods/letta/services/organization_manager.py:37
← previous
next →
1,601–1,700 of 13,378, ranked by callers