pub enum Role {
Multimodal,
UnstructuredText,
UnstructuredBinary,
Other(String),
}
Expand description
Open registry of consumer-facing roles a type may carry. Unknown roles are
preserved as Role::Other so the producer’s intent is not lost when a
receiver does not understand the role.
Marks a variant { inline: text, url: url } as the ergonomic
“unstructured text” wrapper: a payload that is either inline text or a
URL referencing the text.
Marks a variant { inline: binary, url: url } as the ergonomic
“unstructured binary” wrapper: a payload that is either inline bytes or
a URL referencing the bytes.