(
_tool_call_id: impl Into<String>,
_name: impl Into<String>,
content: impl Into<String>,
_is_error: bool,
)
| 64 | } |
| 65 | |
| 66 | pub fn tool_result( |
| 67 | _tool_call_id: impl Into<String>, |
| 68 | _name: impl Into<String>, |
| 69 | content: impl Into<String>, |
| 70 | _is_error: bool, |
| 71 | ) -> Self { |
| 72 | Self { |
| 73 | role: MessageRole::Tool, |
| 74 | content: content.into(), |
| 75 | tool_calls: vec![], |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | #[derive(Debug, Clone, Serialize, Deserialize)] |
nothing calls this directly
no outgoing calls
no test coverage detected