Skip to main content

METADATA_ROLE

Constant METADATA_ROLE 

Source
pub const METADATA_ROLE: &str = "role";
Expand description

Metadata key: the message’s chat role. Recommended values: user, assistant, system, tool. A string because that vocabulary belongs to the model providers and the edge protocols, not to us.