Skip to content

Commit

Permalink
chore: Add Clone trait to Message struct for improved usability
Browse files Browse the repository at this point in the history
Signed-off-by: Eden Reich <[email protected]>
  • Loading branch information
edenreich committed Feb 4, 2025
1 parent c1cb51a commit e5ebd50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl fmt::Display for MessageRole {
}

/// A message in a conversation with an LLM
#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct Message {
/// Role of the message sender ("system", "user" or "assistant")
pub role: MessageRole,
Expand Down

0 comments on commit e5ebd50

Please sign in to comment.