MCPcopy Create free account

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

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

↓ 10 callersMethodwith_conn
Run `f` against the connection on the blocking thread pool. Every public I/O method below is a thin wrapper around this — it's the one place that act
crates/genie-core/src/conversation.rs:89
↓ 9 callersMethodensure
Ensure a conversation with a stable ID exists.
crates/genie-core/src/conversation.rs:118
↓ 9 callersFunctionevaluate
Simple expression calculator. Evaluates basic math: +, -, *, /, parentheses, decimals. No dependencies — hand-written recursive descent parser.
crates/genie-core/src/tools/calc.rs:5
↓ 9 callersMethodexec_memory_store
( &self, args: &serde_json::Value, exec_ctx: ToolExecutionContext, )
crates/genie-core/src/tools/dispatch/memory.rs:391
↓ 9 callersFunctionfetchJson
(url)
crates/dashboard/dashboard.js:81
↓ 9 callersFunctionhttp_get
(addr: &str, path: &str)
crates/genie-ctl/src/main.rs:2613
↓ 9 callersFunctionparse_home_control_args
( args: &serde_json::Value, )
crates/genie-core/src/tools/dispatch/home.rs:67
↓ 9 callersFunctionparse_service_probe_target
Parse a configured service URL into a probe target for `genie-ctl`'s HTTP/TLS probe client. Behavior: - Bare URLs without a scheme are treated as `ht
crates/genie-common/src/config.rs:1302
↓ 9 callersFunctionparse_tool_calls_for_eval
Parse tool calls from model output without executing them. This is intentionally separate from `try_tool_call_with_context`: evaluation should never
crates/genie-core/src/tools/parser.rs:80
↓ 9 callersMethodrecord
( &self, entity: &str, action: &str, value: Option<f64>, origin: Reque
crates/genie-core/src/tools/actuation.rs:191
↓ 9 callersMethodresolve
Resolve `session_key` to a conversation id, creating one when absent.
crates/genie-core/src/session.rs:56
↓ 9 callersFunctionroute_for_available_tools
( text: &str, home_available: bool, web_search_available: bool, )
crates/genie-core/src/tools/quick.rs:192
↓ 9 callersFunctionsample_skill_path
()
crates/genie-core/src/skills/loader.rs:828
↓ 9 callersMethodspeak
Synthesize text and play directly through the speaker. Pipes text to Piper stdin, raw PCM stdout goes to aplay. Uses process pipes instead of shell t
crates/genie-core/src/voice/tts.rs:238
↓ 9 callersFunctiontemp_memory
()
crates/genie-core/src/memory/inject.rs:360
↓ 8 callersMethodcheck
Check if a tool call should be allowed.
crates/genie-core/src/security/loop_guard.rs:68
↓ 8 callersMethodcomplete
( &self, messages: &[Message], max_tokens: Option<u32>, hints: Option<&LlmRequ
crates/genie-core/src/llm/local_provider.rs:78
↓ 8 callersMethodembed
(&self, text: &str)
crates/genie-core/src/memory/embedding.rs:26
↓ 8 callersMethodfinish
Flush any buffered trailing fragment after the LLM stream ends. Returns the cleaned final fragment; unlike `try_emit`, no minimum-length check applies
crates/genie-core/src/voice/streaming.rs:239
↓ 8 callersMethodhas_home_automation
(&self)
crates/genie-core/src/tools/dispatch/mod.rs:270
↓ 8 callersMethodhas_web_search
(&self)
crates/genie-core/src/tools/dispatch/mod.rs:274
↓ 8 callersMethodheader
First value for `name`, matched case-insensitively. Returns the raw (un-lowercased) value so callers see exactly what the peer sent.
crates/genie-common/src/http.rs:87
↓ 8 callersMethodhealth
(&self)
crates/genie-core/src/llm/mod.rs:304
↓ 8 callersFunctionhttp_roundtrip
(port: u16, raw: &str)
crates/genie-core/src/server.rs:3823
↓ 8 callersFunctionhttp_target
(url: &str)
crates/genie-common/src/config.rs:2223
↓ 8 callersFunctionload_core_addr
()
crates/genie-ctl/src/main.rs:54
↓ 8 callersFunctionnormalize_name_key
(value: &str)
crates/genie-core/src/memory/mod.rs:7998
↓ 8 callersFunctionrecall_with_context
( memory: &Memory, query: &str, limit: usize, context: policy::MemoryReadContext, )
crates/genie-core/src/memory/recall.rs:177
↓ 8 callersFunctionrelative_calendar_phrase_from_text
(lower: &str)
crates/genie-core/src/memory/mod.rs:7831
↓ 8 callersFunctionsigned_skill_dirs
Skills dir + a sibling trusted-key dir with one installed key, plus the sample `.so` copied in. Returns the directories, the installed `.so` path, and
crates/genie-core/src/skills/loader.rs:1083
↓ 8 callersFunctionsigning_key
Deterministic signing key from a fixed seed — no RNG needed in tests.
crates/genie-core/src/skills/signature.rs:135
↓ 8 callersFunctiontest_config
()
crates/genie-api/src/routes.rs:902
↓ 8 callersFunctiontry_tool_call_with_context
( response: &str, tools: &ToolDispatcher, exec_ctx: ToolExecutionContext, )
crates/genie-core/src/tools/parser.rs:16
↓ 8 callersMethodwith_actuation_audit_path
(mut self, path: PathBuf)
crates/genie-core/src/tools/dispatch/mod.rs:438
↓ 8 callersMethodwith_web_search_config
Set public web search provider configuration.
crates/genie-core/src/tools/dispatch/mod.rs:423
↓ 8 callersFunctionwrite_signed_manifest
(dir: &Path, signature: &str, key_id: &str)
crates/genie-core/src/skills/loader.rs:1109
↓ 8 callersFunctionyaml_hash_get
(value: &'a Yaml, key: &str)
crates/genie-ctl/src/bfcl_import.rs:816
↓ 7 callersFunctionassess_home_action
Assess whether a home action is safe to execute immediately. This is intentionally conservative. GenieClaw is a shared-room appliance, so risky physi
crates/genie-core/src/ha/policy.rs:79
↓ 7 callersFunctioncontrol
Execute a structured home control action via the HA provider.
crates/genie-core/src/tools/home.rs:19
↓ 7 callersFunctiondetect_language_from_text
(text: &str)
crates/genie-core/src/voice/language.rs:28
↓ 7 callersMethoddevice_alias
(&self, alias: &str)
crates/genie-core/src/memory/mod.rs:1350
↓ 7 callersMethodget_by_kind
Get all memories of a specific category (e.g. "identity").
crates/genie-core/src/memory/mod.rs:1307
↓ 7 callersFunctionhttp_request
( addr: &str, path: &str, tls: bool, method: &str, headers: &[(&str, &str)], body: Opt
crates/genie-common/src/probe.rs:117
↓ 7 callersFunctioningest_text
Core text ingestion: split into chunks, extract facts, deduplicate, store.
crates/genie-core/src/profile/ingest.rs:67
↓ 7 callersFunctionmem_available_mb_async
Async wrapper around [`mem_available_mb`] for callers running on a shared `current_thread` executor. Moves the synchronous `/proc/meminfo` read to Tok
crates/genie-common/src/tegrastats.rs:180
↓ 7 callersFunctionoptional_http_probes
Probe targets for the optional HTTP services that `health`, `diag`, and the support bundle inspect alongside `genie-core`. Reads `[services.api]` and
crates/genie-ctl/src/main.rs:69
↓ 7 callersFunctionparse_line
Parse a single line of `tegrastats` output. Example line: ```text RAM 2345/7620MB (lfb 234x4MB) SWAP 0/3810MB (cached 0MB) CPU [20%@1510,15%@1510,10%
crates/genie-common/src/tegrastats.rs:42
↓ 7 callersFunctionparse_speaker_options
(args: &[String])
crates/genie-ctl/src/main.rs:408
↓ 7 callersFunctionparse_spoken_number
(tokens: &[&str], start: usize)
crates/genie-core/src/tools/number_words.rs:9
↓ 7 callersMethodprune_decayed
Delete old, unaccessed memories using exponential decay. Keeps evergreen and promoted memories.
crates/genie-core/src/memory/mod.rs:1218
↓ 7 callersFunctionrun_sox_chain
Sox-only chain: downmix → bandpass → (optional noisered) → compand gate+lift → peak-normalize. Falls back to the raw WAV on sox failure.
crates/genie-core/src/voice/stt.rs:738
↓ 7 callersFunctionscore_cases
(cases: &[BfclCase], predictions: &[BfclPrediction])
crates/genie-core/src/eval/bfcl.rs:121
↓ 7 callersMethodsemantic_search
(&self, query: &str, limit: usize)
crates/genie-core/src/memory/mod.rs:2028
↓ 7 callersMethodserve_listener
Accept connections from an already-bound `TcpListener`. Prefer [`serve`](Self::serve) for production use. This entry-point exists so tests can pre-bi
crates/genie-core/src/server.rs:230
↓ 7 callersMethodset
Register a countdown timer. Returns an error (instead of growing memory unbounded or wrapping the end timestamp) when the duration is zero/oversized
crates/genie-core/src/tools/timer.rs:40
↓ 7 callersFunctiontool_def
()
crates/genie-core/src/tools/dispatch/weather.rs:8
↓ 7 callersFunctionundo_restore_from_prior
Capture the `home_control` call that restores `prior` before `action` ran.
crates/genie-core/src/tools/actuation.rs:341
↓ 7 callersMethodwith_actuation_safety_config
(mut self, config: ActuationSafetyConfig)
crates/genie-core/src/tools/dispatch/mod.rs:433
↓ 7 callersMethodwith_tool_audit_path
(mut self, path: PathBuf)
crates/genie-core/src/tools/dispatch/mod.rs:445
↓ 6 callersFunctionaction
(domain: &str, kind: HomeActionKind, name: &str, voice_safe: bool)
crates/genie-core/src/ha/policy.rs:240
↓ 6 callersMethodappend_or_log
(&self, event: ToolAuditEvent)
crates/genie-core/src/tools/dispatch/mod.rs:235
↓ 6 callersFunctionassemble_system_prompt_sha
Assemble the boot-time system prompt for `model_name` over a fresh memory file hydrated with `identity_facts`, then return its SHA-256 — the same dige
crates/genie-core/tests/prompt_sha_test.rs:24
↓ 6 callersMethodaudit_gate_decision
( &self, call: &ToolCall, exec_ctx: ToolExecutionContext, started: Instant,
crates/genie-core/src/tools/dispatch/mod.rs:712
↓ 6 callersFunctionbuild_memory_context_with_read_context
Build memory context using explicit session/identity information. This is the internal contract the voice/app layers should use once they can resolve
crates/genie-core/src/memory/inject.rs:166
↓ 6 callersMethodchat
(&self, messages: &[Message], max_tokens: Option<u32>)
crates/genie-core/src/llm/mod.rs:308
↓ 6 callersMethodchat_stream
( &self, messages: &[Message], max_tokens: Option<u32>, mut on_token: F, )
crates/genie-core/src/llm/mod.rs:350
↓ 6 callersFunctioncollect_endpoints
Materialize `(name, probe_url)` pairs for every service the health monitor owns. Core's probe is derived from `[core].bind_host` and `[core].port` so
crates/genie-health/src/checker.rs:31
↓ 6 callersMethodcore_http_addr
TCP `host:port` for local HTTP clients proxying to genie-core. Uses `[core].bind_host` and `[core].port`. Maps `0.0.0.0` / `::` to `127.0.0.1` becaus
crates/genie-common/src/config.rs:1541
↓ 6 callersMethodcount
(&self)
crates/genie-core/src/tools/timer.rs:87
↓ 6 callersFunctiondefault_test_config
()
crates/genie-ctl/src/main.rs:2716
↓ 6 callersMethoddetermine_mode
(&self, mem_avail_mb: u64)
crates/genie-governor/src/governor.rs:164
↓ 6 callersFunctionensure_domain
(domain: &str, allowed: &[&str])
crates/genie-core/src/ha/provider.rs:1155
↓ 6 callersFunctioneq_gain_at
Measure the steady-state gain `apply_voice_eq` applies at `freq_hz`. Drives a pure sine of known amplitude through the EQ and returns the ratio of ou
crates/genie-core/src/voice/dsp.rs:318
↓ 6 callersFunctionextract_pattern
(text: &str, prefixes: &[&str])
crates/genie-core/src/memory/extract.rs:280
↓ 6 callersMethodget_states
Get all entity states.
crates/genie-core/src/ha/client.rs:117
↓ 6 callersMethodhousehold_profiles_by_role
(&self, role: &str)
crates/genie-core/src/memory/mod.rs:1325
↓ 6 callersFunctionincoming_turn_from_chat_json
Build an HTTP `IncomingTurn` from a parsed chat JSON body.
crates/genie-core/src/channel/http.rs:11
↓ 6 callersMethodllm_model
LLM model to use in this mode.
crates/genie-common/src/mode.rs:62
↓ 6 callersFunctionload_cases_jsonl
(path: impl AsRef<Path>)
crates/genie-core/src/eval/bfcl.rs:113
↓ 6 callersFunctionload_toml_profile
Load profile.toml and store entries as evergreen memories. Returns the number of facts stored.
crates/genie-core/src/profile/toml_profile.rs:18
↓ 6 callersFunctionnormalize_single_key_tool_call
( value: serde_json::Value, tools: &ToolDispatcher, )
crates/genie-core/src/tools/parser.rs:107
↓ 6 callersFunctionnow_ms
()
crates/genie-governor/src/store.rs:96
↓ 6 callersFunctionnow_ms
()
crates/genie-core/src/conversation.rs:461
↓ 6 callersFunctionpushPoint
(chart, label, value)
crates/dashboard/dashboard.js:54
↓ 6 callersFunctionpush_unique
(values: &mut Vec<String>, candidate: String)
crates/genie-common/src/http.rs:560
↓ 6 callersFunctionratio
(count: usize, total: usize)
crates/genie-core/src/eval/bfcl.rs:458
↓ 6 callersFunctionraw
(text: &'static str, category: &'static str)
crates/genie-core/src/security/injection.rs:186
↓ 6 callersFunctionraw
(text: &'static str, category: &'static str)
crates/genie-core/tests/injection_test.rs:53
↓ 6 callersMethodread_recent_executed_actions
(&self, limit: usize)
crates/genie-core/src/tools/actuation.rs:552
↓ 6 callersFunctionsample_graph
()
crates/genie-core/src/ha/provider.rs:1289
↓ 6 callersFunctionscan_and_warn
Scan and log if suspicious. This is an **observability** control: it emits a `tracing::warn!` on a match and returns whether the input looked suspici
crates/genie-core/src/security/injection.rs:79
↓ 6 callersFunctionsha256_hex
(data: &str)
crates/genie-core/src/prompt_sha.rs:41
↓ 6 callersMethodstore_resolved
Store a fact while resolving simple single-value conflicts. This keeps household memory coherent for facts that should have one current answer, such
crates/genie-core/src/memory/mod.rs:797
↓ 6 callersMethodstore_with_metadata
( &self, kind: &str, content: &str, metadata: policy::MemoryPolicyMetadata,
crates/genie-core/src/memory/mod.rs:2587
↓ 6 callersFunctiontest_api
(max_parallel_voice: usize, max_parallel_updates: usize)
crates/genie-core/src/telegram.rs:1089
↓ 6 callersFunctiontts_engine_for_language
( voice_cfg: &VoiceConfig, _audio_device: &str, language: Option<&str>, )
crates/genie-core/src/voice_loop.rs:684
↓ 6 callersFunctionunique_dir
Each test gets its own parent dir so SQLite WAL/SHM sidecars and audit-log JSONLs cannot collide and ConversationStore::open's CREATE-TABLE-IF-NOT-EXI
crates/genie-core/tests/voice_loop_integration.rs:61
↓ 6 callersFunctionvalidate_runtime_contract
( actual_hash: &str, expected_hash: &str, )
crates/genie-core/src/runtime_contract.rs:71
↓ 6 callersFunctionwrite_pub_key
(dir: &Path, key_id: &str, key: &VerifyingKey)
crates/genie-core/src/skills/signature.rs:139
↓ 5 callersFunctionapply_noise_suppression
Simple spectral noise suppression. Estimates noise floor from the quietest frames, then subtracts it from all frames. This is a simplified version of
crates/genie-core/src/voice/noise.rs:168
← previousnext →101–200 of 3,215, ranked by callers