emittance

This commit is contained in:
Roy Han
2026-03-11 21:48:01 -07:00
parent 1c435e54eb
commit 5d63c86d53
7 changed files with 113 additions and 42 deletions

View File

@@ -157,10 +157,14 @@ impl Default for ContextCompactionItem {
impl UserMessageItem {
pub fn new(content: &[UserInput]) -> Self {
Self::new_with_metadata(content, None)
}
pub fn new_with_metadata(content: &[UserInput], metadata: Option<TurnItemMetadata>) -> Self {
Self {
id: uuid::Uuid::new_v4().to_string(),
content: content.to_vec(),
metadata: None,
metadata,
}
}