mirror of
https://github.com/openai/codex.git
synced 2026-04-30 17:36:40 +00:00
emittance
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user