Create a tool invocation entry.
(name: impl Into<String>, detail: Option<impl Into<String>>)
| 75 | |
| 76 | /// Create a tool invocation entry. |
| 77 | pub fn tool(name: impl Into<String>, detail: Option<impl Into<String>>) -> Self { |
| 78 | Self { |
| 79 | entry_type: EntryType::Tool, |
| 80 | content: None, |
| 81 | tool_name: Some(name.into()), |
| 82 | tool_detail: detail.map(Into::into), |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | /// Returns true if this is a user entry. |
| 87 | pub fn is_user(&self) -> bool { |
no outgoing calls