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

Function content_kind

src/sessions/cursor.rs:1013–1021  ·  view source on GitHub ↗
(content: &Value)

Source from the content-addressed store, hash-verified

1011}
1012
1013fn content_kind(content: &Value) -> Option<&'static str> {
1014 if content.is_array() {
1015 Some("message")
1016 } else if content.is_string() {
1017 Some("text")
1018 } else {
1019 None
1020 }
1021}
1022
1023fn event_session_id(event: &Value, transcript_path: &Path) -> String {
1024 event

Callers 1

event_messageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected