MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / text_field

Function text_field

src/hooks/mod.rs:467–472  ·  view source on GitHub ↗
(value: &Value, keys: &[&str])

Source from the content-addressed store, hash-verified

465}
466
467fn text_field(value: &Value, keys: &[&str]) -> Option<String> {
468 keys.iter()
469 .find_map(|key| value.get(*key).and_then(Value::as_str))
470 .filter(|text| !text.is_empty())
471 .map(str::to_string)
472}
473
474fn prompt_like_text(parsed: &Value) -> Option<String> {
475 [

Callers 4

hook_route_session_idFunction · 0.70
cursor_tool_hint_inputFunction · 0.70

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected