MCPcopy Create free account
hub / github.com/LeenHawk/sgproxy / block_text

Function block_text

src/proxy.rs:768–774  ·  view source on GitHub ↗
(block: &Value)

Source from the content-addressed store, hash-verified

766}
767
768fn block_text(block: &Value) -> Option<&str> {
769 let block_map = block.as_object()?;
770 if block_map.get("type").and_then(Value::as_str) != Some("text") {
771 return None;
772 }
773 block_map.get("text").and_then(Value::as_str)
774}
775
776fn first_text_from_claude_content(content: &Value) -> Option<String> {
777 match content {

Calls

no outgoing calls

Tested by

no test coverage detected