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

Function title_text_from_stored_content

src/sessions/shared.rs:414–419  ·  view source on GitHub ↗
(text: &str)

Source from the content-addressed store, hash-verified

412}
413
414fn title_text_from_stored_content(text: &str) -> String {
415 serde_json::from_str::<Value>(text)
416 .ok()
417 .and_then(|value| visible_text_from_content(&value))
418 .unwrap_or_else(|| text.to_string())
419}
420
421fn visible_text_from_content(value: &Value) -> Option<String> {
422 match value {

Callers 1

title_from_messagesFunction · 0.85

Calls 1

Tested by

no test coverage detected