(&self)
| 292 | } |
| 293 | |
| 294 | pub fn to_str_pretty(&self) -> eyre::Result<String> { |
| 295 | let mut agent_clone = self.clone(); |
| 296 | agent_clone.freeze(); |
| 297 | Ok(serde_json::to_string_pretty(&agent_clone)?) |
| 298 | } |
| 299 | |
| 300 | /// Resolves the prompt field, handling file:// URIs if present. |
| 301 | /// Returns the prompt content as-is if it doesn't start with file://, |