Accessors for syn_media content and type
Value
media_type() returns the type tag ("text", "image", "audio",
"score"); media_content() returns the wrapped object.
See also
Other media functions:
is_syn_media()
Examples
m <- as_syn_media("some text")
media_type(m)
#> [1] "text"