Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Shitsuten/paramecium
/ functions
Functions
127 in github.com/Shitsuten/paramecium
⨍
Functions
127
◇
Types & classes
4
↓ 52 callers
Method
_json
(self, data, status=200)
memory/memory-gateway.py:604
↓ 46 callers
Function
json
(res, data, status=200)
chat-api/server.mjs:9
↓ 16 callers
Function
emit
(res, obj)
chat-api/gateway.mjs:448
↓ 16 callers
Function
get_db
()
memory/memory-gateway.py:140
↓ 14 callers
Method
_read_body
(self)
memory/memory-gateway.py:611
↓ 14 callers
Function
readBody
chat-api/server.mjs:10
↓ 11 callers
Method
_json
(self, data, status=200)
memory/search.py:33
↓ 6 callers
Function
loadSettings
()
chat-api/gateway.mjs:27
↓ 6 callers
Function
saveConv
(conv)
chat-api/gateway.mjs:23
↓ 4 callers
Function
_clean_meta
Sanitize metadata for ChromaDB — it rejects empty lists.
memory/memory-gateway.py:134
↓ 4 callers
Function
factsDir
()
chat-api/server.mjs:40
↓ 4 callers
Function
get_db
()
memory/search.py:22
↓ 4 callers
Function
load_edges
Load all edges from edges.jsonl.
memory/memory-gateway.py:296
↓ 4 callers
Function
norm
(s)
memory/verify-splits.py:17
↓ 4 callers
Function
read_md
(filepath)
memory/memory-gateway.py:188
↓ 3 callers
Method
_read_body
(self)
memory/search.py:39
↓ 3 callers
Function
appendError
(entry)
chat-api/gateway.mjs:43
↓ 3 callers
Function
gwPost
(path, body)
memory/split-memories.mjs:17
↓ 3 callers
Function
loadStats
()
chat-api/gateway.mjs:32
↓ 3 callers
Function
norm
memory/extract-memories.mjs:204
↓ 3 callers
Function
parse_frontmatter
(text)
memory/memory-gateway.py:194
↓ 3 callers
Function
search_memories
(query, n=5, boost_heat=True, log_access=None)
memory/memory-gateway.py:345
↓ 3 callers
Function
sseHeaders
()
chat-api/gateway.mjs:440
↓ 2 callers
Method
_cors
(self)
memory/memory-gateway.py:599
↓ 2 callers
Method
_tokenize
(self, text)
memory/memory-gateway.py:45
↓ 2 callers
Function
active_facts
Return facts filtered by resolved/expired/keywords.
memory/memory-gateway.py:230
↓ 2 callers
Function
appendStat
(entry)
chat-api/gateway.mjs:36
↓ 2 callers
Function
checkCycle
(conv, account)
chat-api/gateway.mjs:1190
↓ 2 callers
Function
compressImageMessage
(conv, msgIdx)
chat-api/gateway.mjs:282
↓ 2 callers
Function
entry_hash
(entry)
memory/sync-vault.py:22
↓ 2 callers
Function
getMcpTools
(settings)
chat-api/gateway.mjs:822
↓ 2 callers
Function
getMemoryInjection
(context, echo = '')
chat-api/gateway.mjs:221
↓ 2 callers
Function
getRecentDiaries
(days = 2)
chat-api/gateway.mjs:179
↓ 2 callers
Function
get_model
()
memory/embedding.py:6
↓ 2 callers
Function
isAnthropicProvider
(account)
chat-api/gateway.mjs:69
↓ 2 callers
Function
listFacts
()
chat-api/server.mjs:41
↓ 2 callers
Function
loadConv
(id)
chat-api/gateway.mjs:17
↓ 2 callers
Function
loadModels
()
memory/extract-memories.mjs:28
↓ 2 callers
Function
nowBeijing
()
chat-api/gateway.mjs:167
↓ 2 callers
Function
parseTags
(t)
memory/split-memories.mjs:150
↓ 2 callers
Function
post
(path, body)
memory/revault.py:24
↓ 2 callers
Function
proxyStream
(endpoint, apiKey, body, clientRes, conv, account, injection, isAnthropic, opts = {})
chat-api/gateway.mjs:577
↓ 2 callers
Function
readMdFile
(filepath)
chat-api/server.mjs:18
↓ 2 callers
Function
read_profiles
()
memory/memory-gateway.py:253
↓ 2 callers
Function
vault_docs
()
memory/revault.py:29
↓ 1 callers
Function
applySupersede
(newMemId, targetId, relation, conf, reason)
memory/extract-memories.mjs:245
↓ 1 callers
Method
build
(self, doc_ids, documents)
memory/memory-gateway.py:48
↓ 1 callers
Function
buildCurrentUserMessage
(text, imageData, imageMediaType, styleContent, volatileContext)
chat-api/gateway.mjs:421
↓ 1 callers
Function
buildEdges
(newMemories, newMemoryIds)
memory/extract-memories.mjs:267
↓ 1 callers
Function
buildHistoryMessages
(messages, isAnthropic)
chat-api/gateway.mjs:335
↓ 1 callers
Function
buildSystemBlocks
(settings, injection, conv, isAnthropic)
chat-api/gateway.mjs:249
↓ 1 callers
Function
buildVolatileContext
(injection, conv)
chat-api/gateway.mjs:415
↓ 1 callers
Function
build_injection
Build memory injection. Profiles (static) + facts + semantic search (budget-limited). echo: the assistant's previous reply ("回复的余味", 2026-06-12) —
memory/memory-gateway.py:473
↓ 1 callers
Function
callBuiltinTool
(name, input)
chat-api/gateway.mjs:751
↓ 1 callers
Function
callMcpTool
(name, input, tools)
chat-api/gateway.mjs:869
↓ 1 callers
Function
convertToOpenAIBody
(body)
chat-api/gateway.mjs:94
↓ 1 callers
Function
count_tokens_cjk
(text)
memory/memory-gateway.py:265
↓ 1 callers
Function
dateOf
(ts, fallback)
memory/archive-import.mjs:46
↓ 1 callers
Function
ensure_recall_log
()
memory/memory-gateway.py:171
↓ 1 callers
Function
ensure_schema
Add heat/energy/polarity columns if missing.
memory/memory-gateway.py:146
↓ 1 callers
Function
estimateTokensCjk
(messages)
chat-api/gateway.mjs:1174
↓ 1 callers
Function
extractMemories
(messages, convTitle)
memory/extract-memories.mjs:112
↓ 1 callers
Function
finalizeOpenAIStream
(state, clientRes)
chat-api/gateway.mjs:561
↓ 1 callers
Function
formatTimestamp
(ts)
memory/extract-memories.mjs:104
↓ 1 callers
Function
formatTimestamp
(ts)
chat-api/gateway.mjs:157
↓ 1 callers
Function
getActiveStyle
(settings)
chat-api/gateway.mjs:151
↓ 1 callers
Function
getContextBlocks
(convId)
chat-api/gateway.mjs:1267
↓ 1 callers
Function
getGatewayStats
()
chat-api/gateway.mjs:1111
↓ 1 callers
Function
getMcpStatus
(forceRefresh = false)
chat-api/gateway.mjs:1315
↓ 1 callers
Function
get_bm25_scorer
()
memory/memory-gateway.py:89
↓ 1 callers
Function
get_edge_stats
Return basic edge stats.
memory/memory-gateway.py:331
↓ 1 callers
Function
gwGet
(path)
memory/split-memories.mjs:26
↓ 1 callers
Function
handleAnthropicChunk
(evt, state, clientRes, line)
chat-api/gateway.mjs:454
↓ 1 callers
Function
handleGatewaySend
(reqBody, res)
chat-api/gateway.mjs:888
↓ 1 callers
Function
handleOpenAIChunk
(evt, state, clientRes)
chat-api/gateway.mjs:502
↓ 1 callers
Function
hashText
(text)
memory/extract-memories.mjs:64
↓ 1 callers
Function
ingest_text
Scan assistant reply for <mem>...</mem> tags, store each as a memory. Supports optional category: <mem category="抽屉">content</mem> Default cat
memory/memory-gateway.py:549
↓ 1 callers
Function
listConversations
()
memory/extract-memories.mjs:75
↓ 1 callers
Function
list_facts
()
memory/memory-gateway.py:218
↓ 1 callers
Function
loadCache
()
memory/extract-memories.mjs:44
↓ 1 callers
Function
loadConversation
(id)
memory/extract-memories.mjs:69
↓ 1 callers
Function
loadModels
()
memory/split-memories.mjs:13
↓ 1 callers
Function
loadState
()
memory/extract-memories.mjs:32
↓ 1 callers
Function
main
()
memory/sync-vault.py:26
↓ 1 callers
Function
main
()
memory/build-fts.py:28
↓ 1 callers
Function
main
()
memory/split-memories.mjs:89
↓ 1 callers
Function
main
()
memory/extract-memories.mjs:465
↓ 1 callers
Function
main
()
memory/archive-import.mjs:110
↓ 1 callers
Function
merge_memories
Mark absorbed memories as superseded by keep_id. Does not delete them.
memory/memory-gateway.py:577
↓ 1 callers
Function
messageToText
(msg)
memory/extract-memories.mjs:83
↓ 1 callers
Function
parseFrontmatter
(text)
chat-api/server.mjs:22
↓ 1 callers
Function
post
(path, data)
memory/sync-vault.py:18
↓ 1 callers
Function
processConversation
(convId, state)
memory/extract-memories.mjs:414
↓ 1 callers
Function
resolveAccount
(settings, accountName)
chat-api/gateway.mjs:55
↓ 1 callers
Function
resolveEndpoint
(account, isAnthropic)
chat-api/gateway.mjs:82
↓ 1 callers
Function
saveCache
(cache)
memory/extract-memories.mjs:50
↓ 1 callers
Function
saveState
(state)
memory/extract-memories.mjs:38
↓ 1 callers
Method
score
(self, query)
memory/memory-gateway.py:67
↓ 1 callers
Function
segments
(text)
memory/revault.py:44
↓ 1 callers
Function
segments
(text)
memory/archive-import.mjs:52
next →
1–100 of 127, ranked by callers