agent_kernel/message.rs
1/// Role of a message participant in a conversation.
2///
3/// Follows the late-binding principle: internal format until provider converts at boundary.
4#[derive(Debug, Clone, PartialEq)]
5pub enum Role {
6 /// System-level instructions (typically the agent's SOUL.md).
7 System,
8 /// A message from the human user or the discussion orchestrator.
9 User,
10 /// A response generated by the LLM.
11 Assistant,
12}
13
14/// A single message in a conversation history.
15#[derive(Debug, Clone)]
16pub struct Message {
17 /// The role of the message sender.
18 pub role: Role,
19 /// The text content of the message.
20 pub content: String,
21}