(&self, tool_name: &str, content: &str, artifact: &ToolOutputArtifact)
| 279 | } |
| 280 | |
| 281 | fn store_tool_artifact(&self, tool_name: &str, content: &str, artifact: &ToolOutputArtifact) { |
| 282 | self.artifact_store.put(ToolArtifact { |
| 283 | artifact_id: artifact.artifact_id.clone(), |
| 284 | artifact_uri: artifact.artifact_uri.clone(), |
| 285 | tool_name: tool_name.to_string(), |
| 286 | content: content.to_string(), |
| 287 | original_bytes: artifact.original_bytes, |
| 288 | shown_bytes: artifact.shown_bytes, |
| 289 | }); |
| 290 | } |
| 291 | |
| 292 | fn record_trace_event(&self, name: &str, result: &ToolResult, duration: std::time::Duration) { |
| 293 | let sink = self.trace_sink(); |
no test coverage detected