Method
simple
(title: impl Into<String>, output: impl Into<String>)
Source from the content-addressed store, hash-verified
| 264 | |
| 265 | impl ToolResult { |
| 266 | pub fn simple(title: impl Into<String>, output: impl Into<String>) -> Self { |
| 267 | Self { |
| 268 | title: title.into(), |
| 269 | output: output.into(), |
| 270 | metadata: Metadata::new(), |
| 271 | truncated: false, |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | pub fn with_metadata(mut self, key: impl Into<String>, value: serde_json::Value) -> Self { |
| 276 | self.metadata.insert(key.into(), value); |
Tested by
no test coverage detected