MCPcopy Create free account

hub / github.com/GeniePod/genie-claw / functions

Functions3,215 in github.com/GeniePod/genie-claw

↓ 516 callersMethodstore
Store a new memory.
crates/genie-core/src/memory/mod.rs:757
↓ 426 callersMethodget
Return (creating if absent) the per-chat mutex, updating last-access time. Sweeps expired entries before inserting to keep the map bounded.
crates/genie-core/src/telegram.rs:104
↓ 297 callersFunctionroute
(text: &str)
crates/genie-core/src/tools/quick.rs:9
↓ 290 callersMethodis_empty
(&self)
crates/genie-core/src/channel/mod.rs:227
↓ 272 callersMethodlen
(&self)
crates/genie-core/src/channel/mod.rs:223
↓ 128 callersMethodas_str
(self)
crates/genie-core/src/channel/mod.rs:32
↓ 126 callersMethodis_empty
(&self)
crates/genie-core/src/session.rs:45
↓ 119 callersMethodlen
(&self)
crates/genie-core/src/session.rs:41
↓ 113 callersMethodexecute
Execute a tool call from the LLM.
crates/genie-core/src/tools/dispatch/mod.rs:507
↓ 102 callersFunctiontemp_memory
()
crates/genie-core/src/memory/mod.rs:9372
↓ 99 callersMethodlock
(executed: Arc<Mutex<Vec<HomeActionKind>>>)
crates/genie-core/tests/tool_gate_integration_test.rs:102
↓ 97 callersMethodnext
(&mut self)
crates/genie-core/tests/language_detect_test.rs:195
↓ 77 callersFunctioncontains_ascii_ci
ASCII case-insensitive substring check for pre-lowercase trigger gates.
crates/genie-core/src/memory/policy.rs:779
↓ 62 callersMethodexecute_with_context
( &self, call: &ToolCall, exec_ctx: ToolExecutionContext, )
crates/genie-core/src/tools/dispatch/mod.rs:512
↓ 57 callersMethodstructured_household_answer
(&self, query: &str)
crates/genie-core/src/memory/mod.rs:2092
↓ 55 callersMethodcount
(&self)
crates/genie-core/src/memory/mod.rs:2557
↓ 49 callersFunctionwords
Convenience constructors keep the table readable.
crates/genie-core/src/security/injection.rs:179
↓ 49 callersFunctionwords
(text: &'static str, category: &'static str)
crates/genie-core/tests/injection_test.rs:46
↓ 46 callersMethodprepare
Build a `Send` invocation handle for this skill. Synchronous and cheap: callers can hold the skill-loader lock across this, then drop it before `await
crates/genie-core/src/skills/loader.rs:349
↓ 44 callersFunctiontest_config
()
crates/genie-common/src/config.rs:1958
↓ 43 callersFunctionnow_ms
()
crates/genie-core/src/memory/mod.rs:2823
↓ 40 callersMethodappend
Append a message to a conversation.
crates/genie-core/src/conversation.rs:133
↓ 36 callersFunctionclean_person_name
(value: &str)
crates/genie-core/src/memory/mod.rs:7781
↓ 36 callersFunctionspawn
Spawn `tegrastats` as a child process, parse each line, and broadcast the latest snapshot via a watch channel. Returns a receiver that always holds t
crates/genie-governor/src/tegra_reader.rs:13
↓ 36 callersFunctiontime_after_marker
(content: &str, lower: &str, marker: &str)
crates/genie-core/src/memory/mod.rs:8031
↓ 36 callersMethodwith_memory
Set the memory store for memory tools (recall, forget, store).
crates/genie-core/src/tools/dispatch/mod.rs:451
↓ 34 callersFunctioncalendar_day_from_text
(lower: &str)
crates/genie-core/src/memory/mod.rs:7810
↓ 33 callersMethodappend_or_log
Append a message, logging SQLite/IO failures instead of silently dropping them.
crates/genie-core/src/conversation.rs:190
↓ 32 callersMethodget
Get the raw JSON value for an argument.
crates/genie-skill-sdk/src/args.rs:38
↓ 30 callersFunctionextract_facts
Extract facts from a user utterance using pattern matching (Tier 1). Returns zero or more facts with categories: - `identity`: name, age, occupation,
crates/genie-core/src/memory/extract.rs:24
↓ 30 callersMethodsearch
Search memories with temporal decay applied. Returns results ranked by: BM25 relevance * temporal_decay_multiplier. Evergreen memories are exempt fro
crates/genie-core/src/memory/mod.rs:832
↓ 30 callersFunctionwith_shared_memory
Run a closure against the shared memory store on the blocking thread pool. genie-core's HTTP server and Telegram adapter share one OS thread (`tokio:
crates/genie-core/src/memory/mod.rs:65
↓ 29 callersFunctionescapeHtml
(value)
crates/dashboard/dashboard.js:253
↓ 29 callersFunctionread_jsonl
(path: &Path)
crates/genie-core/tests/tool_gate_integration_test.rs:59
↓ 28 callersMethodas_str
(self)
crates/genie-core/src/tools/dispatch/mod.rs:75
↓ 27 callersFunctionsetText
(id, val)
crates/dashboard/dashboard.js:75
↓ 25 callersFunctionassess_memory_read
Decide whether a memory is safe to use in the current response context.
crates/genie-core/src/memory/policy.rs:427
↓ 25 callersMethoddispatcher
( &self, ha: Option<Arc<dyn HomeAutomationProvider>>, tool_policy: ToolPolicyConfig,
crates/genie-core/tests/tool_gate_integration_test.rs:39
↓ 24 callersFunctioncontains_ascii_ci
ASCII case-insensitive substring check for pre-lowercase trigger gates.
crates/genie-core/src/memory/extract.rs:211
↓ 24 callersFunctiontool
(name: &str, arguments: serde_json::Value)
crates/genie-core/src/tools/quick.rs:211
↓ 23 callersMethodcreate
Create a new conversation. Returns the conversation ID.
crates/genie-core/src/conversation.rs:104
↓ 22 callersMethodas_str
Stable lowercase representation for logs/audit trails — independent of the derived `Debug` repr, which is free to change with variant names.
crates/genie-core/src/memory/policy.rs:42
↓ 21 callersFunctionfor_voice
Voice output formatter. LLMs output markdown, bullet points, long paragraphs, and special characters that sound terrible when spoken by TTS. This mod
crates/genie-core/src/voice/format.rs:8
↓ 21 callersMethodparse
(json: String)
crates/genie-core/src/skills/loader.rs:316
↓ 19 callersMethodmark_promoted
Mark a memory as promoted (moved to permanent storage). Convenience wrapper around [`mark_promoted_many`](Self::mark_promoted_many) for the single-id
crates/genie-core/src/memory/mod.rs:1155
↓ 18 callersFunctionclean_sentence_value
(value: &str)
crates/genie-core/src/memory/mod.rs:7793
↓ 18 callersFunctionsanitize_output
Sanitize LLM output — remove any leaked secrets before showing to user. Scans for patterns that look like API keys, tokens, or credentials in the LLM
crates/genie-core/src/security/sandbox.rs:124
↓ 18 callersFunctionworkspace_root
()
crates/genie-core/tests/tool_dispatch_test.rs:544
↓ 17 callersFunctiontemp_memory_path
Return a freshly-created unique parent dir and a `memory.db` path inside it. `Memory::open` derives `canonical_dir = path.parent().join("memory")` and
crates/genie-core/src/memory/mod.rs:9355
↓ 17 callersMethodtool_defs
All available tool definitions (for the LLM system prompt).
crates/genie-core/src/tools/dispatch/mod.rs:475
↓ 16 callersFunctioncontains_any
(text: &str, needles: &[&str])
crates/genie-core/src/tools/quick.rs:3090
↓ 16 callersMethodexec_memory_recall
( &self, args: &serde_json::Value, exec_ctx: ToolExecutionContext, )
crates/genie-core/src/tools/dispatch/memory.rs:225
↓ 16 callersMethodis_empty
True if no trusted keys are loaded — every verification fails closed.
crates/genie-core/src/skills/signature.rs:89
↓ 16 callersMethodport
(&self)
crates/genie-core/src/ha/client.rs:107
↓ 16 callersMethodsend
(&self, _frame: ConnectivityFrame)
crates/genie-core/src/connectivity/mod.rs:137
↓ 16 callersFunctionsplit_once_case_insensitive
( original: &'a str, lower: &str, marker: &str, )
crates/genie-core/src/memory/mod.rs:7754
↓ 15 callersMethodbuild
Build the system prompt with tools and memory context.
crates/genie-core/src/prompt.rs:63
↓ 15 callersFunctionbuild_memory_context
Build the memory section to append to the system prompt for a given query. Strategy: 1. Always include identity memories 2. Search for query-relevant
crates/genie-core/src/memory/inject.rs:153
↓ 15 callersMethodload_skill
Load a single skill from a `.so` file.
crates/genie-core/src/skills/loader.rs:623
↓ 15 callersMethodpath
(&self)
crates/genie-core/src/tools/actuation.rs:548
↓ 14 callersFunctionapply_reasoning_mode
( model_family: ModelFamily, messages: &[Message], user_text: &str, interaction: InteractionKi
crates/genie-core/src/reasoning.rs:26
↓ 14 callersMethodget_recent
Get recent N messages (for context window).
crates/genie-core/src/conversation.rs:237
↓ 14 callersFunctionnow_ms
()
crates/genie-core/src/tools/actuation.rs:610
↓ 14 callersFunctionread_request
Read and parse one HTTP request from `reader`, enforcing every bound in `limits`. The entire read runs under a single deadline, so a stalled peer cann
crates/genie-common/src/http.rs:175
↓ 14 callersFunctionrun_open_migration
(conn: &Connection, sql: &str, step: &str, migration_degraded: &mut bool)
crates/genie-core/src/memory/mod.rs:9211
↓ 14 callersMethodsend_text
(&self, chat_id: i64, text: &str)
crates/genie-core/src/telegram.rs:835
↓ 14 callersFunctiontemp_store
()
crates/genie-core/src/conversation.rs:475
↓ 13 callersFunctiondecision_for_metadata
( metadata: MemoryPolicyMetadata, allowed: bool, disclosure: MemoryDisclosure, reason: &'stati
crates/genie-core/src/memory/policy.rs:265
↓ 13 callersFunctionextract_and_store
Extract facts and store them, with deduplication. Returns the number of new memories stored.
crates/genie-core/src/memory/extract.rs:154
↓ 13 callersFunctioninfer_metadata
Infer V1 policy metadata from the memory kind and content. This is used both when new memories are stored and when older databases are backfilled int
crates/genie-core/src/memory/policy.rs:292
↓ 13 callersFunctionscore_response
(case: &BfclCase, response: &str)
crates/genie-core/src/eval/bfcl.rs:190
↓ 12 callersFunctioncase
(expected_tool_calls: Vec<ExpectedToolCall>)
crates/genie-core/src/eval/bfcl.rs:769
↓ 12 callersFunctionget_str
(value: &'a Value, key: &str)
crates/genie-core/src/tools/web_search.rs:630
↓ 12 callersMethodjson
Force JSON output (any valid JSON).
crates/genie-core/src/llm/openai_compat.rs:169
↓ 12 callersFunctionleading_person_name
(value: &str)
crates/genie-core/src/memory/mod.rs:7775
↓ 12 callersFunctiontest_limits
()
crates/genie-common/src/http.rs:585
↓ 12 callersMethodtry_acquire
Acquire the chat turn lock, bounded by `busy_wait`. Returns `None` if a turn is already in flight and does not release within the budget; the caller
crates/genie-core/src/server.rs:509
↓ 12 callersFunctionwrite_stream_event
(writer: &mut OwnedWriteHalf, event: &serde_json::Value)
crates/genie-core/src/server.rs:1573
↓ 11 callersFunctionextract_json
Extract the first valid JSON object from LLM output. Handles: raw JSON, markdown fenced blocks, embedded in prose.
crates/genie-core/src/tools/parser.rs:277
↓ 11 callersFunctionfeed_all
(streamer: &mut SentenceStreamer, chunks: &[&str])
crates/genie-core/src/voice/streaming.rs:416
↓ 11 callersMethodlen
Number of trusted keys loaded.
crates/genie-core/src/skills/signature.rs:84
↓ 11 callersMethodlist
List all conversations (most recent first).
crates/genie-core/src/conversation.rs:264
↓ 11 callersFunctionnormalize_alias_key
(value: &str)
crates/genie-core/src/memory/parse_household.rs:111
↓ 11 callersFunctionshared_safe_memory_rows_with_kind
( conn: &Connection, )
crates/genie-core/src/memory/structured.rs:236
↓ 10 callersMethodappend
Append an audit event. Returns `Ok(())` for a disabled logger (no path) and surfaces the failing IO step otherwise, so a security-critical caller can
crates/genie-core/src/tools/actuation.rs:527
↓ 10 callersFunctionassess_memory_write
Decide whether a proposed memory may be written by voice/tool flow.
crates/genie-core/src/memory/policy.rs:379
↓ 10 callersFunctioncontains_any
(haystack: &str, needles: &[&str])
crates/genie-core/src/memory/policy.rs:932
↓ 10 callersFunctiondue_date_from_text
(content: &str, lower: &str)
crates/genie-core/src/memory/mod.rs:7433
↓ 10 callersFunctionframe_rms
Calculate RMS of a frame.
crates/genie-core/src/voice/noise.rs:247
↓ 10 callersMethodhas_similar
Check if a similar memory already exists (for deduplication). Uses SQL LIKE with key words from the content. More reliable than FTS5 for deduplicatio
crates/genie-core/src/memory/mod.rs:2429
↓ 10 callersMethodloaded
Get all loaded skills (immutable).
crates/genie-core/src/skills/loader.rs:743
↓ 10 callersFunctionnormalize
(input: &str)
crates/genie-core/src/ha/provider.rs:1138
↓ 10 callersMethodprepare_body
( &self, messages: &[Message], max_tokens: Option<u32>, stream: bool,
crates/genie-core/src/llm/openai_compat.rs:223
↓ 10 callersFunctionprompt_test_memory
Unique temp dir per test — avoids readonly SQLite flakes from fixed paths (#487).
crates/genie-core/src/prompt.rs:330
↓ 10 callersFunctionproxy_core_json
( config: &Config, method: &str, path: &str, body: Option<&str>, )
crates/genie-api/src/routes.rs:858
↓ 10 callersFunctionreader_for
(bytes: &[u8])
crates/genie-common/src/http.rs:596
↓ 10 callersFunctionrequire_signature_policy
(keys_dir: &Path)
crates/genie-core/src/skills/loader.rs:1126
↓ 10 callersMethodsnapshot
(&self)
crates/genie-core/src/server.rs:540
↓ 10 callersMethodstore_evergreen
Store an evergreen memory (never decays).
crates/genie-core/src/memory/mod.rs:775
↓ 10 callersMethodtranscribe_file
Transcribe a WAV file (works in all modes).
crates/genie-core/src/voice/stt.rs:247
next →1–100 of 3,215, ranked by callers