move uuid stamping callsite to earliest boundary

This commit is contained in:
Roy Han
2026-03-19 15:20:34 -07:00
parent c265a1a0ba
commit ef7f3b189e

View File

@@ -46,12 +46,7 @@ pub struct Prompt {
impl Prompt {
pub(crate) fn get_formatted_input(&self) -> Vec<ResponseItem> {
let mut input: Vec<ResponseItem> = self
.input
.clone()
.into_iter()
.map(ResponseItem::with_generated_metadata_uuid)
.collect();
let mut input = self.input.clone();
// when using the *Freeform* apply_patch tool specifically, tool outputs
// should be structured text, not json. Do NOT reserialize when using