(content: impl Into<String>)
| 48 | } |
| 49 | |
| 50 | pub fn assistant(content: impl Into<String>) -> Self { |
| 51 | Self { |
| 52 | role: MessageRole::Assistant, |
| 53 | content: content.into(), |
| 54 | tool_calls: Vec::new(), |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | pub fn assistant_with_tools(content: impl Into<String>, tool_calls: Vec<ToolCall>) -> Self { |
| 59 | Self { |